summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/HTMLCanvasElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/DOM/HTMLCanvasElement.cpp')
-rw-r--r--Libraries/LibWeb/DOM/HTMLCanvasElement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/DOM/HTMLCanvasElement.cpp b/Libraries/LibWeb/DOM/HTMLCanvasElement.cpp
index b2fd8b4389..3a39d06487 100644
--- a/Libraries/LibWeb/DOM/HTMLCanvasElement.cpp
+++ b/Libraries/LibWeb/DOM/HTMLCanvasElement.cpp
@@ -48,7 +48,7 @@ HTMLCanvasElement::~HTMLCanvasElement()
int HTMLCanvasElement::requested_width() const
{
bool ok = false;
- unsigned width = attribute("width").to_int(ok);
+ unsigned width = attribute(HTML::AttributeNames::width).to_int(ok);
if (ok)
return width;
@@ -58,7 +58,7 @@ int HTMLCanvasElement::requested_width() const
int HTMLCanvasElement::requested_height() const
{
bool ok = false;
- unsigned height = attribute("height").to_int(ok);
+ unsigned height = attribute(HTML::AttributeNames::height).to_int(ok);
if (ok)
return height;