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

Unified Diff: Source/core/style/ComputedStyle.h

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
« no previous file with comments | « Source/core/paint/BoxDecorationData.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/ComputedStyle.h
diff --git a/Source/core/style/ComputedStyle.h b/Source/core/style/ComputedStyle.h
index a52eabc06ef1b7b06dd4ff4666441073408d3f64..b50a57450f4ee58afe40c3464626c9c6b1d4bc94 100644
--- a/Source/core/style/ComputedStyle.h
+++ b/Source/core/style/ComputedStyle.h
@@ -409,6 +409,7 @@ public:
bool hasMarginAfterQuirk() const { return marginAfter().quirk(); }
bool hasBackgroundImage() const { return m_background->background().hasImage(); }
+ bool hasBackgroundImageOrBackdropFilter() const { return hasBackgroundImage() || hasBackdropFilter(); }
bool hasFixedBackgroundImage() const { return m_background->background().hasFixedImage(); }
bool hasEntirelyFixedBackground() const;
@@ -422,7 +423,7 @@ public:
Color color = visitedDependentColor(CSSPropertyBackgroundColor);
if (color.alpha())
return true;
- return hasBackgroundImage();
+ return hasBackgroundImageOrBackdropFilter();
}
LayoutRectOutsets imageOutsets(const NinePieceImage&) const;
« no previous file with comments | « Source/core/paint/BoxDecorationData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698