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

Unified Diff: sky/engine/core/html/HTMLStyleElement.cpp

Issue 797873002: Remove style element counting in ShadowRoot. (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/shadow/ShadowRoot.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/html/HTMLStyleElement.cpp
diff --git a/sky/engine/core/html/HTMLStyleElement.cpp b/sky/engine/core/html/HTMLStyleElement.cpp
index 6942b9ee5968b8b889743e718251f6f77347503a..8631cffcda532397b8e45434ebb9439b41d743f7 100644
--- a/sky/engine/core/html/HTMLStyleElement.cpp
+++ b/sky/engine/core/html/HTMLStyleElement.cpp
@@ -73,9 +73,6 @@ void HTMLStyleElement::insertedInto(ContainerNode* insertionPoint)
return;
processStyleSheet();
-
- if (ShadowRoot* scope = containingShadowRoot())
- scope->registerScopedHTMLStyleChild();
}
void HTMLStyleElement::removedFrom(ContainerNode* insertionPoint)
@@ -89,9 +86,6 @@ void HTMLStyleElement::removedFrom(ContainerNode* insertionPoint)
if (!scopingNode)
scopingNode = insertionPoint->containingShadowRoot();
- if (scopingNode)
- scopingNode->unregisterScopedHTMLStyleChild();
-
TreeScope* containingScope = containingShadowRoot();
TreeScope& scope = containingScope ? *containingScope : insertionPoint->treeScope();
« no previous file with comments | « sky/engine/core/dom/shadow/ShadowRoot.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698