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

Unified Diff: cc/trees/property_tree_builder.cc

Issue 2297213003: Fix CSS reference filters with negative transformed children. (Closed)
Patch Set: 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
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_filters.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..be8ad79344b1b7ebff046a8b15ce3b57a02c34cc 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->test_properties()->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);
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_filters.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698