void StyleEngine::removeStyleSheetCandidateNode(Node* node, ContainerNode* scopingNode, TreeScope& treeScope) { ASSERT(isHTMLStyleElement(node) || treeScope == m_document); TreeScopeStyleSheetCollection* collection = styleSheetCollectionFor(treeScope); ASSERT(collection); collection->removeStyleSheetCandidateNode(node, scopingNode); markTreeScopeDirty(treeScope); m_activeTreeScopes.remove(&treeScope); }
void StyleEngine::removeStyleSheetCandidateNode(Node* node, TreeScope& treeScope) { ASSERT(isStyleElement(*node) || treeScope == m_document); ASSERT(!isXSLStyleSheet(*node)); TreeScopeStyleSheetCollection* collection = styleSheetCollectionFor(treeScope); ASSERT(collection); collection->removeStyleSheetCandidateNode(node); markTreeScopeDirty(treeScope); }
void StyleEngine::removeStyleSheetCandidateNode(Node* node, ContainerNode* scopingNode) { TreeScope& treeScope = scopingNode ? scopingNode->treeScope() : m_document; ASSERT(node->hasTagName(styleTag) || treeScope == m_document); TreeScopeStyleSheetCollection* collection = styleSheetCollectionFor(treeScope); ASSERT(collection); collection->removeStyleSheetCandidateNode(node, scopingNode); markTreeScopeDirty(treeScope); m_activeTreeScopes.remove(&treeScope); }
void StyleEngine::removeStyleSheetCandidateNode(Node* node, TreeScope& treeScope) { ASSERT(isStyleElement(*node) || treeScope == m_document); ASSERT(!isXSLStyleSheet(*node)); TreeScopeStyleSheetCollection* collection = styleSheetCollectionFor(treeScope); // After detaching document, collection could be null. In the case, // we should not update anything. Instead, just return. if (!collection) return; collection->removeStyleSheetCandidateNode(node); markTreeScopeDirty(treeScope); }