| 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
|
|
|