[Webkit-unassigned] [Bug 47202] Adding C API for dealing with viewport meta info

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 6 05:06:38 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=47202





--- Comment #8 from Kenneth Rohde Christiansen <kenneth at webkit.org>  2010-10-06 05:06:37 PST ---
(In reply to comment #7)
> (In reply to comment #5)
> > What about?
> > 
> > WK_EXPORT WKViewportAttributesRef WKPageCreateComputedViewportAttributes(...) 
> > 
> > or do you have any better idea?
> 
> I'm not sure "Computed" adds anything here. And "Copy" makes a little more sense to me, since these seem to me to be a property of the page, rather than an entirely separate object that the page is just a factory for. So WKPageCopyViewportAttributes seems like a good name to me.

Basically Apple added a viewport meta tag to the iphone, which later got augmented with one additional feature by Android. Now everyone seems to be implementing this, including Opera and Firefox - it has thus become a defacto standard.

The web author can provide some hints to how he wants the page layouted which is very useful for making webpages act as real applications, for instance by setting width = device-width.

These input needs to be treated in a specific way to compute the actual decided layout viewport (plus min, max scale etc) given the device sizes, minimum actual visible viewport.

Info: http://people.opera.com/rune/TR/css-viewport/

The app who wants to support this (mostly browser with mobile user agent receives the viewport meta  tags), will need to compute the viewport attributes before first load, and then again everytime it get's invalidates (loading a new page, navigating page cache) or every time on of the browser attributes change, such as when the device is rotates (which changes the actual visible viewport).

-- 
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