Lines Matching refs:element
129 const Element* element, SerializeDomParam* param, bool* needSkip) in preActionBeforeSerializeOpenTag() argument
138 if (element->hasTagName(HTMLNames::metaTag)) { in preActionBeforeSerializeOpenTag()
139 const HTMLMetaElement* meta = static_cast<const HTMLMetaElement*>(element); in preActionBeforeSerializeOpenTag()
147 param->skipMetaElement = element; in preActionBeforeSerializeOpenTag()
151 } else if (element->hasTagName(HTMLNames::htmlTag)) { in preActionBeforeSerializeOpenTag()
162 } else if (element->hasTagName(HTMLNames::baseTag)) { in preActionBeforeSerializeOpenTag()
194 const Element* element, SerializeDomParam* param) in postActionAfterSerializeOpenTag() argument
203 && element->hasTagName(HTMLNames::headTag)) { in postActionAfterSerializeOpenTag()
218 } else if (element->hasTagName(HTMLNames::scriptTag) in postActionAfterSerializeOpenTag()
219 || element->hasTagName(HTMLNames::styleTag)) { in postActionAfterSerializeOpenTag()
227 const Element* element, SerializeDomParam* param, bool* needSkip) in preActionBeforeSerializeEndTag() argument
237 if (param->skipMetaElement == element) in preActionBeforeSerializeEndTag()
239 else if (element->hasTagName(HTMLNames::scriptTag) in preActionBeforeSerializeEndTag()
240 || element->hasTagName(HTMLNames::styleTag)) { in preActionBeforeSerializeEndTag()
251 const Element* element, SerializeDomParam* param) in postActionAfterSerializeEndTag() argument
258 if (element->hasTagName(HTMLNames::baseTag)) { in postActionAfterSerializeEndTag()
299 void WebPageSerializerImpl::openTagToString(const Element* element, in openTagToString() argument
305 String result = preActionBeforeSerializeOpenTag(element, param, &needSkip); in openTagToString()
309 result += "<" + element->nodeName(); in openTagToString()
311 const NamedNodeMap *attrMap = element->attributes(true); in openTagToString()
326 if (elementHasLegalLinkAttribute(element, attrName)) { in openTagToString()
353 String addedContents = postActionAfterSerializeOpenTag(element, param); in openTagToString()
355 if (element->hasChildNodes() || param->hasAddedContentsBeforeEnd) in openTagToString()
364 void WebPageSerializerImpl::endTagToString(const Element* element, in endTagToString() argument
369 String result = preActionBeforeSerializeEndTag(element, in endTagToString()
375 if (element->hasChildNodes() || param->hasAddedContentsBeforeEnd) { in endTagToString()
377 result += element->nodeName(); in endTagToString()
384 static_cast<const HTMLElement*>(element); in endTagToString()
388 result += element->nodeName(); in endTagToString()
397 result += postActionAfterSerializeEndTag(element, param); in endTagToString()
484 Element* element = static_cast<Element*>(node); in collectTargetFrames() local
486 WebFrameImpl::fromFrameOwnerElement(element); in collectTargetFrames()