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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.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/PaintPropertyTreeBuilder.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
index 669e7c1553be867de3774da5748084f3189f824a..136ea35667f372659e97da730e385716a49ceedf 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -321,12 +321,9 @@ void PaintPropertyTreeBuilder::updateLocalBorderBoxContext(const LayoutObject& o
if (!object.isBox() && !object.hasLayer())
return;
+ PropertyTreeState propertyTreeState(context.current.transform, context.current.clip, context.currentEffect, context.current.scroll);
std::unique_ptr<ObjectPaintProperties::LocalBorderBoxProperties> borderBoxContext =
- wrapUnique(new ObjectPaintProperties::LocalBorderBoxProperties);
- borderBoxContext->paintOffset = context.current.paintOffset;
- borderBoxContext->geometryPropertyTreeState = GeometryPropertyTreeState(context.current.transform, context.current.clip, context.currentEffect);
- borderBoxContext->scroll = context.current.scroll;
-
+ wrapUnique(new ObjectPaintProperties::LocalBorderBoxProperties(context.current.paintOffset, propertyTreeState));
object.getMutableForPainting().ensureObjectPaintProperties().setLocalBorderBoxProperties(std::move(borderBoxContext));
}

Powered by Google App Engine
This is Rietveld 408576698