Bug 161981 - Cleanup RenderLayer::shouldBeNormalFlowOnly
Summary: Cleanup RenderLayer::shouldBeNormalFlowOnly
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:
Depends on:
Blocks:
 
Reported: 2016-09-14 12:52 PDT by zalan
Modified: 2016-09-15 08:45 PDT (History)
3 users (show)

See Also:


Attachments
Patch (10.15 KB, patch)
2016-09-14 13:20 PDT, zalan
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews121 for ios-simulator-elcapitan-wk2 (deleted)
2016-09-14 14:14 PDT, Build Bot
no flags Details
Patch (12.05 KB, patch)
2016-09-14 20:33 PDT, zalan
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-yosemite (986.62 KB, application/zip)
2016-09-14 21:27 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (1.02 MB, application/zip)
2016-09-14 21:31 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews112 for mac-yosemite (1.49 MB, application/zip)
2016-09-14 21:35 PDT, Build Bot
no flags Details
Patch (12.05 KB, patch)
2016-09-14 22:17 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (12.05 KB, patch)
2016-09-15 08:30 PDT, 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 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.