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

Unified Diff: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp

Issue 1327973002: blink: Layers that have a backdrop-filter paints contents Base URL: https://chromium.googlesource.com/chromium/blink.git@wk-bf
Patch Set: check for backdrop filter in more places Created 5 years, 3 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698