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

Unified Diff: Source/core/dom/StyleSheetScopingNodeList.cpp

Issue 178333005: Avoid calling Node::numberOfScopedHTMLStyleChildren() to check for existence (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months 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 | « Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleSheetScopingNodeList.cpp
diff --git a/Source/core/dom/StyleSheetScopingNodeList.cpp b/Source/core/dom/StyleSheetScopingNodeList.cpp
index 5d809e0090411cd7c35c8bffe966d71359a636e9..88dc84a428d9d958f2c5334a188b7ff95ea7ab36 100644
--- a/Source/core/dom/StyleSheetScopingNodeList.cpp
+++ b/Source/core/dom/StyleSheetScopingNodeList.cpp
@@ -53,7 +53,7 @@ void StyleSheetScopingNodeList::remove(ContainerNode* node)
return;
// If the node is still working as a scoping node, we cannot remove.
- if (node->inDocument() && node->numberOfScopedHTMLStyleChildren())
+ if (node->inDocument() && node->hasScopedHTMLStyleChild())
return;
m_scopingNodes->remove(node);
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698