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