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

Unified Diff: Source/core/paint/SVGForeignObjectPainter.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/SVGContainerPainter.cpp ('k') | Source/core/paint/SVGRootPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGForeignObjectPainter.cpp
diff --git a/Source/core/paint/SVGForeignObjectPainter.cpp b/Source/core/paint/SVGForeignObjectPainter.cpp
index 5b8f622016dd17231530e3a5aa3da65cd49cbd0f..75a1c9281eb60562d426b3e5aad042efca07cd58 100644
--- a/Source/core/paint/SVGForeignObjectPainter.cpp
+++ b/Source/core/paint/SVGForeignObjectPainter.cpp
@@ -27,9 +27,9 @@ void SVGForeignObjectPainter::paint(const PaintInfo& paintInfo)
// because it can be used for clipping.
m_layoutSVGForeignObject.updatePaintInfoRect(paintInfoBeforeFiltering.rect);
- OwnPtr<FloatClipRecorder> clipRecorder;
+ FloatClipRecorder clipRecorder(*paintInfoBeforeFiltering.context, m_layoutSVGForeignObject, paintInfoBeforeFiltering.phase);
if (SVGLayoutSupport::isOverflowHidden(&m_layoutSVGForeignObject))
- clipRecorder = adoptPtr(new FloatClipRecorder(*paintInfoBeforeFiltering.context, m_layoutSVGForeignObject, paintInfoBeforeFiltering.phase, m_layoutSVGForeignObject.viewportRect()));
+ clipRecorder.begin(m_layoutSVGForeignObject.viewportRect());
SVGPaintContext paintContext(m_layoutSVGForeignObject, paintInfoBeforeFiltering);
bool continueRendering = true;
« no previous file with comments | « Source/core/paint/SVGContainerPainter.cpp ('k') | Source/core/paint/SVGRootPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698