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

Unified Diff: third_party/WebKit/Source/core/paint/SVGPaintContext.h

Issue 2573883002: Refactor PaintChunkProperties to use PropertyTreeState (Closed)
Patch Set: none Created 4 years 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/SVGPaintContext.h
diff --git a/third_party/WebKit/Source/core/paint/SVGPaintContext.h b/third_party/WebKit/Source/core/paint/SVGPaintContext.h
index 6036e20815779e91b8277d597a9bbe5411e5d51f..2c0167e77f977f20c485b6252fca966126fc03d9 100644
--- a/third_party/WebKit/Source/core/paint/SVGPaintContext.h
+++ b/third_party/WebKit/Source/core/paint/SVGPaintContext.h
@@ -68,8 +68,8 @@ class SVGTransformContext : public TransformRecorder {
auto& paintController = context.getPaintController();
PaintChunkProperties properties(
paintController.currentPaintChunkProperties());
- properties.transform =
- objectProperties->svgLocalToBorderBoxTransform();
+ properties.propertyTreeState.setTransform(
+ objectProperties->svgLocalToBorderBoxTransform());
m_transformPropertyScope.emplace(paintController, object, properties);
}
} else {
@@ -83,7 +83,8 @@ class SVGTransformContext : public TransformRecorder {
auto& paintController = context.getPaintController();
PaintChunkProperties properties(
paintController.currentPaintChunkProperties());
- properties.transform = objectProperties->transform();
+ properties.propertyTreeState.setTransform(
+ objectProperties->transform());
m_transformPropertyScope.emplace(paintController, object, properties);
}
}

Powered by Google App Engine
This is Rietveld 408576698