summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLDivElement.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/html/HTMLDivElement.cpp
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/html/HTMLDivElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLDivElement.cpp15
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);