diff options
Diffstat (limited to 'Source/WebCore/html/HTMLDivElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLDivElement.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/WebCore/html/HTMLDivElement.cpp b/Source/WebCore/html/HTMLDivElement.cpp index c3b16ac79..a9ac0bfc9 100644 --- a/Source/WebCore/html/HTMLDivElement.cpp +++ b/Source/WebCore/html/HTMLDivElement.cpp @@ -23,6 +23,7 @@ #include "config.h" #include "HTMLDivElement.h" +#include "Attribute.h" #include "CSSPropertyNames.h" #include "CSSValueKeywords.h" #include "HTMLNames.h" @@ -37,14 +38,14 @@ HTMLDivElement::HTMLDivElement(const QualifiedName& tagName, Document& document) ASSERT(hasTagName(divTag)); } -Ref<HTMLDivElement> HTMLDivElement::create(Document& document) +PassRefPtr<HTMLDivElement> HTMLDivElement::create(Document& document) { - return adoptRef(*new HTMLDivElement(divTag, document)); + return adoptRef(new HTMLDivElement(divTag, document)); } -Ref<HTMLDivElement> HTMLDivElement::create(const QualifiedName& tagName, Document& document) +PassRefPtr<HTMLDivElement> HTMLDivElement::create(const QualifiedName& tagName, Document& document) { - return adoptRef(*new HTMLDivElement(tagName, document)); + return adoptRef(new HTMLDivElement(tagName, document)); } bool HTMLDivElement::isPresentationAttribute(const QualifiedName& name) const @@ -57,11 +58,11 @@ bool HTMLDivElement::isPresentationAttribute(const QualifiedName& name) const void HTMLDivElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) { if (name == alignAttr) { - if (equalLettersIgnoringASCIICase(value, "middle") || equalLettersIgnoringASCIICase(value, "center")) + if (equalIgnoringCase(value, "middle") || equalIgnoringCase(value, "center")) addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitCenter); - else if (equalLettersIgnoringASCIICase(value, "left")) + else if (equalIgnoringCase(value, "left")) addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitLeft); - else if (equalLettersIgnoringASCIICase(value, "right")) + else if (equalIgnoringCase(value, "right")) addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitRight); else addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, value); |