Index: Source/core/html/HTMLCanvasElement.cpp |
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp |
index 01be50d87350ef0e9666495e42ae798620dc5e99..8b0d798af50c69d4d865d79bbb35a37064fa7925 100644 |
--- a/Source/core/html/HTMLCanvasElement.cpp |
+++ b/Source/core/html/HTMLCanvasElement.cpp |
@@ -73,7 +73,7 @@ static const int MaxSkiaDim = 32767; // Maximum width/height in CSS pixels. |
DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(CanvasObserver); |
-HTMLCanvasElement::HTMLCanvasElement(Document& document) |
+inline HTMLCanvasElement::HTMLCanvasElement(Document& document) |
: HTMLElement(canvasTag, document) |
, DocumentVisibilityObserver(document) |
, m_size(DefaultWidth, DefaultHeight) |
@@ -87,10 +87,7 @@ HTMLCanvasElement::HTMLCanvasElement(Document& document) |
ScriptWrappable::init(this); |
} |
-PassRefPtrWillBeRawPtr<HTMLCanvasElement> HTMLCanvasElement::create(Document& document) |
-{ |
- return adoptRefWillBeRefCountedGarbageCollected(new HTMLCanvasElement(document)); |
-} |
+DEFINE_NODE_FACTORY(HTMLCanvasElement) |
HTMLCanvasElement::~HTMLCanvasElement() |
{ |