diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2009-06-15 09:06:43 (GMT) |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2009-06-15 09:31:31 (GMT) |
commit | c411f16870f112c3407c28c22b617f613a82cff4 (patch) | |
tree | 29a1bcd590c8b31af2aab445bfe8a978dc5bf582 /src/3rdparty/webkit/WebCore/dom/EventListener.h | |
parent | 3d77b56b32a0c53ec0bbfaa07236fedb900ff336 (diff) | |
download | Qt-c411f16870f112c3407c28c22b617f613a82cff4.zip Qt-c411f16870f112c3407c28c22b617f613a82cff4.tar.gz Qt-c411f16870f112c3407c28c22b617f613a82cff4.tar.bz2 |
Updated WebKit from /home/shausman/src/webkit/trunk to qtwebkit-4.6-snapshot-15062009 ( 65232bf00dc494ebfd978f998c88f58d18ecce1e )
Diffstat (limited to 'src/3rdparty/webkit/WebCore/dom/EventListener.h')
-rw-r--r-- | src/3rdparty/webkit/WebCore/dom/EventListener.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/3rdparty/webkit/WebCore/dom/EventListener.h b/src/3rdparty/webkit/WebCore/dom/EventListener.h index 24fce86..dbc41b2 100644 --- a/src/3rdparty/webkit/WebCore/dom/EventListener.h +++ b/src/3rdparty/webkit/WebCore/dom/EventListener.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -23,6 +23,10 @@ #include <wtf/RefCounted.h> +namespace JSC { + class JSObject; +} + namespace WebCore { class Event; @@ -31,10 +35,23 @@ namespace WebCore { public: virtual ~EventListener() { } virtual void handleEvent(Event*, bool isWindowEvent = false) = 0; - virtual bool isInline() const { return false; } virtual bool wasCreatedFromMarkup() const { return false; } + +#if USE(JSC) + virtual JSC::JSObject* jsFunction() const { return 0; } + virtual void markJSFunction() { } +#endif + + bool isAttribute() const { return virtualisAttribute(); } + + private: + virtual bool virtualisAttribute() const { return false; } }; +#if USE(JSC) + inline void markIfNotNull(EventListener* listener) { if (listener) listener->markJSFunction(); } +#endif + } #endif |