From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/HTMLParagraphElement.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'Source/WebCore/html/HTMLParagraphElement.cpp') 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::create(Document& document) +Ref HTMLParagraphElement::create(Document& document) { - return adoptRef(new HTMLParagraphElement(pTag, document)); + return adoptRef(*new HTMLParagraphElement(pTag, document)); } -PassRefPtr HTMLParagraphElement::create(const QualifiedName& tagName, Document& document) +Ref 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); -- cgit v1.2.1