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

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

Issue 2351433002: Switch LocalBorderBoxProperties to store raw pointers (Closed)
Patch Set: Created 4 years, 3 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/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 98c7ff587eb23bc5538ef96a84bd6831d0211b32..167eec87bfa150f0766c0af54fb43dd2a7eb0577 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -54,9 +54,8 @@ static LayoutRect mapLocalRectToPaintInvalidationBacking(GeometryMapper& geometr
result = LayoutRect(rect);
} else {
GeometryPropertyTreeState currentTreeState(context.treeBuilderContext.current.transform, context.treeBuilderContext.current.clip, context.treeBuilderContext.currentEffect);
- GeometryPropertyTreeState containerTreeState;
const ObjectPaintProperties* containerPaintProperties = context.paintInvalidationContainer->objectPaintProperties();
- containerPaintProperties->getContentsProperties(containerTreeState);
+ GeometryPropertyTreeState containerTreeState = containerPaintProperties->getContentsProperties();
rect.moveBy(FloatPoint(context.treeBuilderContext.current.paintOffset));
bool success = false;
@@ -100,8 +99,7 @@ LayoutPoint PaintInvalidator::computeLocationFromPaintInvalidationBacking(const
bool success = false;
GeometryPropertyTreeState currentTreeState(context.treeBuilderContext.current.transform, context.treeBuilderContext.current.clip, context.treeBuilderContext.currentEffect);
- GeometryPropertyTreeState containerTreeState;
- context.paintInvalidationContainer->objectPaintProperties()->getContentsProperties(containerTreeState);
+ GeometryPropertyTreeState containerTreeState = context.paintInvalidationContainer->objectPaintProperties()->getContentsProperties();
point = m_geometryMapper.mapRectToDestinationSpace(FloatRect(point, FloatSize()), currentTreeState, containerTreeState, success).location();
DCHECK(success);
}

Powered by Google App Engine
This is Rietveld 408576698