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

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

Issue 803673003: Delete StyleSheetList and support code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
Index: sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp
diff --git a/sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp b/sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp
index 7bb1ccc04ca8d930e930191aab246cd9612fee6c..37b359c4ba6e3a9bb687520d02d0686ef69a03e3 100644
--- a/sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp
+++ b/sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp
@@ -49,11 +49,7 @@ void ShadowTreeStyleSheetCollection::collectStyleSheets(StyleEngine* engine, Sty
Node* node = *it;
if (!isHTMLStyleElement(*node))
ojan 2014/12/12 23:38:39 I guess the same applies here.
continue;
-
- CSSStyleSheet* sheet = toHTMLStyleElement(node)->sheet();
- if (sheet)
- collection.appendSheetForList(sheet);
- if (sheet)
+ if (CSSStyleSheet* sheet = toHTMLStyleElement(node)->sheet())
collection.appendActiveStyleSheet(sheet);
}
}

Powered by Google App Engine
This is Rietveld 408576698