Bug 182289 - Document::updateLayoutIfDimensionsOutOfDate does not take into account zoom level change
Summary: Document::updateLayoutIfDimensionsOutOfDate does not take into account zoom l...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 182230
Blocks: 5991
  Show dependency treegraph
 
Reported: 2018-01-30 06:28 PST by Frédéric Wang (:fredw)
Modified: 2018-01-30 06:28 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Wang (:fredw) 2018-01-30 06:28:13 PST
Currently, HTMLBodyElement::scrollWidth calls Document::updateLayoutIgnorePendingStylesheets. In bug 182230, I'm moving the special handling for the case document.body == document.scrollingElement into Element::scrollWidth. Element::scrollWidth calls Document::updateLayoutIfDimensionsOutOfDate but that does not seem enough to force a relayout when zoom level is changed (especially for Layout/fast/dom/window-scroll-scaling.html) so I had to keep the call to Document::updateLayoutIgnorePendingStylesheets.