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

Unified Diff: Source/core/paint/ReplacedPainter.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/PartPainter.cpp ('k') | Source/core/paint/RoundedInnerRectClipper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ReplacedPainter.cpp
diff --git a/Source/core/paint/ReplacedPainter.cpp b/Source/core/paint/ReplacedPainter.cpp
index 4e01e46b9e8ba5f6bf061b2194494cb8382049fb..b96d37dd9241b3ee26abbc1940992d7b82c26206 100644
--- a/Source/core/paint/ReplacedPainter.cpp
+++ b/Source/core/paint/ReplacedPainter.cpp
@@ -56,7 +56,7 @@ void ReplacedPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint
return;
{
- OwnPtr<RoundedInnerRectClipper> clipper;
+ RoundedInnerRectClipper clipper(m_layoutReplaced, paintInfo);
bool completelyClippedOut = false;
if (m_layoutReplaced.style()->hasBorderRadius()) {
LayoutRect borderRect = LayoutRect(adjustedPaintOffset, m_layoutReplaced.size());
@@ -73,7 +73,7 @@ void ReplacedPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paint
-(m_layoutReplaced.paddingLeft() + m_layoutReplaced.borderLeft())),
true, true);
- clipper = adoptPtr(new RoundedInnerRectClipper(m_layoutReplaced, paintInfo, paintRect, roundedInnerRect, ApplyToDisplayListIfEnabled));
+ clipper.begin(paintRect, roundedInnerRect, ApplyToDisplayListIfEnabled);
}
}
« no previous file with comments | « Source/core/paint/PartPainter.cpp ('k') | Source/core/paint/RoundedInnerRectClipper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698