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

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

Issue 1299323005: blink: Add backdrop-filter support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: one more Created 5 years, 4 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/style/ComputedStyle.cpp
diff --git a/Source/core/style/ComputedStyle.cpp b/Source/core/style/ComputedStyle.cpp
index d240465c8e5c34b9c1efbbed9a847d8b5127c66f..5ee956de7ea7e9ea4c5070d1514b1466d00e9f4f 100644
--- a/Source/core/style/ComputedStyle.cpp
+++ b/Source/core/style/ComputedStyle.cpp
@@ -128,6 +128,7 @@ ALWAYS_INLINE ComputedStyle::ComputedStyle(InitialStyleTag)
rareNonInheritedData.access()->m_transform.init();
rareNonInheritedData.access()->m_willChange.init();
rareNonInheritedData.access()->m_filter.init();
+ rareNonInheritedData.access()->m_backdropFilter.init();
rareNonInheritedData.access()->m_grid.init();
rareNonInheritedData.access()->m_gridItem.init();
rareNonInheritedData.access()->m_scrollSnap.init();
@@ -734,6 +735,9 @@ void ComputedStyle::updatePropertySpecificDifferences(const ComputedStyle& other
if (rareNonInheritedData->m_filter != other.rareNonInheritedData->m_filter)
diff.setFilterChanged();
+
+ if (rareNonInheritedData->m_backdropFilter != other.rareNonInheritedData->m_backdropFilter)
+ diff.setBackdropFilterChanged();
}
if (!diff.needsPaintInvalidation()) {
@@ -1682,6 +1686,12 @@ const FilterOperations& ComputedStyle::initialFilter()
DEFINE_STATIC_LOCAL(Persistent<FilterOperationsWrapper>, ops, (FilterOperationsWrapper::create()));
return ops->operations();
}
+
+const FilterOperations& ComputedStyle::initialBackdropFilter()
+{
+ DEFINE_STATIC_LOCAL(Persistent<FilterOperationsWrapper>, ops, (FilterOperationsWrapper::create()));
+ return ops->operations();
+}
#endif
LayoutRectOutsets ComputedStyle::imageOutsets(const NinePieceImage& image) const

Powered by Google App Engine
This is Rietveld 408576698