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

Unified Diff: Source/core/paint/SVGShapePainter.cpp

Issue 1144203004: Allow certain SP recorder classes to defer their "begin" operation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/paint/SVGRootPainter.cpp ('k') | Source/core/paint/ScopeRecorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGShapePainter.cpp
diff --git a/Source/core/paint/SVGShapePainter.cpp b/Source/core/paint/SVGShapePainter.cpp
index f753df97bcc244ec8f4818c8d061b2d717fdf1d5..e62e05fe348f8cc6654faf0fea0cce927f952d5f 100644
--- a/Source/core/paint/SVGShapePainter.cpp
+++ b/Source/core/paint/SVGShapePainter.cpp
@@ -212,9 +212,9 @@ void SVGShapePainter::paintMarker(const PaintInfo& paintInfo, LayoutSVGResourceM
markerPaintInfo.context = &contextRecorder.context();
TransformRecorder transformRecorder(*markerPaintInfo.context, marker, marker.markerTransformation(position.origin, position.angle, strokeWidth));
- OwnPtr<FloatClipRecorder> clipRecorder;
+ FloatClipRecorder clipRecorder(*markerPaintInfo.context, marker, markerPaintInfo.phase);
if (SVGLayoutSupport::isOverflowHidden(&marker))
- clipRecorder = adoptPtr(new FloatClipRecorder(*markerPaintInfo.context, marker, markerPaintInfo.phase, marker.viewport()));
+ clipRecorder.begin(marker.viewport());
SVGContainerPainter(marker).paint(markerPaintInfo);
}
« no previous file with comments | « Source/core/paint/SVGRootPainter.cpp ('k') | Source/core/paint/ScopeRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698