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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 2278273004: Fix CSS reference filters with negative transformed children. (Closed)
Patch Set: SkPoint -> FloatPoint, gfx::PointF as appropriate. Created 4 years, 4 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: cc/trees/property_tree_builder.cc
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc
index 21d42e1017c8853b3050b800ae994dcb18bad718..7ebf8019104185fb94c8c44f99ecc7671d862c49 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -782,6 +782,14 @@ static inline const FilterOperations& Filters(Layer* layer) {
return layer->filters();
}
+static inline const gfx::PointF FiltersOrigin(Layer* layer) {
+ return layer->filters_origin();
+}
+
+static inline const gfx::PointF FiltersOrigin(LayerImpl* layer) {
+ return layer->filters_origin();
+}
+
static inline const FilterOperations& Filters(LayerImpl* layer) {
return layer->test_properties()->filters;
}
@@ -987,6 +995,7 @@ bool AddEffectNodeIfNeeded(
node.has_copy_request = HasCopyRequest(layer);
node.filters = Filters(layer);
node.background_filters = BackgroundFilters(layer);
+ node.filters_origin = FiltersOrigin(layer);
node.has_potential_opacity_animation = has_potential_opacity_animation;
node.has_potential_filter_animation = has_potential_filter_animation;
node.double_sided = DoubleSided(layer);

Powered by Google App Engine
This is Rietveld 408576698