Bug 179282

Summary: [LayoutState cleanup] Move m_layoutState from RenderView to LayoutContext
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, buildbot, commit-queue, koivisto, ryanhaddad, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description zalan 2017-11-03 22:02:57 PDT
It does not really belong to RenderView.
Comment 1 Radar WebKit Bug Importer 2017-11-03 22:03:30 PDT
<rdar://problem/35348653>
Comment 2 zalan 2017-11-04 22:20:40 PDT
Created attachment 326058 [details]
Patch
Comment 3 Build Bot 2017-11-04 22:23:38 PDT
Attachment 326058 [details] did not pass style-queue:


ERROR: Source/WebCore/style/RenderTreeUpdaterFirstLetter.cpp:223:  Please replace ASSERT_WITH_SECURITY_IMPLICATION() with RELEASE_ASSERT_WITH_SECURITY_IMPLICATION().  [security/assertion] [5]
ERROR: Source/WebCore/style/RenderTreeUpdaterListItem.cpp:74:  Please replace ASSERT_WITH_SECURITY_IMPLICATION() with RELEASE_ASSERT_WITH_SECURITY_IMPLICATION().  [security/assertion] [5]
Total errors found: 2 in 34 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Antti Koivisto 2017-11-06 08:50:28 PST
Comment on attachment 326058 [details]
Patch

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

> Source/WebCore/rendering/RenderBlockFlow.cpp:741
> +    bool paginated = view().frameView().layoutContext().layoutState()->isPaginated();

If this wasn't temporary we'd want layoutState() helper.
Comment 5 WebKit Commit Bot 2017-11-06 09:45:13 PST
Comment on attachment 326058 [details]
Patch

Clearing flags on attachment: 326058

Committed r224494: <https://trac.webkit.org/changeset/224494>
Comment 6 WebKit Commit Bot 2017-11-06 09:45:15 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Ryan Haddad 2017-11-06 12:59:21 PST
This change appears to have caused flakiness with LayoutTests in the fast/repaint directory on WK1. Example of failures:
https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK1%20(Tests)/r224495%20(4699)/results.html
Comment 8 Ryan Haddad 2017-11-06 13:00:25 PST
(In reply to Ryan Haddad from comment #7)
> This change appears to have caused flakiness with LayoutTests in the
> fast/repaint directory on WK1. Example of failures:
> https://build.webkit.org/results/
> Apple%20El%20Capitan%20Debug%20WK1%20(Tests)/r224495%20(4699)/results.html
I can repro locally with a build of r224494 with the following command:

run-webkit-tests -1 fast/repaint/transform-table-layout.html fast/repaint/focus-ring-repaint.html --iter 200 --no-retry-failure
Comment 9 Ryan Haddad 2017-11-06 13:44:40 PST
Reverted r224494 for reason:

Introduced LayoutTest flakiness on WK1.

Committed r224511: <https://trac.webkit.org/changeset/224511>
Comment 10 zalan 2017-11-06 19:34:43 PST
Created attachment 326183 [details]
Patch
Comment 11 Build Bot 2017-11-06 19:36:10 PST
Attachment 326183 [details] did not pass style-queue:


ERROR: Source/WebCore/style/RenderTreeUpdaterFirstLetter.cpp:223:  Please replace ASSERT_WITH_SECURITY_IMPLICATION() with RELEASE_ASSERT_WITH_SECURITY_IMPLICATION().  [security/assertion] [5]
ERROR: Source/WebCore/style/RenderTreeUpdaterListItem.cpp:74:  Please replace ASSERT_WITH_SECURITY_IMPLICATION() with RELEASE_ASSERT_WITH_SECURITY_IMPLICATION().  [security/assertion] [5]
Total errors found: 2 in 34 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 12 zalan 2017-11-06 19:39:04 PST
(In reply to Ryan Haddad from comment #9)
> Reverted r224494 for reason:
> 
> Introduced LayoutTest flakiness on WK1.
> 
> Committed r224511: <https://trac.webkit.org/changeset/224511>
Fixed.
+    : m_clipped(false)
Comment 13 WebKit Commit Bot 2017-11-06 20:10:03 PST
Comment on attachment 326183 [details]
Patch

Clearing flags on attachment: 326183

Committed r224529: <https://trac.webkit.org/changeset/224529>
Comment 14 WebKit Commit Bot 2017-11-06 20:10:05 PST
All reviewed patches have been landed.  Closing bug.