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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 void nodeWillBeRemoved(Node*); | 684 void nodeWillBeRemoved(Node*); |
685 bool canReplaceChild(Node* newChild, Node* oldChild); | 685 bool canReplaceChild(Node* newChild, Node* oldChild); |
686 | 686 |
687 void didInsertText(Node*, unsigned offset, unsigned length); | 687 void didInsertText(Node*, unsigned offset, unsigned length); |
688 void didRemoveText(Node*, unsigned offset, unsigned length); | 688 void didRemoveText(Node*, unsigned offset, unsigned length); |
689 void didMergeTextNodes(Text* oldNode, unsigned offset); | 689 void didMergeTextNodes(Text* oldNode, unsigned offset); |
690 void didSplitTextNode(Text* oldNode); | 690 void didSplitTextNode(Text* oldNode); |
691 | 691 |
692 void setDOMWindow(DOMWindow* domWindow) { m_domWindow = domWindow; } | 692 void setDOMWindow(DOMWindow* domWindow) { m_domWindow = domWindow; } |
693 DOMWindow* domWindow() const { return m_domWindow; } | 693 DOMWindow* domWindow() const { return m_domWindow; } |
694 // In DOM Level 2, the Document's DOMWindow is called the defaultView. | |
695 DOMWindow* defaultView() const { return domWindow(); } | |
696 | 694 |
697 // Helper functions for forwarding DOMWindow event related tasks to the DOMW
indow if it exists. | 695 // Helper functions for forwarding DOMWindow event related tasks to the DOMW
indow if it exists. |
698 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP
tr<EventListener>, DOMWrapperWorld* isolatedWorld = 0); | 696 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP
tr<EventListener>, DOMWrapperWorld* isolatedWorld = 0); |
699 EventListener* getWindowAttributeEventListener(const AtomicString& eventType
, DOMWrapperWorld* isolatedWorld); | 697 EventListener* getWindowAttributeEventListener(const AtomicString& eventType
, DOMWrapperWorld* isolatedWorld); |
700 void dispatchWindowEvent(PassRefPtr<Event>, PassRefPtr<EventTarget> = 0); | 698 void dispatchWindowEvent(PassRefPtr<Event>, PassRefPtr<EventTarget> = 0); |
701 | 699 |
702 PassRefPtr<Event> createEvent(const String& eventType, ExceptionState&); | 700 PassRefPtr<Event> createEvent(const String& eventType, ExceptionState&); |
703 | 701 |
704 // keep track of what types of event listeners are registered, so we don't | 702 // keep track of what types of event listeners are registered, so we don't |
705 // dispatch events unnecessarily | 703 // dispatch events unnecessarily |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 inline bool Node::isDocumentNode() const | 1408 inline bool Node::isDocumentNode() const |
1411 { | 1409 { |
1412 return this == documentInternal(); | 1410 return this == documentInternal(); |
1413 } | 1411 } |
1414 | 1412 |
1415 Node* eventTargetNodeForDocument(Document*); | 1413 Node* eventTargetNodeForDocument(Document*); |
1416 | 1414 |
1417 } // namespace WebCore | 1415 } // namespace WebCore |
1418 | 1416 |
1419 #endif // Document_h | 1417 #endif // Document_h |
OLD | NEW |