Changeset 246668 in webkit
- Timestamp:
- Jun 20, 2019, 7:30:35 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/compositing/clipping/border-radius-async-overflow-clipping-layer-expected.txt (modified) (3 diffs)
-
LayoutTests/compositing/clipping/border-radius-async-overflow-clipping-layer.html (modified) (1 diff)
-
LayoutTests/compositing/clipping/border-radius-overflow-hidden-stacking-context-expected.txt (modified) (2 diffs)
-
LayoutTests/compositing/clipping/border-radius-overflow-hidden-stacking-context.html (modified) (1 diff)
-
LayoutTests/platform/mac-wk1/compositing/clipping/border-radius-async-overflow-clipping-layer-expected.txt (modified) (3 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/Frame.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/GraphicsLayer.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/GraphicsLayerClient.h (modified) (1 diff)
-
Source/WebCore/rendering/RenderLayerCompositor.cpp (modified) (1 diff)
-
Source/WebCore/testing/Internals.cpp (modified) (1 diff)
-
Source/WebCore/testing/Internals.h (modified) (1 diff)
-
Source/WebCore/testing/Internals.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r246655 r246668 1 2019-06-20 Simon Fraser <simon.fraser@apple.com> 2 3 Make it possible to include clipping in GraphicsLayer tree dumps 4 https://bugs.webkit.org/show_bug.cgi?id=199096 5 6 Reviewed by Zalan Bujtas. 7 8 * compositing/clipping/border-radius-async-overflow-clipping-layer-expected.txt: 9 * compositing/clipping/border-radius-async-overflow-clipping-layer.html: 10 * compositing/clipping/border-radius-overflow-hidden-stacking-context-expected.txt: 11 * compositing/clipping/border-radius-overflow-hidden-stacking-context.html: 12 * platform/mac-wk1/compositing/clipping/border-radius-async-overflow-clipping-layer-expected.txt: 13 1 14 2019-06-20 Greg Doolittle <gr3g@apple.com> 2 15 -
trunk/LayoutTests/compositing/clipping/border-radius-async-overflow-clipping-layer-expected.txt
r240941 r246668 4 4 (anchor 0.00 0.00) 5 5 (bounds 800.00 600.00) 6 (clips 1) 6 7 (children 1 7 8 (GraphicsLayer … … 19 20 (position 44.00 44.00) 20 21 (bounds 320.00 200.00) 22 (clips 1) 21 23 (children 1 22 24 (GraphicsLayer … … 52 54 (position 44.00 44.00) 53 55 (bounds 320.00 200.00) 56 (clips 1) 54 57 (children 1 55 58 (GraphicsLayer 56 59 (offsetFromRenderer width=30 height=30) 57 60 (bounds 320.00 200.00) 61 (clips 1) 58 62 (children 1 59 63 (GraphicsLayer -
trunk/LayoutTests/compositing/clipping/border-radius-async-overflow-clipping-layer.html
r243347 r246668 40 40 window.addEventListener('load', () => { 41 41 if (window.testRunner) 42 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document );42 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_CLIPPING); 43 43 }, false); 44 44 </script> -
trunk/LayoutTests/compositing/clipping/border-radius-overflow-hidden-stacking-context-expected.txt
r179147 r246668 4 4 (anchor 0.00 0.00) 5 5 (bounds 800.00 600.00) 6 (clips 1) 6 7 (children 1 7 8 (GraphicsLayer … … 15 16 (GraphicsLayer 16 17 (bounds 100.00 100.00) 18 (clips 1) 17 19 (children 1 18 20 (GraphicsLayer -
trunk/LayoutTests/compositing/clipping/border-radius-overflow-hidden-stacking-context.html
r179147 r246668 36 36 function doTest() { 37 37 if (window.testRunner) { 38 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document );38 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_CLIPPING); 39 39 testRunner.notifyDone(); 40 40 } -
trunk/LayoutTests/platform/mac-wk1/compositing/clipping/border-radius-async-overflow-clipping-layer-expected.txt
r243361 r246668 4 4 (anchor 0.00 0.00) 5 5 (bounds 800.00 600.00) 6 (clips 1) 6 7 (children 1 7 8 (GraphicsLayer … … 18 19 (position 44.00 44.00) 19 20 (bounds 320.00 200.00) 21 (clips 1) 20 22 (children 1 21 23 (GraphicsLayer … … 44 46 (position 44.00 44.00) 45 47 (bounds 320.00 200.00) 48 (clips 1) 46 49 (children 1 47 50 (GraphicsLayer -
trunk/Source/WebCore/ChangeLog
r246664 r246668 1 2019-06-20 Simon Fraser <simon.fraser@apple.com> 2 3 Make it possible to include clipping in GraphicsLayer tree dumps 4 https://bugs.webkit.org/show_bug.cgi?id=199096 5 6 Reviewed by Zalan Bujtas. 7 8 Add LAYER_TREE_INCLUDES_CLIPPING and plumb it down to GraphicsLayers, turning 9 it on for a couple of tests. 10 11 * page/Frame.h: 12 * platform/graphics/GraphicsLayer.cpp: 13 (WebCore::GraphicsLayer::dumpProperties const): 14 * platform/graphics/GraphicsLayerClient.h: 15 * rendering/RenderLayerCompositor.cpp: 16 (WebCore::RenderLayerCompositor::layerTreeAsText): 17 * testing/Internals.cpp: 18 (WebCore::toLayerTreeFlags): 19 * testing/Internals.h: 20 * testing/Internals.idl: 21 1 22 2019-06-20 Daniel Bates <dabates@apple.com> 2 23 -
trunk/Source/WebCore/page/Frame.h
r244775 r246668 114 114 LayerTreeFlagsIncludeContentLayers = 1 << 5, 115 115 LayerTreeFlagsIncludeAcceleratesDrawing = 1 << 6, 116 LayerTreeFlagsIncludeBackingStoreAttached = 1 << 7, 117 LayerTreeFlagsIncludeRootLayerProperties = 1 << 8, 118 LayerTreeFlagsIncludeEventRegion = 1 << 9, 116 LayerTreeFlagsIncludeClipping = 1 << 7, 117 LayerTreeFlagsIncludeBackingStoreAttached = 1 << 8, 118 LayerTreeFlagsIncludeRootLayerProperties = 1 << 9, 119 LayerTreeFlagsIncludeEventRegion = 1 << 10, 119 120 }; 120 121 typedef unsigned LayerTreeFlags; -
trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp
r246471 r246668 907 907 ts << indent << "(supports subpixel antialiased text " << m_supportsSubpixelAntialiasedText << ")\n"; 908 908 909 if (m_masksToBounds && behavior & LayerTreeAsTextIncludeClipping) 910 ts << indent << "(clips " << m_masksToBounds << ")\n"; 911 909 912 if (m_preserves3D) 910 913 ts << indent << "(preserves3D " << m_preserves3D << ")\n"; -
trunk/Source/WebCore/platform/graphics/GraphicsLayerClient.h
r246596 r246668 71 71 LayerTreeAsTextIncludePageOverlayLayers = 1 << 6, 72 72 LayerTreeAsTextIncludeAcceleratesDrawing = 1 << 7, 73 LayerTreeAsTextIncludeBackingStoreAttached = 1 << 8, 74 LayerTreeAsTextIncludeRootLayerProperties = 1 << 9, 75 LayerTreeAsTextIncludeEventRegion = 1 << 10, 73 LayerTreeAsTextIncludeClipping = 1 << 8, 74 LayerTreeAsTextIncludeBackingStoreAttached = 1 << 9, 75 LayerTreeAsTextIncludeRootLayerProperties = 1 << 10, 76 LayerTreeAsTextIncludeEventRegion = 1 << 11, 76 77 LayerTreeAsTextShowAll = 0xFFFF 77 78 }; -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r246612 r246668 2085 2085 if (flags & LayerTreeFlagsIncludeAcceleratesDrawing) 2086 2086 layerTreeBehavior |= LayerTreeAsTextIncludeAcceleratesDrawing; 2087 if (flags & LayerTreeFlagsIncludeClipping) 2088 layerTreeBehavior |= LayerTreeAsTextIncludeClipping; 2087 2089 if (flags & LayerTreeFlagsIncludeBackingStoreAttached) 2088 2090 layerTreeBehavior |= LayerTreeAsTextIncludeBackingStoreAttached; -
trunk/Source/WebCore/testing/Internals.cpp
r246490 r246668 2545 2545 if (flags & Internals::LAYER_TREE_INCLUDES_ACCELERATES_DRAWING) 2546 2546 layerTreeFlags |= LayerTreeFlagsIncludeAcceleratesDrawing; 2547 if (flags & Internals::LAYER_TREE_INCLUDES_CLIPPING) 2548 layerTreeFlags |= LayerTreeFlagsIncludeClipping; 2547 2549 if (flags & Internals::LAYER_TREE_INCLUDES_BACKING_STORE_ATTACHED) 2548 2550 layerTreeFlags |= LayerTreeFlagsIncludeBackingStoreAttached; -
trunk/Source/WebCore/testing/Internals.h
r246490 r246668 352 352 LAYER_TREE_INCLUDES_CONTENT_LAYERS = 16, 353 353 LAYER_TREE_INCLUDES_ACCELERATES_DRAWING = 32, 354 LAYER_TREE_INCLUDES_BACKING_STORE_ATTACHED = 64, 355 LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES = 128, 356 LAYER_TREE_INCLUDES_EVENT_REGION = 256, 354 LAYER_TREE_INCLUDES_CLIPPING = 64, 355 LAYER_TREE_INCLUDES_BACKING_STORE_ATTACHED = 128, 356 LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES = 256, 357 LAYER_TREE_INCLUDES_EVENT_REGION = 512, 357 358 }; 358 359 ExceptionOr<String> layerTreeAsText(Document&, unsigned short flags) const; -
trunk/Source/WebCore/testing/Internals.idl
r246184 r246668 373 373 const unsigned short LAYER_TREE_INCLUDES_CONTENT_LAYERS = 16; 374 374 const unsigned short LAYER_TREE_INCLUDES_ACCELERATES_DRAWING = 32; 375 const unsigned short LAYER_TREE_INCLUDES_BACKING_STORE_ATTACHED = 64; 376 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES = 128; 377 const unsigned short LAYER_TREE_INCLUDES_EVENT_REGION = 256; 375 const unsigned short LAYER_TREE_INCLUDES_CLIPPING = 64; 376 const unsigned short LAYER_TREE_INCLUDES_BACKING_STORE_ATTACHED = 128; 377 const unsigned short LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES = 256; 378 const unsigned short LAYER_TREE_INCLUDES_EVENT_REGION = 512; 378 379 [MayThrowException] DOMString layerTreeAsText(Document document, optional unsigned short flags = 0); 379 380
Note:
See TracChangeset
for help on using the changeset viewer.