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

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

Issue 463883003: Rename repaint to paintInvalidation in core/rendering/svg. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/RenderSVGShape.h ('k') | Source/core/rendering/svg/RenderSVGText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGShape.cpp
diff --git a/Source/core/rendering/svg/RenderSVGShape.cpp b/Source/core/rendering/svg/RenderSVGShape.cpp
index c823bb9ccddf03e0a02752cb221453ec87a1d49e..559a9511a0037baf82046976eed77ac2f3e7a920 100644
--- a/Source/core/rendering/svg/RenderSVGShape.cpp
+++ b/Source/core/rendering/svg/RenderSVGShape.cpp
@@ -138,7 +138,7 @@ void RenderSVGShape::layout()
if (m_needsShapeUpdate || m_needsBoundariesUpdate) {
updateShapeFromElement();
m_needsShapeUpdate = false;
- updateRepaintBoundingBox();
+ updatePaintInvalidationBoundingBox();
m_needsBoundariesUpdate = false;
updateCachedBoundariesInParents = true;
}
@@ -237,7 +237,7 @@ void RenderSVGShape::paint(PaintInfo& paintInfo, const LayoutPoint&)
return;
FloatRect boundingBox = paintInvalidationRectInLocalCoordinates();
- if (!SVGRenderSupport::paintInfoIntersectsRepaintRect(boundingBox, m_localTransform, paintInfo))
+ if (!SVGRenderSupport::paintInfoIntersectsPaintInvalidationRect(boundingBox, m_localTransform, paintInfo))
return;
PaintInfo childPaintInfo(paintInfo);
@@ -398,12 +398,12 @@ FloatRect RenderSVGShape::calculateStrokeBoundingBox() const
return strokeBoundingBox;
}
-void RenderSVGShape::updateRepaintBoundingBox()
+void RenderSVGShape::updatePaintInvalidationBoundingBox()
{
- m_repaintBoundingBox = strokeBoundingBox();
- if (strokeWidth() < 1.0f && !m_repaintBoundingBox.isEmpty())
- m_repaintBoundingBox.inflate(1);
- SVGRenderSupport::intersectRepaintRectWithResources(this, m_repaintBoundingBox);
+ m_paintInvalidationBoundingBox = strokeBoundingBox();
+ if (strokeWidth() < 1.0f && !m_paintInvalidationBoundingBox.isEmpty())
+ m_paintInvalidationBoundingBox.inflate(1);
+ SVGRenderSupport::intersectPaintInvalidationRectWithResources(this, m_paintInvalidationBoundingBox);
}
float RenderSVGShape::strokeWidth() const
« no previous file with comments | « Source/core/rendering/svg/RenderSVGShape.h ('k') | Source/core/rendering/svg/RenderSVGText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698