summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLDivElement.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/HTMLDivElement.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLDivElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLDivElement.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/WebCore/html/HTMLDivElement.cpp b/Source/WebCore/html/HTMLDivElement.cpp
index a9ac0bfc9..c3b16ac79 100644
--- a/Source/WebCore/html/HTMLDivElement.cpp
+++ b/Source/WebCore/html/HTMLDivElement.cpp
@@ -23,7 +23,6 @@
#include "config.h"
#include "HTMLDivElement.h"
-#include "Attribute.h"
#include "CSSPropertyNames.h"
#include "CSSValueKeywords.h"
#include "HTMLNames.h"
@@ -38,14 +37,14 @@ HTMLDivElement::HTMLDivElement(const QualifiedName& tagName, Document& document)
ASSERT(hasTagName(divTag));
}
-PassRefPtr<HTMLDivElement> HTMLDivElement::create(Document& document)
+Ref<HTMLDivElement> HTMLDivElement::create(Document& document)
{
- return adoptRef(new HTMLDivElement(divTag, document));
+ return adoptRef(*new HTMLDivElement(divTag, document));
}
-PassRefPtr<HTMLDivElement> HTMLDivElement::create(const QualifiedName& tagName, Document& document)
+Ref<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
@@ -58,11 +57,11 @@ bool HTMLDivElement::isPresentationAttribute(const QualifiedName& name) const
void HTMLDivElement::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);