[AutoSizing] Bring back the old auto-sizing code as a deprecated codepath for compatibility reasons
Created attachment 394735 [details] Patch
Comment on attachment 394735 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394735&action=review > Source/WebCore/page/FrameViewLayoutContext.cpp:236 > view().autoSizeIfEnabled(); > + view().legacyAutoSizeIfEnabled(); Can we instead move it to autoSizeIfEnabled and branch in there for legacy behavior?
Please include the radar.
Can we also rename to avoid confusion with text autosizing.
Created attachment 394750 [details] Patch
FrameView&co looks good!
Created attachment 394799 [details] Patch
Created attachment 394803 [details] Patch
Created attachment 394809 [details] Patch
Comment on attachment 394809 [details] Patch Can we call this something other than "deprecated" auto-size mode? How does it differ from the non-deprecated one?
(In reply to Simon Fraser (smfr) from comment #10) > Comment on attachment 394809 [details] > Patch > > Can we call this something other than "deprecated" auto-size mode? How does > it differ from the non-deprecated one? It's very different. The old auto-size flattens the content, the new one does not. The current auto-size code pretty much just lays out the content with a fixed constraint and reports the intrinsic size.
Comment on attachment 394809 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394809&action=review This looks OK but Iām very surprised that we are not adding any tests for this > Source/WebCore/page/FrameView.h:710 > + enum class AutoSizeMode : uint8_t { Default, Deprecated }; Could use bool instead of uint8_t. Do we know if one is superior?
Created attachment 394870 [details] Patch
Created attachment 394872 [details] Patch
Created attachment 394874 [details] Patch
Created attachment 394876 [details] Patch
https://trac.webkit.org/changeset/259187/webkit
<rdar://problem/61044059>
<rdar://problem/60111081>
Comment on attachment 394876 [details] Patch Clearing review flag. This landed.