| 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 c00cffa87dc32d3a7ad32dd58c7cfefa6b132328..86869045de844b778d2c25f752e23bd15f411145 100644
|
| --- a/third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp
|
| @@ -125,7 +125,7 @@ FloatRect computeReferenceBox(const Element& element, const FloatSize* zoomedRef
|
| FloatSize size;
|
| if (zoomedReferenceBoxSize) {
|
| size = *zoomedReferenceBoxSize;
|
| - } else if (element.inShadowIncludingDocument() && element.layoutObject() && element.layoutObject()->enclosingLayer()) {
|
| + } else if (element.isConnected() && element.layoutObject() && element.layoutObject()->enclosingLayer()) {
|
| size = FloatSize(element.layoutObject()->enclosingLayer()->physicalBoundingBoxIncludingReflectionAndStackingChildren(LayoutPoint()).size());
|
| }
|
| size.scale(1.0f / zoom);
|
|
|