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

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

Issue 2232013002: CSS filters: fix filtered parent with animated transform child. Base URL: https://chromium.googlesource.com/chromium/src.git@filter-bounds-transformed-composited-child
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
Index: third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp
diff --git a/third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp b/third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp
index bdd61a68d4c4d59762d27118c581850e34f1167d..7e40a1eb3243559f9911bf6da67e37fd7c9d4c16 100644
--- a/third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp
@@ -122,14 +122,14 @@ Vector<float> sepiaMatrix(double amount)
FloatRect computeReferenceBox(const Element& element, const FloatSize* zoomedReferenceBoxSize, float zoom)
{
- FloatSize size;
+ FloatRect box;
if (zoomedReferenceBoxSize) {
- size = *zoomedReferenceBoxSize;
+ box = FloatRect(FloatPoint(), *zoomedReferenceBoxSize);
} else if (element.isConnected() && element.layoutObject() && element.layoutObject()->enclosingLayer()) {
- size = FloatSize(element.layoutObject()->enclosingLayer()->physicalBoundingBoxIncludingReflectionAndStackingChildren(LayoutPoint(), PaintLayer::CalculateBoundsOptions::AlwaysIncludeTransforms).size());
+ box = FloatRect(element.layoutObject()->enclosingLayer()->physicalBoundingBoxIncludingReflectionAndStackingChildren(LayoutPoint(), PaintLayer::CalculateBoundsOptions::AlwaysIncludeTransforms));
}
- size.scale(1.0f / zoom);
- return FloatRect(FloatPoint(), size);
+ box.scale(1.0f / zoom);
+ return box;
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698