WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
223446
Handle empty bound size during animated resize
https://bugs.webkit.org/show_bug.cgi?id=223446
Summary
Handle empty bound size during animated resize
Sihui Liu
Reported
2021-03-18 09:26:25 PDT
...
Attachments
Patch
(7.05 KB, patch)
2021-03-18 10:01 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch
(7.67 KB, patch)
2021-03-18 14:31 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch for landing
(7.77 KB, patch)
2021-03-18 16:56 PDT
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Sihui Liu
Comment 1
2021-03-18 10:01:03 PDT
Created
attachment 423612
[details]
Patch
Tim Horton
Comment 2
2021-03-18 13:44:15 PDT
Comment on
attachment 423612
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=423612&action=review
> Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h:254 > + CGRect _validOldBounds;
Probably worth giving these names that make it clear they're just about (rare, SPI) animated resize; these names seem... more generic. Maybe stick them up with _animatedResizeOriginalContentWidth?
> Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:-2910 > - ASSERT_WITH_MESSAGE(!(_viewLayoutSizeOverride && newViewLayoutSize.isEmpty()), "Clients controlling the layout size should maintain a valid layout size to minimize layouts.");
Is there a reason we're not just fixing the clients? (and maybe making this louder?). Since it's SPI, it should be achievable, and it is wasted work otherwise.
Sihui Liu
Comment 3
2021-03-18 14:31:49 PDT
Created
attachment 423658
[details]
Patch
Sihui Liu
Comment 4
2021-03-18 16:56:08 PDT
Created
attachment 423671
[details]
Patch for landing
EWS
Comment 5
2021-03-18 17:25:21 PDT
Committed
r274692
: <
https://commits.webkit.org/r274692
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 423671
[details]
.
Radar WebKit Bug Importer
Comment 6
2021-03-18 17:26:17 PDT
<
rdar://problem/75598829
>
Geoffrey Garen
Comment 7
2021-03-19 10:24:58 PDT
> Is there a reason we're not just fixing the clients? (and maybe making this > louder?). Since it's SPI, it should be achievable, and it is wasted work > otherwise.
I think the answer -- based on ChangeLog and conversation with Sihui -- is that auto layout just sometimes does this (very temporarily), outside of direct client control. Maybe this means we should file a Radar for auto layout.
Tim Horton
Comment 8
2021-03-19 15:34:49 PDT
(In reply to Geoffrey Garen from
comment #7
)
> > Is there a reason we're not just fixing the clients? (and maybe making this > > louder?). Since it's SPI, it should be achievable, and it is wasted work > > otherwise. > > I think the answer -- based on ChangeLog and conversation with Sihui -- is > that auto layout just sometimes does this (very temporarily), outside of > direct client control. > > Maybe this means we should file a Radar for auto layout.
Yeah, she explained offline (and updated the changelog)! I do think we should make sure there is a radar, since it seems wasteful.
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