Bug 200619

Summary: WebPage and ViewportConfiguration have differing notions of viewLayoutSize
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: WebKit2Assignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, commit-queue, simon.fraser, thorton, webkit-bug-importer, yongjun_zhang
Priority: P2 Keywords: DoNotImportToRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Wenson Hsieh 2019-08-10 19:26:32 PDT
m_viewLayoutSize exists in both WebPage and ViewportConfiguration. However, they mean different things (ViewportConfiguration’s m_viewLayoutSize is about the size of the platform view, and WebPage’s m_viewLayoutSize is about special the autosizing/autolayout mode on macOS that’s guarded by SPI).

This makes some existing viewport configuration logic difficult to refactor and fix.
Comment 1 Wenson Hsieh 2019-08-10 21:48:01 PDT
Created attachment 376031 [details]
Patch
Comment 2 Wenson Hsieh 2019-08-10 21:49:25 PDT
(This is motivated by the fix for <rdar://problem/52694257>).
Comment 3 WebKit Commit Bot 2019-08-11 12:12:04 PDT
Comment on attachment 376031 [details]
Patch

Clearing flags on attachment: 376031

Committed r248522: <https://trac.webkit.org/changeset/248522>
Comment 4 WebKit Commit Bot 2019-08-11 12:12:05 PDT
All reviewed patches have been landed.  Closing bug.