diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
commit | 8d473cf9743f1d30a16a27114e93bd5af5648d23 (patch) | |
tree | cdca40d0353886b3ca52f33a2d7b8f1c0011aafc /Source/WebCore/html/HTMLTableColElement.cpp | |
parent | 1b914638db989aaa98631a1c1e02c7b2d44805d8 (diff) | |
download | qtwebkit-8d473cf9743f1d30a16a27114e93bd5af5648d23.tar.gz |
Imported WebKit commit 1350e72f7345ced9da2bd9980deeeb5a8d62fab4 (http://svn.webkit.org/repository/webkit/trunk@117578)
Weekly snapshot
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() |