Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1312)

Unified Diff: Source/core/rendering/svg/RenderSVGModelObject.cpp

Issue 264183002: RAL: Eliminate n^2 walk to find repaint containers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more simple rebaseline... Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/svg/RenderSVGModelObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGModelObject.cpp
diff --git a/Source/core/rendering/svg/RenderSVGModelObject.cpp b/Source/core/rendering/svg/RenderSVGModelObject.cpp
index 00c617fe108001704f093088dfac409e9945d9cc..b8cff02ff771e26f52f619cec0e9ec2648bfd193 100644
--- a/Source/core/rendering/svg/RenderSVGModelObject.cpp
+++ b/Source/core/rendering/svg/RenderSVGModelObject.cpp
@@ -124,7 +124,7 @@ void RenderSVGModelObject::absoluteFocusRingQuads(Vector<FloatQuad>& quads)
quads.append(localToAbsoluteQuad(FloatQuad(repaintRectInLocalCoordinates())));
}
-void RenderSVGModelObject::repaintTreeAfterLayout()
+void RenderSVGModelObject::repaintTreeAfterLayout(const RenderLayerModelObject& repaintContainer)
{
// Note: This is a reduced version of RenderBox::repaintTreeAfterLayout().
// FIXME: Should share code with RenderBox::repaintTreeAfterLayout().
@@ -138,15 +138,15 @@ void RenderSVGModelObject::repaintTreeAfterLayout()
const LayoutRect oldRepaintRect = previousRepaintRect();
const LayoutPoint oldPositionFromRepaintContainer = previousPositionFromRepaintContainer();
- const RenderLayerModelObject* repaintContainer = containerForRepaint();
- setPreviousRepaintRect(clippedOverflowRectForRepaint(repaintContainer));
- setPreviousPositionFromRepaintContainer(positionFromRepaintContainer(repaintContainer));
+ const RenderLayerModelObject& newRepaintContainer = *containerForRepaint();
+ setPreviousRepaintRect(clippedOverflowRectForRepaint(&newRepaintContainer));
+ setPreviousPositionFromRepaintContainer(positionFromRepaintContainer(&newRepaintContainer));
// If we are set to do a full repaint that means the RenderView will be
// invalidated. We can then skip issuing of invalidations for the child
// renderers as they'll be covered by the RenderView.
if (view()->doingFullRepaint()) {
- RenderObject::repaintTreeAfterLayout();
+ RenderObject::repaintTreeAfterLayout(newRepaintContainer);
return;
}
@@ -155,7 +155,7 @@ void RenderSVGModelObject::repaintTreeAfterLayout()
repaintAfterLayoutIfNeeded(containerForRepaint(),
shouldDoFullRepaintAfterLayout(), oldRepaintRect, oldPositionFromRepaintContainer, &newRepaintRect, &newPositionFromRepaintContainer);
- RenderObject::repaintTreeAfterLayout();
+ RenderObject::repaintTreeAfterLayout(newRepaintContainer);
}
} // namespace WebCore
« no previous file with comments | « Source/core/rendering/svg/RenderSVGModelObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698