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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 1637143002: Layers that have a backdrop-filter should paints contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index d41aef293f0b95ce9767c1ba7c63729d3dc381f2..18405f2c3df70cf60bb1a8bce9015f19a68a74ca 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -122,16 +122,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.
@@ -1887,13 +1887,13 @@ bool CompositedLayerMapping::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