Chromium Code Reviews| 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); |
| } |
| } |