summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLParagraphElement.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/HTMLParagraphElement.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLParagraphElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLParagraphElement.cpp15
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);