Summary: | Allow clients to override viewport size for CSS viewport units. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | zalan <zalan> | ||||||
Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bfulgham, commit-queue, simon.fraser, thorton, webkit-bug-importer, zalan | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
zalan
2017-06-01 15:59:46 PDT
Created attachment 311774 [details]
Patch
Comment on attachment 311774 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=311774&action=review > Source/WebKit2/ChangeLog:11 > + This enables auto-sizing clients to ensure that styles relative to the viewport are > + resolved to a set value (presumably the size of the container) as opposed to the preferred > + document size (which is set as the FrameView size). How does this relate to fixedLayoutSize? Could we use that as something to resolve viewport units against? Comment on attachment 311774 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=311774&action=review > Source/WebKit2/WebProcess/WebPage/WebPage.h:883 > + std::optional<WebCore::IntSize> viewportSizeForCSSViewportUnits() { return m_viewportSizeForCSSViewportUnits; } const? Created attachment 311798 [details]
Patch
Comment on attachment 311798 [details] Patch Clearing flags on attachment: 311798 Committed r217725: <http://trac.webkit.org/changeset/217725> All reviewed patches have been landed. Closing bug. |