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

Unified Diff: third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.h

Issue 1998503002: CSS: Checked downcast for ShadowTreeStyleSheetCollection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.h
diff --git a/third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.h b/third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.h
index b74d6ccc98e7ece5e65d018cf1dbac7db185b101..a94cd34d8882c3fa1213cee6b8534dbc9929ef5f 100644
--- a/third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.h
+++ b/third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.h
@@ -43,6 +43,8 @@ public:
void updateActiveStyleSheets(StyleEngine&, StyleResolverUpdateMode);
+ bool isShadowTreeStyleSheetCollection() const final { return true; }
+
DEFINE_INLINE_VIRTUAL_TRACE()
{
TreeScopeStyleSheetCollection::trace(visitor);
@@ -52,6 +54,8 @@ private:
void collectStyleSheets(StyleEngine&, StyleSheetCollection&);
};
+DEFINE_TYPE_CASTS(ShadowTreeStyleSheetCollection, TreeScopeStyleSheetCollection, value, value->isShadowTreeStyleSheetCollection(), value.isShadowTreeStyleSheetCollection());
+
} // namespace blink
#endif
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698