Bug 182289

Summary: Document::updateLayoutIfDimensionsOutOfDate does not take into account zoom level change
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 182230    
Bug Blocks: 5991    

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.