Changeset 137215 in webkit
- Timestamp:
- Dec 10, 2012, 3:43:43 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r137214 r137215 1 2012-12-10 Simon Fraser <simon.fraser@apple.com> 2 3 Don't unconditionally repaint compositing layers when their size changes 4 https://bugs.webkit.org/show_bug.cgi?id=104461 5 6 Reviewed by Sam Weinig. 7 8 Test that dumps repaint rects after adding content to a compositing layer. 9 10 * compositing/repaint/resize-repaint-expected.txt: Added. 11 * compositing/repaint/resize-repaint.html: Added. 12 1 13 2012-12-10 Ojan Vafai <ojan@chromium.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r137214 r137215 1 2012-12-10 Simon Fraser <simon.fraser@apple.com> 2 3 Don't unconditionally repaint compositing layers when their size changes 4 https://bugs.webkit.org/show_bug.cgi?id=104461 5 6 Reviewed by Sam Weinig. 7 8 RenderLayerBacking always repainted the entire compositing layer when its size 9 changed. This was done to fix repaint issues when outline widths changes, but 10 that issue is now solved by repainting in GraphicsLayer::setOffsetFromRenderer(), 11 add in r134628. I believe this is no longer necessary. 12 13 Always repainting when the size changes is terrible for the tile cache when 14 loading large documents, as all tiles repaint every time the document gets 15 longer. 16 17 Test: compositing/repaint/resize-repaint.html 18 19 * rendering/RenderLayerBacking.cpp: 20 (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry): 21 1 22 2012-12-10 Ojan Vafai <ojan@chromium.org> 2 23 -
trunk/Source/WebCore/rendering/RenderLayerBacking.cpp
r137108 r137215 632 632 FloatSize oldSize = m_graphicsLayer->size(); 633 633 FloatSize newSize = relativeCompositingBounds.size(); 634 if (oldSize != newSize) {634 if (oldSize != newSize) 635 635 m_graphicsLayer->setSize(newSize); 636 // A bounds change will almost always require redisplay. Usually that redisplay637 // will happen because of a repaint elsewhere, but not always:638 // e.g. see RenderView::setMaximalOutlineSize()639 m_graphicsLayer->setNeedsDisplay();640 }641 636 642 637 // If we have a layer that clips children, position it.
Note:
See TracChangeset
for help on using the changeset viewer.