summaryrefslogtreecommitdiffstats
path: root/WebCore/dom
diff options
context:
space:
mode:
authorFeng Qian <fqian@google.com>2009-04-24 16:01:03 -0700
committerFeng Qian <fqian@google.com>2009-04-24 16:01:03 -0700
commit109a58c31072b14f5b2c0493ed6c5a1855f82fd7 (patch)
tree134f7efdba4ea4d9b6dfb660bbcb47b4d54f9ad7 /WebCore/dom
parentac888b0a574d343996d06d2b084eaebab7846d81 (diff)
downloadexternal_webkit-109a58c31072b14f5b2c0493ed6c5a1855f82fd7.zip
external_webkit-109a58c31072b14f5b2c0493ed6c5a1855f82fd7.tar.gz
external_webkit-109a58c31072b14f5b2c0493ed6c5a1855f82fd7.tar.bz2
Make WebCore built with V8.
Picked up several new files from Chrome port.
Diffstat (limited to 'WebCore/dom')
-rw-r--r--WebCore/dom/Document.cpp5
-rw-r--r--WebCore/dom/EventListener.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/WebCore/dom/Document.cpp b/WebCore/dom/Document.cpp
index 2e2dd9a..e280c81 100644
--- a/WebCore/dom/Document.cpp
+++ b/WebCore/dom/Document.cpp
@@ -114,7 +114,9 @@
#include "XMLHttpRequest.h"
#include "XMLNames.h"
#include "XMLTokenizer.h"
+#if USE(JSC)
#include "JSDOMBinding.h"
+#endif
#include "ScriptController.h"
#include <wtf/CurrentTime.h>
#include <wtf/HashFunctions.h>
@@ -455,7 +457,10 @@ Document::~Document()
removeAllEventListeners();
+
+#if USE(JSC)
forgetAllDOMNodesForDocument(this);
+#endif
if (m_docChanged && changedDocuments)
changedDocuments->remove(this);
diff --git a/WebCore/dom/EventListener.h b/WebCore/dom/EventListener.h
index b7daa6d..1836fe6 100644
--- a/WebCore/dom/EventListener.h
+++ b/WebCore/dom/EventListener.h
@@ -48,8 +48,9 @@ namespace WebCore {
virtual bool virtualIsInline() const { return false; }
};
+#if USE(JSC)
inline void markIfNotNull(EventListener* listener) { if (listener) listener->mark(); }
-
+#endif
}
#endif