static bool isAcceptableCSSStyleSheetParent(const Node& parentNode) { // Only these nodes can be parents of StyleSheets, and they need to call // clearOwnerNode() when moved out of document. Note that destructor of // the nodes don't call clearOwnerNode() with Oilpan. return parentNode.isDocumentNode() || isHTMLLinkElement(parentNode) || isHTMLStyleElement(parentNode) || isSVGStyleElement(parentNode) || parentNode.getNodeType() == Node::kProcessingInstructionNode; }
void TreeScopeStyleSheetCollection::setExitTransitionStyleshetsEnabled(bool enabled) { DocumentOrderedList::iterator begin = m_styleSheetCandidateNodes.begin(); DocumentOrderedList::iterator end = m_styleSheetCandidateNodes.end(); for (DocumentOrderedList::iterator it = begin; it != end; ++it) { Node* node = *it; if (isHTMLLinkElement(*node)) toHTMLLinkElement(node)->setEnabledIfExitTransitionStyle(enabled); } }
static bool isAcceptableCSSStyleSheetParent(Node* parentNode) { // Only these nodes can be parents of StyleSheets, and they need to call // clearOwnerNode() when moved out of document. Note that destructor of // the nodes don't call clearOwnerNode() with Oilpan. return !parentNode || parentNode->isDocumentNode() || isHTMLLinkElement(*parentNode) || isHTMLStyleElement(*parentNode) || isSVGStyleElement(*parentNode) || parentNode->getNodeType() == Node::PROCESSING_INSTRUCTION_NODE; }
static bool isAcceptableCSSStyleSheetParent(Node* parentNode) { // Only these nodes can be parents of StyleSheets, and they need to call // clearOwnerNode() when moved out of document. // Destruction of the style sheet counts as being "moved out of the // document", but only in the non-oilpan version of blink. I.e. don't call // clearOwnerNode() in the owner's destructor in oilpan. return !parentNode || parentNode->isDocumentNode() || isHTMLLinkElement(*parentNode) || isHTMLStyleElement(*parentNode) || isSVGStyleElement(*parentNode) || parentNode->nodeType() == Node::PROCESSING_INSTRUCTION_NODE; }