| Index: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| diff --git a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| index 422c49504f6943e63b12d75b62910100a9d5d901..142951fbb41ede9081bcd53507be1cc305fd5c87 100644
|
| --- a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| +++ b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| @@ -119,16 +119,16 @@ static inline bool isAcceleratedCanvas(const LayoutObject* layoutObject)
|
| return false;
|
| }
|
|
|
| -static bool hasBoxDecorationsOrBackgroundImage(const ComputedStyle& style)
|
| +static bool hasBoxDecorationsOrBackgroundImageOrBackdropFilter(const ComputedStyle& style)
|
| {
|
| - return style.hasBoxDecorations() || style.hasBackgroundImage();
|
| + return style.hasBoxDecorations() || style.hasBackgroundImageOrBackdropFilter();
|
| }
|
|
|
| static bool contentLayerSupportsDirectBackgroundComposition(const LayoutObject* layoutObject)
|
| {
|
| // No support for decorations - border, border-radius or outline.
|
| // Only simple background - solid color or transparent.
|
| - if (hasBoxDecorationsOrBackgroundImage(layoutObject->styleRef()))
|
| + if (hasBoxDecorationsOrBackgroundImageOrBackdropFilter(layoutObject->styleRef()))
|
| return false;
|
|
|
| // If there is no background, there is nothing to support.
|
| @@ -1830,13 +1830,13 @@ bool CompositedDeprecatedPaintLayerMapping::containsPaintedContent() const
|
| LayoutObject* rootObject = layoutObject->document().documentElement() ? layoutObject->document().documentElement()->layoutObject() : 0;
|
| // Reject anything that has a border, a border-radius or outline,
|
| // or is not a simple background (no background, or solid color).
|
| - if (rootObject && hasBoxDecorationsOrBackgroundImage(rootObject->styleRef()))
|
| + if (rootObject && hasBoxDecorationsOrBackgroundImageOrBackdropFilter(rootObject->styleRef()))
|
| return true;
|
|
|
| // Now look at the body's layoutObject.
|
| HTMLElement* body = layoutObject->document().body();
|
| LayoutObject* bodyObject = isHTMLBodyElement(body) ? body->layoutObject() : 0;
|
| - if (bodyObject && hasBoxDecorationsOrBackgroundImage(bodyObject->styleRef()))
|
| + if (bodyObject && hasBoxDecorationsOrBackgroundImageOrBackdropFilter(bodyObject->styleRef()))
|
| return true;
|
| }
|
|
|
|
|