WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
174648
FrameView::visibleSize() is unscaled on macOS, but scaled on iOS
https://bugs.webkit.org/show_bug.cgi?id=174648
Summary
FrameView::visibleSize() is unscaled on macOS, but scaled on iOS
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug