diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-22 09:09:45 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-22 09:10:13 +0100 |
commit | 470286ecfe79d59df14944e5b5d34630fc739391 (patch) | |
tree | 43983212872e06cebefd2ae474418fa2908ca54c /Source/WebCore/html/HTMLParagraphElement.cpp | |
parent | 23037105e948c2065da5a937d3a2396b0ff45c1e (diff) | |
download | qtwebkit-470286ecfe79d59df14944e5b5d34630fc739391.tar.gz |
Imported WebKit commit e89504fa9195b2063b2530961d4b73dd08de3242 (http://svn.webkit.org/repository/webkit/trunk@135485)
Change-Id: I03774e5ac79721c13ffa30d152537a74d0b12e66
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'Source/WebCore/html/HTMLParagraphElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLParagraphElement.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/WebCore/html/HTMLParagraphElement.cpp b/Source/WebCore/html/HTMLParagraphElement.cpp index 2141b280a..6543d2753 100644 --- a/Source/WebCore/html/HTMLParagraphElement.cpp +++ b/Source/WebCore/html/HTMLParagraphElement.cpp @@ -56,19 +56,19 @@ bool HTMLParagraphElement::isPresentationAttribute(const QualifiedName& name) co return HTMLElement::isPresentationAttribute(name); } -void HTMLParagraphElement::collectStyleForAttribute(const Attribute& attribute, StylePropertySet* style) +void HTMLParagraphElement::collectStyleForPresentationAttribute(const Attribute& attribute, StylePropertySet* style) { if (attribute.name() == alignAttr) { if (equalIgnoringCase(attribute.value(), "middle") || equalIgnoringCase(attribute.value(), "center")) - addPropertyToAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitCenter); + addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitCenter); else if (equalIgnoringCase(attribute.value(), "left")) - addPropertyToAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitLeft); + addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitLeft); else if (equalIgnoringCase(attribute.value(), "right")) - addPropertyToAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitRight); + addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitRight); else - addPropertyToAttributeStyle(style, CSSPropertyTextAlign, attribute.value()); + addPropertyToPresentationAttributeStyle(style, CSSPropertyTextAlign, attribute.value()); } else - HTMLElement::collectStyleForAttribute(attribute, style); + HTMLElement::collectStyleForPresentationAttribute(attribute, style); } } |