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 didMergeTextNodes(Text& oldNode, unsigned offset); | 684 void didMergeTextNodes(Text& oldNode, unsigned offset); |
685 void didSplitTextNode(Text& oldNode); | 685 void didSplitTextNode(Text& oldNode); |
686 | 686 |
687 void clearDOMWindow() { m_domWindow = nullptr; } | 687 void clearDOMWindow() { m_domWindow = nullptr; } |
688 DOMWindow* domWindow() const { return m_domWindow; } | 688 DOMWindow* domWindow() const { return m_domWindow; } |
689 | 689 |
690 // Helper functions for forwarding DOMWindow event related tasks to the DOMW
indow if it exists. | 690 // Helper functions for forwarding DOMWindow event related tasks to the DOMW
indow if it exists. |
691 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP
tr<EventListener>); | 691 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP
tr<EventListener>); |
692 EventListener* getWindowAttributeEventListener(const AtomicString& eventType
); | 692 EventListener* getWindowAttributeEventListener(const AtomicString& eventType
); |
693 | 693 |
694 static void registerEventFactory(EventFactoryBase*); | 694 static void registerEventFactory(PassOwnPtr<EventFactoryBase>); |
695 static PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, Ex
ceptionState&); | 695 static PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, Ex
ceptionState&); |
696 | 696 |
697 // keep track of what types of event listeners are registered, so we don't | 697 // keep track of what types of event listeners are registered, so we don't |
698 // dispatch events unnecessarily | 698 // dispatch events unnecessarily |
699 enum ListenerType { | 699 enum ListenerType { |
700 DOMSUBTREEMODIFIED_LISTENER = 1, | 700 DOMSUBTREEMODIFIED_LISTENER = 1, |
701 DOMNODEINSERTED_LISTENER = 1 << 1, | 701 DOMNODEINSERTED_LISTENER = 1 << 1, |
702 DOMNODEREMOVED_LISTENER = 1 << 2, | 702 DOMNODEREMOVED_LISTENER = 1 << 2, |
703 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, | 703 DOMNODEREMOVEDFROMDOCUMENT_LISTENER = 1 << 3, |
704 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, | 704 DOMNODEINSERTEDINTODOCUMENT_LISTENER = 1 << 4, |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1180 void processHttpEquivXFrameOptions(const AtomicString& content); | 1180 void processHttpEquivXFrameOptions(const AtomicString& content); |
1181 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const
AtomicString& content); | 1181 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const
AtomicString& content); |
1182 | 1182 |
1183 void didRemoveTouchEventHandler(Node*, bool clearAll); | 1183 void didRemoveTouchEventHandler(Node*, bool clearAll); |
1184 | 1184 |
1185 bool haveStylesheetsLoaded() const; | 1185 bool haveStylesheetsLoaded() const; |
1186 | 1186 |
1187 void setHoverNode(PassRefPtrWillBeRawPtr<Node>); | 1187 void setHoverNode(PassRefPtrWillBeRawPtr<Node>); |
1188 Node* hoverNode() const { return m_hoverNode.get(); } | 1188 Node* hoverNode() const { return m_hoverNode.get(); } |
1189 | 1189 |
1190 typedef HashSet<EventFactoryBase*> EventFactorySet; | 1190 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet; |
1191 static EventFactorySet& eventFactories(); | 1191 static EventFactorySet& eventFactories(); |
1192 | 1192 |
1193 DocumentLifecycle m_lifecycle; | 1193 DocumentLifecycle m_lifecycle; |
1194 | 1194 |
1195 bool m_hasNodesWithPlaceholderStyle; | 1195 bool m_hasNodesWithPlaceholderStyle; |
1196 bool m_evaluateMediaQueriesOnStyleRecalc; | 1196 bool m_evaluateMediaQueriesOnStyleRecalc; |
1197 | 1197 |
1198 // If we do ignore the pending stylesheet count, then we need to add a boole
an | 1198 // If we do ignore the pending stylesheet count, then we need to add a boole
an |
1199 // to track that this happened so that we can do a full repaint when the sty
lesheets | 1199 // to track that this happened so that we can do a full repaint when the sty
lesheets |
1200 // do eventually load. | 1200 // do eventually load. |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 inline bool Node::isDocumentNode() const | 1457 inline bool Node::isDocumentNode() const |
1458 { | 1458 { |
1459 return this == document(); | 1459 return this == document(); |
1460 } | 1460 } |
1461 | 1461 |
1462 Node* eventTargetNodeForDocument(Document*); | 1462 Node* eventTargetNodeForDocument(Document*); |
1463 | 1463 |
1464 } // namespace WebCore | 1464 } // namespace WebCore |
1465 | 1465 |
1466 #endif // Document_h | 1466 #endif // Document_h |
OLD | NEW |