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

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

Issue 799143002: Remove single client special cases for StyleSheetContents. (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/StyleEngine.cpp
diff --git a/sky/engine/core/dom/StyleEngine.cpp b/sky/engine/core/dom/StyleEngine.cpp
index a2d551beb8f4f26d91af4a3b013315dbe9809240..0f4d91a2c1ac7d52825ff825e4c70e804a063737 100644
--- a/sky/engine/core/dom/StyleEngine.cpp
+++ b/sky/engine/core/dom/StyleEngine.cpp
@@ -390,7 +390,6 @@ PassRefPtr<CSSStyleSheet> StyleEngine::createSheet(Element* e, const String& tex
} else {
StyleSheetContents* contents = result.storedValue->value;
ASSERT(contents);
- ASSERT(contents->singleOwnerDocument() == e->document());
styleSheet = CSSStyleSheet::create(contents, e);
}

Powered by Google App Engine
This is Rietveld 408576698