const AtomicString& SVGStyleElement::media() const { DEPRECATED_DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("all", AtomicString::ConstructFromLiteral)); const AtomicString& n = fastGetAttribute(SVGNames::mediaAttr); return n.isNull() ? defaultValue : n; }
String SVGStyleElement::title() const { return fastGetAttribute(SVGNames::titleAttr); }
bool SVGAnimationElement::isAdditive() { DEFINE_STATIC_LOCAL(const AtomicString, sum, ("sum", AtomicString::ConstructFromLiteral)); const AtomicString& value = fastGetAttribute(SVGNames::additiveAttr); return value == sum || animationMode() == ByAnimation; }
const AtomicString& SVGAltGlyphElement::glyphRef() const { return fastGetAttribute(SVGNames::glyphRefAttr); }
const AtomicString& SVGSVGElement::contentStyleType() const { DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/css", AtomicString::ConstructFromLiteral)); const AtomicString& n = fastGetAttribute(SVGNames::contentStyleTypeAttr); return n.isNull() ? defaultValue : n; }
String SVGElement::xmlbase() const { return fastGetAttribute(XMLNames::baseAttr); }
int HTMLTextAreaElement::maxLength() const { bool ok; int value = fastGetAttribute(maxlengthAttr).string().toInt(&ok); return ok && value >= 0 ? value : -1; }
int SVGFontFaceElement::xHeight() const { return static_cast<int>(ceilf(fastGetAttribute(x_heightAttr).toFloat())); }
const AtomicString& SVGElement::xmlspace() const { return fastGetAttribute(XMLNames::spaceAttr); }
const AtomicString& SVGStyleElement::media() const { const AtomicString& n = fastGetAttribute(SVGNames::mediaAttr); return n.isNull() ? MediaTypeNames::all : n; }
const AtomicString& SVGElement::xmllang() const { return fastGetAttribute(XMLNames::langAttr); }
const AtomicString& HTMLElement::dir() { return toValidDirValue(fastGetAttribute(dirAttr)); }
String HTMLElement::title() const { return fastGetAttribute(titleAttr); }
bool HTMLElement::hasDirectionAuto() const { const AtomicString& direction = fastGetAttribute(dirAttr); return (hasTagName(bdiTag) && direction == nullAtom) || equalIgnoringCase(direction, "auto"); }
const AtomicString& HTMLButtonElement::value() const { return fastGetAttribute(valueAttr); }
PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> SVGFontFaceNameElement::srcValue() const { return CSSFontFaceSrcValue::createLocal(fastGetAttribute(SVGNames::nameAttr)); }
void HTMLSourceElement::didMoveToNewDocument(Document& oldDocument) { createMediaQueryList(fastGetAttribute(mediaAttr)); HTMLElement::didMoveToNewDocument(oldDocument); }
const AtomicString& SVGSVGElement::contentScriptType() const { DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("text/ecmascript")); const AtomicString& n = fastGetAttribute(SVGNames::contentScriptTypeAttr); return n.isNull() ? defaultValue : n; }
Node::InsertionNotificationRequest HTMLButtonElement::insertedInto(ContainerNode* insertionPoint) { InsertionNotificationRequest request = HTMLFormControlElement::insertedInto(insertionPoint); logEventIfIsolatedWorldAndInDocument("blinkAddElement", "button", fastGetAttribute(typeAttr), fastGetAttribute(formmethodAttr), fastGetAttribute(formactionAttr)); return request; }
bool HTMLTextFormControlElement::isPlaceholderEmpty() const { const AtomicString& attributeValue = fastGetAttribute(placeholderAttr); return attributeValue.getString().find(isNotLineBreak) == kNotFound; }
const AtomicString& SVGSVGElement::contentScriptType() const { static NeverDestroyed<AtomicString> defaultScriptType { "text/ecmascript" }; const AtomicString& type = fastGetAttribute(SVGNames::contentScriptTypeAttr); return type.isNull() ? defaultScriptType.get() : type; }
String SVGAnimationElement::fromValue() const { return fastGetAttribute(SVGNames::fromAttr); }
SVGSMILElement::FillMode SVGSMILElement::fill() const { DEFINE_STATIC_LOCAL(const AtomicString, freeze, ("freeze")); const AtomicString& value = fastGetAttribute(SVGNames::fillAttr); return value == freeze ? FillFreeze : FillRemove; }
bool SVGAnimationElement::isAccumulated() const { DEFINE_STATIC_LOCAL(const AtomicString, sum, ("sum", AtomicString::ConstructFromLiteral)); const AtomicString& value = fastGetAttribute(SVGNames::accumulateAttr); return value == sum && animationMode() != ToAnimation; }
const AtomicString& SVGStyleElement::media() const { DEFINE_STATIC_LOCAL(const AtomicString, defaultValue, ("all")); const AtomicString& n = fastGetAttribute(SVGNames::mediaAttr); return n.isNull() ? defaultValue : n; }
const AtomicString& SVGAltGlyphElement::format() const { return fastGetAttribute(SVGNames::formatAttr); }
const AtomicString& HTMLFormControlElement::formControlName() const { const AtomicString& name = fastGetAttribute(nameAttr); return name.isNull() ? emptyAtom : name; }