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

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

Issue 2370553002: Refactor LocalBorderBoxProperties to use PropertyTreeState (Closed)
Patch Set: Rebase from space 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 be05bd7667b0e4bc938904da9595020d0faa96d1..c1b0b10d9dbe2c8746860def5b70130b2762c6bb 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -62,9 +62,8 @@ static LayoutRect mapLocalRectToPaintInvalidationBacking(GeometryMapper& geometr
rect.moveBy(FloatPoint(context.treeBuilderContext.current.paintOffset));
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();
bool success = false;
result = LayoutRect(geometryMapper.mapToVisualRectInDestinationSpace(rect, currentTreeState, containerTreeState, success));
@@ -107,8 +106,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