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

Unified Diff: sky/engine/core/dom/StyleSheetCandidate.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/StyleSheetCandidate.h ('k') | sky/engine/core/dom/StyleSheetCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/StyleSheetCandidate.cpp
diff --git a/sky/engine/core/dom/StyleSheetCandidate.cpp b/sky/engine/core/dom/StyleSheetCandidate.cpp
index f1194dcf88e164e82d0810f1f02bbcb38de97fb2..c422682daf668511766fdd44581c216f0266137c 100644
--- a/sky/engine/core/dom/StyleSheetCandidate.cpp
+++ b/sky/engine/core/dom/StyleSheetCandidate.cpp
@@ -36,8 +36,9 @@ namespace blink {
bool StyleSheetCandidate::canBeActivated() const
{
- StyleSheet* sheet = this->sheet();
- return sheet && sheet->isCSSStyleSheet();
+ // TODO(esprehn): Remove this.
+ CSSStyleSheet* sheet = this->sheet();
+ return sheet;
}
StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node)
@@ -54,7 +55,7 @@ StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node)
return HTMLStyle;
}
-StyleSheet* StyleSheetCandidate::sheet() const
+CSSStyleSheet* StyleSheetCandidate::sheet() const
{
switch (m_type) {
case HTMLStyle:
« no previous file with comments | « sky/engine/core/dom/StyleSheetCandidate.h ('k') | sky/engine/core/dom/StyleSheetCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698