Changeset 96160 in webkit
- Timestamp:
- Sep 27, 2011 2:47:30 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r96159 r96160 1 2011-09-27 James Robinson <jamesr@chromium.org> 2 3 Add a mechanism to test for the compositing tree mutated during painting 4 https://bugs.webkit.org/show_bug.cgi?id=68738 5 6 Reviewed by Adam Barth. 7 8 Adds a test that caused compositing to be disabled during painting before r95863 due to a video load failing. 9 10 * compositing/video/video-with-invalid-source-expected.txt: Added. 11 * compositing/video/video-with-invalid-source.html: Added. 12 1 13 2011-09-27 Ojan Vafai <ojan@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r96159 r96160 1 2011-09-27 James Robinson <jamesr@chromium.org> 2 3 Add a mechanism to test for the compositing tree mutated during painting 4 https://bugs.webkit.org/show_bug.cgi?id=68738 5 6 Reviewed by Adam Barth. 7 8 Sets a static bool during GraphicsLayer::paintGraphicsLayerContents and ASSERT()s that we never create or 9 destroy a GraphicsLayer inside this function. Painting should never mutate the GraphicsLayer tree. 10 11 Test: compositing/video/video-with-invalid-source.html 12 13 * platform/graphics/GraphicsLayer.cpp: 14 (WebCore::GraphicsLayer::GraphicsLayer): 15 (WebCore::GraphicsLayer::~GraphicsLayer): 16 (WebCore::GraphicsLayer::paintGraphicsLayerContents): 17 1 18 2011-09-27 Ojan Vafai <ojan@chromium.org> 2 19 -
trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp
r95901 r96160 62 62 } 63 63 64 #ifndef NDEBUG 65 static bool s_inPaintContents = false; 66 #endif 67 64 68 GraphicsLayer::GraphicsLayer(GraphicsLayerClient* client) 65 69 : m_client(client) … … 85 89 , m_repaintCount(0) 86 90 { 91 ASSERT(!s_inPaintContents); 87 92 } 88 93 89 94 GraphicsLayer::~GraphicsLayer() 90 95 { 96 ASSERT(!s_inPaintContents); 91 97 removeAllChildren(); 92 98 removeFromParent(); … … 269 275 void GraphicsLayer::paintGraphicsLayerContents(GraphicsContext& context, const IntRect& clip) 270 276 { 277 #ifndef NDEBUG 278 s_inPaintContents = true; 279 #endif 271 280 if (m_client) 272 281 m_client->paintContents(this, context, m_paintingPhase, clip); 282 #ifndef NDEBUG 283 s_inPaintContents = false; 284 #endif 273 285 } 274 286
Note: See TracChangeset
for help on using the changeset viewer.