Bug 195417 - [ContentChangeObserver] Check if max-height change triggers visible content change.
Summary: [ContentChangeObserver] Check if max-height change triggers visible content c...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-03-07 10:37 PST by zalan
Modified: 2019-03-07 22:09 PST (History)
5 users (show)

See Also:


Attachments
Patch (8.93 KB, patch)
2019-03-07 10:45 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (9.07 KB, patch)
2019-03-07 21:22 PST, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2019-03-07 10:37:28 PST
going from fixed max-height: 0px; to max-height: non-zero
Comment 1 Radar WebKit Bug Importer 2019-03-07 10:40:58 PST
<rdar://problem/48680631>
Comment 2 zalan 2019-03-07 10:45:24 PST
Created attachment 363897 [details]
Patch
Comment 3 Simon Fraser (smfr) 2019-03-07 11:40:43 PST
Comment on attachment 363897 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=363897&action=review

> Source/WebCore/page/ios/ContentChangeObserver.cpp:299
>      if (left.isFixed() && width.isFixed() && -left.value() >= width.value())

This is stupid and you should add a comment to explain how stupid it is.

> Source/WebCore/page/ios/ContentChangeObserver.cpp:305
> +    auto maxHeight = style.maxHeight();

Maybe comment to say that height + overflow:hidden should also be checked at some point.
Comment 4 zalan 2019-03-07 21:22:38 PST
Created attachment 363985 [details]
Patch
Comment 5 WebKit Commit Bot 2019-03-07 22:09:04 PST
Comment on attachment 363985 [details]
Patch

Clearing flags on attachment: 363985

Committed r242634: <https://trac.webkit.org/changeset/242634>
Comment 6 WebKit Commit Bot 2019-03-07 22:09:06 PST
All reviewed patches have been landed.  Closing bug.