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

Unified Diff: cc/layers/layer.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/layers/layer.h ('k') | cc/layers/layer_impl_test_properties.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 5c0ca54183a4efbe5a6b6f89982113f0bcf71c01..6f076f525e32a09e1692cc135eee42603116def1 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -477,6 +477,15 @@ void Layer::SetBackgroundFilters(const FilterOperations& filters) {
SetNeedsCommit();
}
+void Layer::SetFiltersOrigin(const gfx::PointF& filters_origin) {
+ DCHECK(IsPropertyChangeAllowed());
+ if (inputs_.filters_origin == filters_origin)
+ return;
+ inputs_.filters_origin = filters_origin;
+ SetSubtreePropertyChanged();
+ SetNeedsCommit();
+}
+
void Layer::SetOpacity(float opacity) {
DCHECK(IsPropertyChangeAllowed());
DCHECK_GE(opacity, 0.f);
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl_test_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698