Bug 161981

Summary: Cleanup RenderLayer::shouldBeNormalFlowOnly
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, rniwa
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews121 for ios-simulator-elcapitan-wk2
none
Patch
none
Archive of layout-test-results from ews103 for mac-yosemite
none
Archive of layout-test-results from ews105 for mac-yosemite-wk2
none
Archive of layout-test-results from ews112 for mac-yosemite
none
Patch
none
Patch none

Description zalan 2016-09-14 12:52:42 PDT
return (renderer().hasOverflowClip()
        || renderer().hasReflection()
        || renderer().hasMask()
        || renderer().isCanvas()
        || renderer().isVideo()
        || renderer().isEmbeddedObject()
        || renderer().isRenderIFrame()
        || (renderer().style().specifiesColumns() && !isRootLayer())
        || renderer().isInFlowRenderFlowThread())
        && !renderer().hasTransformRelatedProperty()
        && !renderer().isPositioned()
        && !needsCompositedScrolling()
        && !renderer().style().hasFlowFrom()
^^ makes it a bit unclear what triggers normal flow only layer.
Comment 1 zalan 2016-09-14 13:20:37 PDT
Created attachment 288848 [details]
Patch
Comment 2 Simon Fraser (smfr) 2016-09-14 13:27:05 PDT
Comment on attachment 288848 [details]
Patch

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

> Source/WebCore/rendering/RenderLayer.cpp:6492
> +        || mayCreateGraphicalGroup(renderer);

I think this needs to check willChange()->canCreateStackingContext() but you'll do this in a later patch. Maybe add a FIXME comment.

> Source/WebCore/rendering/RenderLayer.cpp:6517
>          || needsCompositedScrolling()
>          || isolatesBlending()
>          || renderer().hasReflection()

I think these tree are redundant since createsStackingContext() checks them.
Comment 3 Build Bot 2016-09-14 14:14:15 PDT
Comment on attachment 288848 [details]
Patch

Attachment 288848 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/2074053

New failing tests:
media/audio-repaint.html
Comment 4 Build Bot 2016-09-14 14:14:18 PDT
Created attachment 288856 [details]
Archive of layout-test-results from ews121 for ios-simulator-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews121  Port: ios-simulator-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 5 zalan 2016-09-14 20:33:23 PDT
Created attachment 288922 [details]
Patch
Comment 6 Build Bot 2016-09-14 21:27:17 PDT
Comment on attachment 288922 [details]
Patch

Attachment 288922 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/2076737

New failing tests:
compositing/overflow/composited-scrolling-creates-a-stacking-container.html
compositing/overflow/automatically-opt-into-composited-scrolling.html
Comment 7 Build Bot 2016-09-14 21:27:19 PDT
Created attachment 288924 [details]
Archive of layout-test-results from ews103 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 8 Build Bot 2016-09-14 21:31:24 PDT
Comment on attachment 288922 [details]
Patch

Attachment 288922 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/2076744

New failing tests:
compositing/overflow/composited-scrolling-creates-a-stacking-container.html
compositing/overflow/automatically-opt-into-composited-scrolling.html
Comment 9 Build Bot 2016-09-14 21:31:26 PDT
Created attachment 288925 [details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 10 Build Bot 2016-09-14 21:34:57 PDT
Comment on attachment 288922 [details]
Patch

Attachment 288922 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/2076745

New failing tests:
compositing/overflow/composited-scrolling-creates-a-stacking-container.html
compositing/overflow/automatically-opt-into-composited-scrolling.html
Comment 11 Build Bot 2016-09-14 21:35:00 PDT
Created attachment 288926 [details]
Archive of layout-test-results from ews112 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 12 zalan 2016-09-14 22:17:41 PDT
Created attachment 288927 [details]
Patch
Comment 13 zalan 2016-09-15 08:30:00 PDT
Created attachment 288953 [details]
Patch
Comment 14 WebKit Commit Bot 2016-09-15 08:44:56 PDT
Comment on attachment 288953 [details]
Patch

Clearing flags on attachment: 288953

Committed r205970: <http://trac.webkit.org/changeset/205970>
Comment 15 WebKit Commit Bot 2016-09-15 08:45:00 PDT
All reviewed patches have been landed.  Closing bug.