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

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

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/PaintLayerPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
index e5cafe6c12882997072a1abe347c9c7474ccef99..01c215be4548672fcbb327c12bf692a4e748223b 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
@@ -269,11 +269,7 @@ PaintResult PaintLayerPainter::paintLayerContents(
context.getPaintController().currentPaintChunkProperties());
auto& localBorderBoxProperties =
*objectPaintProperties->localBorderBoxProperties();
- properties.transform =
- localBorderBoxProperties.propertyTreeState.transform();
- properties.scroll = localBorderBoxProperties.propertyTreeState.scroll();
- properties.clip = localBorderBoxProperties.propertyTreeState.clip();
- properties.effect = localBorderBoxProperties.propertyTreeState.effect();
+ properties.propertyTreeState = localBorderBoxProperties.propertyTreeState;
properties.backfaceHidden =
m_paintLayer.layoutObject()->hasHiddenBackface();
scopedPaintChunkProperties.emplace(context.getPaintController(),
@@ -511,11 +507,7 @@ PaintResult PaintLayerPainter::paintLayerContents(
context.getPaintController().currentPaintChunkProperties());
auto& localBorderBoxProperties =
*objectPaintProperties->localBorderBoxProperties();
- properties.transform =
- localBorderBoxProperties.propertyTreeState.transform();
- properties.scroll = localBorderBoxProperties.propertyTreeState.scroll();
- properties.clip = localBorderBoxProperties.propertyTreeState.clip();
- properties.effect = localBorderBoxProperties.propertyTreeState.effect();
+ properties.propertyTreeState = localBorderBoxProperties.propertyTreeState;
properties.backfaceHidden =
m_paintLayer.layoutObject()->hasHiddenBackface();
contentScopedPaintChunkProperties.emplace(context.getPaintController(),

Powered by Google App Engine
This is Rietveld 408576698