Lines Matching refs:Element
71 return Element::nodeName();
300 // child of an element.
339 static void replaceChildrenWithFragment(HTMLElement* element, PassRefPtr<DocumentFragment> fragment, ExceptionCode& ec)
342 element->removeChildren();
346 if (hasOneTextChild(element) && hasOneTextChild(fragment.get())) {
347 static_cast<Text*>(element->firstChild())->setData(static_cast<Text*>(fragment->firstChild())->data(), ec);
351 if (hasOneChild(element)) {
352 element->replaceChild(fragment, element->firstChild(), ec);
356 element->removeChildren();
357 element->appendChild(fragment, ec);
360 static void replaceChildrenWithText(HTMLElement* element
362 if (hasOneTextChild(element)) {
363 static_cast<Text*>(element->firstChild())->setData(text, ec);
367 RefPtr<Text> textNode = Text::create(element->document(), text);
369 if (hasOneChild(element)) {
370 element->replaceChild(textNode.release(), element->firstChild(), ec);
374 element->removeChildren();
375 element->appendChild(textNode.release(), ec);
544 // In Internet Explorer if the element has no parent and where is "beforeBegin" or "afterEnd",
574 Element* HTMLElement::insertAdjacentElement(const String& where, Element* newChild, ExceptionCode& ec)
584 return static_cast<Element*>(returnValue);
612 void HTMLElement::addHTMLAlignmentToStyledElement(StyledElement* element, MappedAttribute* attr)
642 element->addCSSProperty(attr, CSSPropertyFloat, floatValue);
645 element->addCSSProperty(attr, CSSPropertyVerticalAlign, verticalAlignValue);
650 return Element::supportsFocus() || (isContentEditable() && parent() && !parent()->isContentEditable());
780 return Element::tabIndex();
797 if (!Element::childAllowed(newChild))
1049 void dumpInnerHTML(WebCore::HTMLElement* element)
1051 printf("%s\n", element->innerHTML().ascii().data());