Home | History | Annotate | Download | only in dom

Lines Matching refs:element

29 #include "core/dom/Element.h"
40 static bool isCSS(Element* element, const AtomicString& type)
42 return type.isEmpty() || (element->isHTMLElement() ? equalIgnoringCase(type, "text/css") : (type == "text/css"));
63 void StyleElement::processStyleSheet(Document& document, Element* element)
66 ASSERT(element);
67 ASSERT(element->inDocument());
70 document.styleEngine()->addStyleSheetCandidateNode(element, m_createdByParser);
74 process(element);
77 void StyleElement::removedFromDocument(Document& document, Element* element)
79 removedFromDocument(document, element, 0, document);
82 void StyleElement::removedFromDocument(Document& document, Element* element, ContainerNode* scopingNode, TreeScope& treeScope)
84 ASSERT(element);
87 document.styleEngine()->removeStyleSheetCandidateNode(element, scopingNode, treeScope);
94 clearSheet(element);
99 void StyleElement::clearDocumentData(Document& document, Element* element)
104 if (element->inDocument()) {
105 ContainerNode* scopingNode = isHTMLStyleElement(element) ? toHTMLStyleElement(element)->scopingNode() : 0;
106 TreeScope& treeScope = scopingNode ? scopingNode->treeScope() : element->treeScope();
107 document.styleEngine()->removeStyleSheetCandidateNode(element, scopingNode, treeScope);
111 void StyleElement::childrenChanged(Element* element)
113 ASSERT(element);
117 process(element);
120 void StyleElement::finishParsingChildren(Element* element)
122 ASSERT(element);
123 process(element);
127 void StyleElement::process(Element* element)
129 if (!element || !element->inDocument())
131 createSheet(element, element->textFromChildren());
134 void StyleElement::clearSheet(Element* ownerElement)
144 void StyleElement::createSheet(Element* e, const String& text)