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

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

Issue 799073004: Remove dead code from StyleSheetContents and CSSStyleSheet. (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
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/StyleEngine.cpp
diff --git a/sky/engine/core/dom/StyleEngine.cpp b/sky/engine/core/dom/StyleEngine.cpp
index d2399b1ad22d3296ab14096e5b614ae3aa1d7c8f..a2d551beb8f4f26d91af4a3b013315dbe9809240 100644
--- a/sky/engine/core/dom/StyleEngine.cpp
+++ b/sky/engine/core/dom/StyleEngine.cpp
@@ -381,7 +381,7 @@ PassRefPtr<CSSStyleSheet> StyleEngine::createSheet(Element* e, const String& tex
HashMap<AtomicString, RawPtr<StyleSheetContents> >::AddResult result = m_textToSheetCache.add(textContent, nullptr);
if (result.isNewEntry || !result.storedValue->value) {
- styleSheet = CSSStyleSheet::createInline(e, KURL());
+ styleSheet = CSSStyleSheet::create(e, KURL());
styleSheet->contents()->parseString(text);
if (result.isNewEntry) {
result.storedValue->value = styleSheet->contents();
@@ -391,7 +391,7 @@ PassRefPtr<CSSStyleSheet> StyleEngine::createSheet(Element* e, const String& tex
StyleSheetContents* contents = result.storedValue->value;
ASSERT(contents);
ASSERT(contents->singleOwnerDocument() == e->document());
- styleSheet = CSSStyleSheet::createInline(contents, e);
+ styleSheet = CSSStyleSheet::create(contents, e);
}
ASSERT(styleSheet);
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698