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

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

Issue 758573005: Remove CSSOM mutability in StyleRule. (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/css/parser/BisonCSSParser-in.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 8a3c8b82caca584e4410e886aeac67558c45ccae..2cc2d8021b8c084d10e7568f9f27ebfedc9eaca2 100644
--- a/sky/engine/core/dom/StyleEngine.cpp
+++ b/sky/engine/core/dom/StyleEngine.cpp
@@ -378,11 +378,6 @@ void StyleEngine::markDocumentDirty()
static bool isCacheableForStyleElement(const StyleSheetContents& contents)
{
- // Until import rules are supported in cached sheets it's not possible for loading to fail.
- ASSERT(!contents.didLoadErrorOccur());
- // It is not the original sheet anymore.
- if (contents.isMutable())
- return false;
if (!contents.hasSyntacticallyValidCSSHeader())
return false;
return true;
« no previous file with comments | « sky/engine/core/css/parser/BisonCSSParser-in.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698