| 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 63b6bb9bce4ca40de0f3f7be61e20dd642f2be50..c1fafc8092dbc528dc9aa8931d9ea81d2f6439bf 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()).size());
|
| + box = FloatRect(element.layoutObject()->enclosingLayer()->physicalBoundingBoxIncludingReflectionAndStackingChildren(LayoutPoint(), PaintLayer::CalculateBoundsOptions::IncludeTransformsAndCompositedChildLayers));
|
| }
|
| - size.scale(1.0f / zoom);
|
| - return FloatRect(FloatPoint(), size);
|
| + box.scale(1.0f / zoom);
|
| + return box;
|
| }
|
|
|
| } // namespace
|
|
|