diff options
Diffstat (limited to 'Source/WebCore/html/HTMLCanvasElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLCanvasElement.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/WebCore/html/HTMLCanvasElement.cpp b/Source/WebCore/html/HTMLCanvasElement.cpp index e8bf41fd2..8db3df2f3 100644 --- a/Source/WebCore/html/HTMLCanvasElement.cpp +++ b/Source/WebCore/html/HTMLCanvasElement.cpp @@ -116,12 +116,11 @@ HTMLCanvasElement::~HTMLCanvasElement() m_context.clear(); // Ensure this goes away before the ImageBuffer. } -void HTMLCanvasElement::parseAttribute(Attribute* attr) +void HTMLCanvasElement::parseAttribute(const Attribute& attribute) { - const QualifiedName& attrName = attr->name(); - if (attrName == widthAttr || attrName == heightAttr) + if (attribute.name() == widthAttr || attribute.name() == heightAttr) reset(); - HTMLElement::parseAttribute(attr); + HTMLElement::parseAttribute(attribute); } RenderObject* HTMLCanvasElement::createRenderer(RenderArena* arena, RenderStyle* style) |