Bug 174648

Summary: FrameView::visibleSize() is unscaled on macOS, but scaled on iOS
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: PlatformAssignee: Simon Fraser (smfr) <simon.fraser>
Status: NEW    
Severity: Normal CC: simon.fraser, thorton
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Simon Fraser (smfr)
Reported 2017-07-18 19:58:07 PDT
FrameView::visibleSize() is inconsistent between macOS and iOS (WK2). On macOS, it boils down to ScrollView::unobscuredContentRectInternal() which adjusts for scale. On iOS, it just returns m_unobscuredContentSize which was set by the UI process, but not adjusted for page scale.
Attachments
Simon Fraser (smfr)
Comment 1 2018-01-18 17:06:11 PST
Seems that macOS is wrong. ScrollView::unobscuredContentRectInternal() should return a "content" rect. The rect it returns has a maxX/maxY that is larger than the document rect.
Note You need to log in before you can comment on or make changes to this bug.