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

Unified Diff: sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp

Issue 778743003: Merge StyleSheet into CSSStyleSheet. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: sort headers. Created 6 years 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 | « sky/engine/core/dom/DocumentStyleSheetCollector.cpp ('k') | sky/engine/core/dom/StyleElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp
diff --git a/sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp b/sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp
index 0936baaa2857fe5fbcda198facc9dd0de5c4909b..7bb1ccc04ca8d930e930191aab246cd9612fee6c 100644
--- a/sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp
+++ b/sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp
@@ -50,11 +50,11 @@ void ShadowTreeStyleSheetCollection::collectStyleSheets(StyleEngine* engine, Sty
if (!isHTMLStyleElement(*node))
continue;
- StyleSheet* sheet = toHTMLStyleElement(node)->sheet();
+ CSSStyleSheet* sheet = toHTMLStyleElement(node)->sheet();
if (sheet)
collection.appendSheetForList(sheet);
- if (sheet && sheet->isCSSStyleSheet())
- collection.appendActiveStyleSheet(toCSSStyleSheet(sheet));
+ if (sheet)
+ collection.appendActiveStyleSheet(sheet);
}
}
« no previous file with comments | « sky/engine/core/dom/DocumentStyleSheetCollector.cpp ('k') | sky/engine/core/dom/StyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698