Bug 174648
| Summary: | FrameView::visibleSize() is unscaled on macOS, but scaled on iOS | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
| Component: | Platform | Assignee: | 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)
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)
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.