diff options
Diffstat (limited to 'Source/WebCore/html/HTMLParagraphElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLParagraphElement.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/WebCore/html/HTMLParagraphElement.cpp b/Source/WebCore/html/HTMLParagraphElement.cpp index bc98710a1..2141b280a 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(Attribute* attr, StylePropertySet* style) +void HTMLParagraphElement::collectStyleForAttribute(const Attribute& attribute, StylePropertySet* style) { - if (attr->name() == alignAttr) { - if (equalIgnoringCase(attr->value(), "middle") || equalIgnoringCase(attr->value(), "center")) + if (attribute.name() == alignAttr) { + if (equalIgnoringCase(attribute.value(), "middle") || equalIgnoringCase(attribute.value(), "center")) addPropertyToAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitCenter); - else if (equalIgnoringCase(attr->value(), "left")) + else if (equalIgnoringCase(attribute.value(), "left")) addPropertyToAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitLeft); - else if (equalIgnoringCase(attr->value(), "right")) + else if (equalIgnoringCase(attribute.value(), "right")) addPropertyToAttributeStyle(style, CSSPropertyTextAlign, CSSValueWebkitRight); else - addPropertyToAttributeStyle(style, CSSPropertyTextAlign, attr->value()); + addPropertyToAttributeStyle(style, CSSPropertyTextAlign, attribute.value()); } else - HTMLElement::collectStyleForAttribute(attr, style); + HTMLElement::collectStyleForAttribute(attribute, style); } } |