summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLTablePartElement.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/HTMLTablePartElement.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLTablePartElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLTablePartElement.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/Source/WebCore/html/HTMLTablePartElement.cpp b/Source/WebCore/html/HTMLTablePartElement.cpp
index e64071bac..007182c90 100644
--- a/Source/WebCore/html/HTMLTablePartElement.cpp
+++ b/Source/WebCore/html/HTMLTablePartElement.cpp
@@ -4,7 +4,7 @@
* (C) 1998 Waldo Bastian (bastian@kde.org)
* (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
- * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
+ * Copyright (C) 2003, 2004, 2005, 2006 Apple Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -25,7 +25,6 @@
#include "config.h"
#include "HTMLTablePartElement.h"
-#include "Attribute.h"
#include "CSSImageValue.h"
#include "CSSPropertyNames.h"
#include "CSSValueKeywords.h"
@@ -53,26 +52,26 @@ void HTMLTablePartElement::collectStyleForPresentationAttribute(const QualifiedN
else if (name == backgroundAttr) {
String url = stripLeadingAndTrailingHTMLSpaces(value);
if (!url.isEmpty())
- style.setProperty(CSSProperty(CSSPropertyBackgroundImage, CSSImageValue::create(document().completeURL(url).string())));
+ style.setProperty(CSSProperty(CSSPropertyBackgroundImage, CSSImageValue::create(document().completeURL(url))));
} else if (name == valignAttr) {
- if (equalIgnoringCase(value, "top"))
+ if (equalLettersIgnoringASCIICase(value, "top"))
addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, CSSValueTop);
- else if (equalIgnoringCase(value, "middle"))
+ else if (equalLettersIgnoringASCIICase(value, "middle"))
addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, CSSValueMiddle);
- else if (equalIgnoringCase(value, "bottom"))
+ else if (equalLettersIgnoringASCIICase(value, "bottom"))
addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, CSSValueBottom);
- else if (equalIgnoringCase(value, "baseline"))
+ else if (equalLettersIgnoringASCIICase(value, "baseline"))
addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, CSSValueBaseline);
else
addPropertyToPresentationAttributeStyle(style, CSSPropertyVerticalAlign, value);
} else 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, "absmiddle"))
+ else if (equalLettersIgnoringASCIICase(value, "absmiddle"))
addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, CSSValueCenter);
- 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);
@@ -86,9 +85,9 @@ void HTMLTablePartElement::collectStyleForPresentationAttribute(const QualifiedN
HTMLTableElement* HTMLTablePartElement::findParentTable() const
{
ContainerNode* parent = parentNode();
- while (parent && !isHTMLTableElement(parent))
+ while (parent && !is<HTMLTableElement>(*parent))
parent = parent->parentNode();
- return toHTMLTableElement(parent);
+ return downcast<HTMLTableElement>(parent);
}
}