From 470286ecfe79d59df14944e5b5d34630fc739391 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 22 Nov 2012 09:09:45 +0100 Subject: Imported WebKit commit e89504fa9195b2063b2530961d4b73dd08de3242 (http://svn.webkit.org/repository/webkit/trunk@135485) Change-Id: I03774e5ac79721c13ffa30d152537a74d0b12e66 Reviewed-by: Simon Hausmann --- Source/WebCore/html/HTMLParagraphElement.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Source/WebCore/html/HTMLParagraphElement.cpp') 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); } } -- cgit v1.2.1