Make sure you can use document.createElement to make a <canvas> element.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Nov 2004 07:58:56 +0000 (07:58 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Nov 2004 07:58:56 +0000 (07:58 +0000)
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::createHTMLElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8075 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/xml/dom_docimpl.cpp

index 3caef00..bf055fc 100644 (file)
@@ -1,3 +1,10 @@
+2004-11-22  David Hyatt  <hyatt@apple.com>
+
+       Make sure you can use document.createElement to make a <canvas> element.
+
+        * khtml/xml/dom_docimpl.cpp:
+        (DocumentImpl::createHTMLElement):
+
 2004-11-22  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Dave.
index 4b21d06..da94269 100644 (file)
@@ -63,6 +63,7 @@
 
 #include "html/html_baseimpl.h"
 #include "html/html_blockimpl.h"
+#include "html/html_canvasimpl.h"
 #include "html/html_documentimpl.h"
 #include "html/html_formimpl.h"
 #include "html/html_headimpl.h"
@@ -884,6 +885,9 @@ ElementImpl *DocumentImpl::createHTMLElement( const DOMString &name, int &except
     case ID_AREA:
         n = new HTMLAreaElementImpl(docPtr());
         break;
+    case ID_CANVAS:
+        n = new HTMLCanvasElementImpl(docPtr());
+        break;
 
 // objects, applets and scripts
     case ID_APPLET: