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 3caef0015c65ef92fd79b5a0a70e0c07ea25fdb7..bf055fca1e9cc7d1a443cd8873f196c1087a8cb0 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 4b21d06e09153e8957e6c75c433f4d9978a0a190..da942693ec4dc195a644b3a4efdd7166d6a49a7d 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: