diff options
Diffstat (limited to 'Source/WebCore/html/HTMLTableColElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLTableColElement.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/WebCore/html/HTMLTableColElement.cpp b/Source/WebCore/html/HTMLTableColElement.cpp index 1f4a2ff6e..d769b0424 100644 --- a/Source/WebCore/html/HTMLTableColElement.cpp +++ b/Source/WebCore/html/HTMLTableColElement.cpp @@ -54,22 +54,22 @@ bool HTMLTableColElement::isPresentationAttribute(const QualifiedName& name) con return HTMLTablePartElement::isPresentationAttribute(name); } -void HTMLTableColElement::collectStyleForAttribute(Attribute* attr, StylePropertySet* style) +void HTMLTableColElement::collectStyleForAttribute(const Attribute& attribute, StylePropertySet* style) { - if (attr->name() == widthAttr) - addHTMLLengthToStyle(style, CSSPropertyWidth, attr->value()); + if (attribute.name() == widthAttr) + addHTMLLengthToStyle(style, CSSPropertyWidth, attribute.value()); else - HTMLTablePartElement::collectStyleForAttribute(attr, style); + HTMLTablePartElement::collectStyleForAttribute(attribute, style); } -void HTMLTableColElement::parseAttribute(Attribute* attr) +void HTMLTableColElement::parseAttribute(const Attribute& attribute) { - if (attr->name() == spanAttr) { - m_span = !attr->isNull() ? attr->value().toInt() : 1; + if (attribute.name() == spanAttr) { + m_span = !attribute.isNull() ? attribute.value().toInt() : 1; if (renderer() && renderer()->isTableCol()) renderer()->updateFromElement(); - } else if (attr->name() == widthAttr) { - if (!attr->value().isEmpty()) { + } else if (attribute.name() == widthAttr) { + if (!attribute.isEmpty()) { if (renderer() && renderer()->isTableCol()) { RenderTableCol* col = toRenderTableCol(renderer()); int newWidth = width().toInt(); @@ -78,7 +78,7 @@ void HTMLTableColElement::parseAttribute(Attribute* attr) } } } else - HTMLTablePartElement::parseAttribute(attr); + HTMLTablePartElement::parseAttribute(attribute); } StylePropertySet* HTMLTableColElement::additionalAttributeStyle() |