Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Unified Diff: Source/core/html/HTMLCanvasElement.cpp

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLCanvasElement.cpp
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
index 5fa11eaae2d688a7c22849b5c819f592ad6349c3..69615b49b821f67f1332bd36338b0e18b5679c94 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -65,8 +65,8 @@ static const int MaxCanvasArea = 32768 * 8192; // Maximum canvas area in CSS pix
//In Skia, we will also limit width/height to 32767.
static const int MaxSkiaDim = 32767; // Maximum width/height in CSS pixels.
-HTMLCanvasElement::HTMLCanvasElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+HTMLCanvasElement::HTMLCanvasElement(Document& document)
+ : HTMLElement(canvasTag, document)
, m_size(DefaultWidth, DefaultHeight)
, m_rendererIsCanvas(false)
, m_ignoreReset(false)
@@ -77,18 +77,12 @@ HTMLCanvasElement::HTMLCanvasElement(const QualifiedName& tagName, Document& doc
, m_hasCreatedImageBuffer(false)
, m_didClearImageBuffer(false)
{
- ASSERT(hasTagName(canvasTag));
ScriptWrappable::init(this);
}
PassRefPtr<HTMLCanvasElement> HTMLCanvasElement::create(Document& document)
{
- return adoptRef(new HTMLCanvasElement(canvasTag, document));
-}
-
-PassRefPtr<HTMLCanvasElement> HTMLCanvasElement::create(const QualifiedName& tagName, Document& document)
-{
- return adoptRef(new HTMLCanvasElement(tagName, document));
+ return adoptRef(new HTMLCanvasElement(document));
}
HTMLCanvasElement::~HTMLCanvasElement()

Powered by Google App Engine
This is Rietveld 408576698