[Webkit-unassigned] [Bug 45443] [GTK] Support for viewport meta tag
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 12 09:35:00 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=45443
--- Comment #57 from Gustavo Noronha (kov) <gns at gnome.org> 2010-11-12 09:34:59 PST ---
Created an attachment (id=73751)
--> (https://bugs.webkit.org/attachment.cgi?id=73751&action=review)
proposed API
ok, since I'm having trouble explaining my proposed API, I decided to write it, so you can understand what I propose and point me to any issues you see with it, and we can move forward with this instead (I did not modify ChangeLogs or the sample code comments for now).
As you will see from the code, this is what happens:
* Page with viewport tag is loaded
* viewport-attributes-recompute-requested is emitted, giving the application the possibility of providing available size, and even override screen size if required
* viewport attributes computation is performed
* viewport attributes object is marked as valid
* viewport-attributes-available is emitted, which the application can use to apply any required change to the window, etc
When the window size changes this is what happens:
* application calls webkit_viewport_recompute
* all of the steps described above happens
Open questions:
* Qt uses a hardcoded DPI of 160, why is that?
* www.engadget.com seems to work fine, except it has scrolling 100% of the time, probably because our calculation will have to take the space occupied by the scrollbars into account =(
* most sites apparently do some crazy stuff, providing very big width and height values, and a very small scale factor - it looks like using full content zoom alone is not enough!
* full content zoom fails miserably at resizing text in http://touch.facebook.com/, which is not fun
So, do you guys see any trouble with this API? What use cases are not covered? What was better in the previous approach?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list