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

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

Issue 2390443002: Unify GeometryPropertyTreeState and PropertyTreeState (Closed)
Patch Set: rebase x2 Created 4 years, 2 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 60614ed935b5dad1a1cdb844eb89ff5dee284e93..5a627a037a844570a70db6d54df4fbe64439033e 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -388,14 +388,13 @@ void PaintPropertyTreeBuilder::updateLocalBorderBoxContext(
if (!object.isBox() && !object.hasLayer())
return;
- std::unique_ptr<ObjectPaintProperties::LocalBorderBoxProperties>
+ std::unique_ptr<ObjectPaintProperties::PropertyTreeStateWithOffset>
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::PropertyTreeStateWithOffset(
+ context.current.paintOffset,
+ PropertyTreeState(context.current.transform, context.current.clip,
+ context.currentEffect,
+ context.current.scroll)));
object.getMutableForPainting()
.ensureObjectPaintProperties()
.setLocalBorderBoxProperties(std::move(borderBoxContext));

Powered by Google App Engine
This is Rietveld 408576698