Index: Source/core/events/Event.h |
diff --git a/Source/core/events/Event.h b/Source/core/events/Event.h |
index 0797c6d93fe20beba30f345166354d8f8aedc4e7..69d3e5258aa1c97b622427e70f167e4990a5156a 100644 |
--- a/Source/core/events/Event.h |
+++ b/Source/core/events/Event.h |
@@ -35,6 +35,7 @@ namespace WebCore { |
class EventTarget; |
class EventDispatcher; |
+class ExecutionContext; |
class HTMLIFrameElement; |
struct EventInit { |
@@ -130,8 +131,8 @@ public: |
// IE Extensions |
EventTarget* srcElement() const { return target(); } // MSIE extension - "the object that fired the event" |
- bool legacyReturnValue() const { return !defaultPrevented(); } |
- void setLegacyReturnValue(bool returnValue) { setDefaultPrevented(!returnValue); } |
+ bool legacyReturnValue(ExecutionContext*) const; |
+ void setLegacyReturnValue(ExecutionContext*, bool returnValue); |
virtual const AtomicString& interfaceName() const; |
bool hasInterface(const AtomicString&) const; |