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

Unified Diff: third_party/WebKit/Source/core/paint/BoxReflectionUtils.cpp

Issue 2692853016: Change PaintLayer::m_layoutObject to a reference. (Closed)
Patch Set: Added TODO Created 3 years, 10 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
Index: third_party/WebKit/Source/core/paint/BoxReflectionUtils.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxReflectionUtils.cpp b/third_party/WebKit/Source/core/paint/BoxReflectionUtils.cpp
index c7a6f1c366b4cf3aa2f22fcffca6de910dbaaa4e..9a18e59ede3491a6761c0a3ea6bbfd9a3101904d 100644
--- a/third_party/WebKit/Source/core/paint/BoxReflectionUtils.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxReflectionUtils.cpp
@@ -21,7 +21,7 @@ BoxReflection boxReflectionForPaintLayer(const PaintLayer& layer,
const ComputedStyle& style) {
const StyleReflection* reflectStyle = style.boxReflect();
- LayoutRect frameLayoutRect = toLayoutBox(layer.layoutObject())->frameRect();
+ LayoutRect frameLayoutRect = toLayoutBox(layer.layoutObject()).frameRect();
FloatRect frameRect(frameLayoutRect);
BoxReflection::ReflectionDirection direction =
BoxReflection::VerticalReflection;
@@ -61,10 +61,10 @@ BoxReflection boxReflectionForPaintLayer(const PaintLayer& layer,
PaintRecordBuilder builder(maskBoundingFloatRect);
{
GraphicsContext& context = builder.context();
- DrawingRecorder drawingRecorder(context, *layer.layoutObject(),
+ DrawingRecorder drawingRecorder(context, layer.layoutObject(),
DisplayItem::kReflectionMask,
maskBoundingFloatRect);
- NinePieceImagePainter(*layer.layoutObject())
+ NinePieceImagePainter(layer.layoutObject())
.paint(builder.context(), maskRect, style, maskNinePiece,
SkBlendMode::kSrcOver);
}

Powered by Google App Engine
This is Rietveld 408576698