| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 void didMergeTextNodes(Text& oldNode, unsigned offset); | 675 void didMergeTextNodes(Text& oldNode, unsigned offset); |
| 676 void didSplitTextNode(Text& oldNode); | 676 void didSplitTextNode(Text& oldNode); |
| 677 | 677 |
| 678 void clearDOMWindow() { m_domWindow = 0; } | 678 void clearDOMWindow() { m_domWindow = 0; } |
| 679 DOMWindow* domWindow() const { return m_domWindow; } | 679 DOMWindow* domWindow() const { return m_domWindow; } |
| 680 | 680 |
| 681 // Helper functions for forwarding DOMWindow event related tasks to the DOMW
indow if it exists. | 681 // Helper functions for forwarding DOMWindow event related tasks to the DOMW
indow if it exists. |
| 682 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP
tr<EventListener>); | 682 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP
tr<EventListener>); |
| 683 EventListener* getWindowAttributeEventListener(const AtomicString& eventType
); | 683 EventListener* getWindowAttributeEventListener(const AtomicString& eventType
); |
| 684 | 684 |
| 685 PassRefPtr<Event> createEvent(const String& eventType, ExceptionState&); | 685 PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, Exception
State&); |
| 686 PassRefPtr<Event> createEvent(ExceptionState&); | 686 PassRefPtrWillBeRawPtr<Event> createEvent(ExceptionState&); |
| 687 | 687 |
| 688 // keep track of what types of event listeners are registered, so we don't | 688 // keep track of what types of event listeners are registered, so we don't |
| 689 // dispatch events unnecessarily | 689 // dispatch events unnecessarily |
| 690 enum ListenerType { | 690 enum ListenerType { |
| 691 DOMSUBTREEMODIFIED_LISTENER = 1, | 691 DOMSUBTREEMODIFIED_LISTENER = 1, |
| 692 DOMNODEINSERTED_LISTENER = 1 << 1, | 692 DOMNODEINSERTED_LISTENER = 1 << 1, |
| 693 DOMNODEREMOVED_LISTENER = 1 << 2, | 693 DOMNODEREMOVED_LISTENER = 1 << 2, |
| 694 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, | 694 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, |
| 695 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, | 695 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, |
| 696 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, | 696 DOMCHARACTERDATAMODIFIED_LISTENER = 1 << 5, |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 inline bool Node::isDocumentNode() const | 1407 inline bool Node::isDocumentNode() const |
| 1408 { | 1408 { |
| 1409 return this == document(); | 1409 return this == document(); |
| 1410 } | 1410 } |
| 1411 | 1411 |
| 1412 Node* eventTargetNodeForDocument(Document*); | 1412 Node* eventTargetNodeForDocument(Document*); |
| 1413 | 1413 |
| 1414 } // namespace WebCore | 1414 } // namespace WebCore |
| 1415 | 1415 |
| 1416 #endif // Document_h | 1416 #endif // Document_h |
| OLD | NEW |