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

Unified Diff: Source/core/paint/BoxPainter.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/BlockPainter.cpp ('k') | Source/core/paint/CompositingRecorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/BoxPainter.cpp
diff --git a/Source/core/paint/BoxPainter.cpp b/Source/core/paint/BoxPainter.cpp
index 4b8298c32d0e443b430e42306c7257abb1da8df0..118fca922614a235c7ae033b2d35b3d6c6ec89b2 100644
--- a/Source/core/paint/BoxPainter.cpp
+++ b/Source/core/paint/BoxPainter.cpp
@@ -394,7 +394,7 @@ void BoxPainter::paintFillLayerExtended(LayoutBoxModelObject& obj, const PaintIn
// BorderFillBox radius clipping is taken care of by BackgroundBleedClip{Only,Layer}
bool clipToBorderRadius = hasRoundedBorder && !(isBorderFill && bleedAvoidanceIsClipping(bleedAvoidance));
- OwnPtr<RoundedInnerRectClipper> clipToBorder;
+ RoundedInnerRectClipper clipToBorder(obj, paintInfo);
if (clipToBorderRadius) {
FloatRoundedRect border = isBorderFill
? backgroundRoundedRectAdjustedForBleedAvoidance(obj, rect, bleedAvoidance, box, boxSize, includeLeftEdge, includeRightEdge)
@@ -413,7 +413,7 @@ void BoxPainter::paintFillLayerExtended(LayoutBoxModelObject& obj, const PaintIn
border = obj.style()->getRoundedInnerBorderFor(LayoutRect(border.rect()), includeLeftEdge, includeRightEdge);
}
- clipToBorder = adoptPtr(new RoundedInnerRectClipper(obj, paintInfo, rect, border, ApplyToContext));
+ clipToBorder.begin(rect, border, ApplyToContext);
}
int bLeft = includeLeftEdge ? obj.borderLeft() : 0;
« no previous file with comments | « Source/core/paint/BlockPainter.cpp ('k') | Source/core/paint/CompositingRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698