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

Unified Diff: Source/core/rendering/svg/RenderSVGResourceMasker.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/RenderSVGResourceMasker.h ('k') | Source/core/rendering/svg/RenderSVGRoot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGResourceMasker.cpp
diff --git a/Source/core/rendering/svg/RenderSVGResourceMasker.cpp b/Source/core/rendering/svg/RenderSVGResourceMasker.cpp
index 4a80ba303daf5d1346134f9e4c0b37751285d986..b5def17246485368134db4fabfcbc3dcfa3de4f3 100644
--- a/Source/core/rendering/svg/RenderSVGResourceMasker.cpp
+++ b/Source/core/rendering/svg/RenderSVGResourceMasker.cpp
@@ -66,12 +66,12 @@ bool RenderSVGResourceMasker::applyResource(RenderObject* object, RenderStyle*,
clearInvalidationMask();
- FloatRect repaintRect = object->paintInvalidationRectInLocalCoordinates();
- if (repaintRect.isEmpty() || !element()->hasChildren())
+ FloatRect paintInvalidationRect = object->paintInvalidationRectInLocalCoordinates();
+ if (paintInvalidationRect.isEmpty() || !element()->hasChildren())
return false;
// Content layer start.
- context->beginTransparencyLayer(1, &repaintRect);
+ context->beginTransparencyLayer(1, &paintInvalidationRect);
return true;
}
@@ -85,7 +85,7 @@ void RenderSVGResourceMasker::postApplyResource(RenderObject* object, GraphicsCo
ASSERT_UNUSED(resourceMode, resourceMode == ApplyToDefaultMode);
ASSERT_WITH_SECURITY_IMPLICATION(!needsLayout());
- FloatRect repaintRect = object->paintInvalidationRectInLocalCoordinates();
+ FloatRect paintInvalidationRect = object->paintInvalidationRectInLocalCoordinates();
const SVGRenderStyle& svgStyle = style()->svgStyle();
ColorFilter maskLayerFilter = svgStyle.maskType() == MT_LUMINANCE
@@ -94,7 +94,7 @@ void RenderSVGResourceMasker::postApplyResource(RenderObject* object, GraphicsCo
? ColorFilterSRGBToLinearRGB : ColorFilterNone;
// Mask layer start.
- context->beginLayer(1, CompositeDestinationIn, &repaintRect, maskLayerFilter);
+ context->beginLayer(1, CompositeDestinationIn, &paintInvalidationRect, maskLayerFilter);
{
// Draw the mask with color conversion (when needed).
GraphicsContextStateSaver maskContentSaver(*context);
@@ -150,7 +150,7 @@ PassRefPtr<DisplayList> RenderSVGResourceMasker::asDisplayList(GraphicsContext*
return context->endRecording();
}
-void RenderSVGResourceMasker::calculateMaskContentRepaintRect()
+void RenderSVGResourceMasker::calculateMaskContentPaintInvalidationRect()
{
for (SVGElement* childElement = Traversal<SVGElement>::firstChild(*element()); childElement; childElement = Traversal<SVGElement>::nextSibling(*childElement)) {
RenderObject* renderer = childElement->renderer();
@@ -176,7 +176,7 @@ FloatRect RenderSVGResourceMasker::resourceBoundingBox(const RenderObject* objec
return maskBoundaries;
if (m_maskContentBoundaries.isEmpty())
- calculateMaskContentRepaintRect();
+ calculateMaskContentPaintInvalidationRect();
FloatRect maskRect = m_maskContentBoundaries;
if (maskElement->maskContentUnits()->currentValue()->value() == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX) {
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceMasker.h ('k') | Source/core/rendering/svg/RenderSVGRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698