| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 InvalidateOnIdNameAttrChange, | 200 InvalidateOnIdNameAttrChange, |
| 201 InvalidateOnNameAttrChange, | 201 InvalidateOnNameAttrChange, |
| 202 InvalidateOnForAttrChange, | 202 InvalidateOnForAttrChange, |
| 203 InvalidateForFormControls, | 203 InvalidateForFormControls, |
| 204 InvalidateOnHRefAttrChange, | 204 InvalidateOnHRefAttrChange, |
| 205 InvalidateOnItemAttrChange, | 205 InvalidateOnItemAttrChange, |
| 206 InvalidateOnAnyAttrChange, | 206 InvalidateOnAnyAttrChange, |
| 207 }; | 207 }; |
| 208 const int numNodeListInvalidationTypes = InvalidateOnAnyAttrChange + 1; | 208 const int numNodeListInvalidationTypes = InvalidateOnAnyAttrChange + 1; |
| 209 | 209 |
| 210 typedef HashCountedSet<Node*> TouchEventTargetSet; | |
| 211 | |
| 212 class Document : public ContainerNode, public TreeScope, public ScriptExecutionC
ontext { | 210 class Document : public ContainerNode, public TreeScope, public ScriptExecutionC
ontext { |
| 213 public: | 211 public: |
| 214 static PassRefPtr<Document> create(Frame* frame, const KURL& url) | 212 static PassRefPtr<Document> create(Frame* frame, const KURL& url) |
| 215 { | 213 { |
| 216 return adoptRef(new Document(frame, url, false, false)); | 214 return adoptRef(new Document(frame, url, false, false)); |
| 217 } | 215 } |
| 218 static PassRefPtr<Document> createXHTML(Frame* frame, const KURL& url) | 216 static PassRefPtr<Document> createXHTML(Frame* frame, const KURL& url) |
| 219 { | 217 { |
| 220 return adoptRef(new Document(frame, url, true, false)); | 218 return adoptRef(new Document(frame, url, true, false)); |
| 221 } | 219 } |
| (...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 virtual EventTarget* errorEventTarget(); | 1111 virtual EventTarget* errorEventTarget(); |
| 1114 virtual void logExceptionToConsole(const String& errorMessage, const String&
sourceURL, int lineNumber, PassRefPtr<ScriptCallStack>); | 1112 virtual void logExceptionToConsole(const String& errorMessage, const String&
sourceURL, int lineNumber, PassRefPtr<ScriptCallStack>); |
| 1115 | 1113 |
| 1116 void initDNSPrefetch(); | 1114 void initDNSPrefetch(); |
| 1117 | 1115 |
| 1118 unsigned wheelEventHandlerCount() const { return m_wheelEventHandlerCount; } | 1116 unsigned wheelEventHandlerCount() const { return m_wheelEventHandlerCount; } |
| 1119 void didAddWheelEventHandler(); | 1117 void didAddWheelEventHandler(); |
| 1120 void didRemoveWheelEventHandler(); | 1118 void didRemoveWheelEventHandler(); |
| 1121 | 1119 |
| 1122 #if ENABLE(TOUCH_EVENTS) | 1120 #if ENABLE(TOUCH_EVENTS) |
| 1123 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_
touchEventTargets->size() : false; } | 1121 unsigned touchEventHandlerCount() const { return m_touchEventHandlerCount; } |
| 1124 #else | 1122 #else |
| 1125 bool hasTouchEventHandlers() const { return false; } | 1123 unsigned touchEventHandlerCount() const { return 0; } |
| 1126 #endif | 1124 #endif |
| 1127 | 1125 |
| 1128 void didAddTouchEventHandler(Node*); | 1126 void didAddTouchEventHandler(); |
| 1129 void didRemoveTouchEventHandler(Node*); | 1127 void didRemoveTouchEventHandler(); |
| 1130 | |
| 1131 #if ENABLE(TOUCH_EVENT_TRACKING) | |
| 1132 void didRemoveEventTargetNode(Node*); | |
| 1133 #endif | |
| 1134 | |
| 1135 #if ENABLE(TOUCH_EVENTS) | |
| 1136 const TouchEventTargetSet* touchEventTargets() const { return m_touchEventTa
rgets.get(); } | |
| 1137 #else | |
| 1138 const TouchEventTargetSet* touchEventTargets() const { return 0; } | |
| 1139 #endif | |
| 1140 | 1128 |
| 1141 bool visualUpdatesAllowed() const { return m_visualUpdatesAllowed; } | 1129 bool visualUpdatesAllowed() const { return m_visualUpdatesAllowed; } |
| 1142 | 1130 |
| 1143 #if ENABLE(MICRODATA) | 1131 #if ENABLE(MICRODATA) |
| 1144 PassRefPtr<NodeList> getItems(const String& typeNames); | 1132 PassRefPtr<NodeList> getItems(const String& typeNames); |
| 1145 #endif | 1133 #endif |
| 1146 | 1134 |
| 1147 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } | 1135 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } |
| 1148 | 1136 |
| 1149 void suspendScheduledTasks(ActiveDOMObject::ReasonForSuspension); | 1137 void suspendScheduledTasks(ActiveDOMObject::ReasonForSuspension); |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1508 bool m_directionSetOnDocumentElement; | 1496 bool m_directionSetOnDocumentElement; |
| 1509 bool m_writingModeSetOnDocumentElement; | 1497 bool m_writingModeSetOnDocumentElement; |
| 1510 | 1498 |
| 1511 DocumentTiming m_documentTiming; | 1499 DocumentTiming m_documentTiming; |
| 1512 RefPtr<MediaQueryMatcher> m_mediaQueryMatcher; | 1500 RefPtr<MediaQueryMatcher> m_mediaQueryMatcher; |
| 1513 bool m_writeRecursionIsTooDeep; | 1501 bool m_writeRecursionIsTooDeep; |
| 1514 unsigned m_writeRecursionDepth; | 1502 unsigned m_writeRecursionDepth; |
| 1515 | 1503 |
| 1516 unsigned m_wheelEventHandlerCount; | 1504 unsigned m_wheelEventHandlerCount; |
| 1517 #if ENABLE(TOUCH_EVENTS) | 1505 #if ENABLE(TOUCH_EVENTS) |
| 1518 OwnPtr<TouchEventTargetSet> m_touchEventTargets; | 1506 unsigned m_touchEventHandlerCount; |
| 1519 #endif | 1507 #endif |
| 1520 | 1508 |
| 1521 #if ENABLE(REQUEST_ANIMATION_FRAME) | 1509 #if ENABLE(REQUEST_ANIMATION_FRAME) |
| 1522 RefPtr<ScriptedAnimationController> m_scriptedAnimationController; | 1510 RefPtr<ScriptedAnimationController> m_scriptedAnimationController; |
| 1523 #endif | 1511 #endif |
| 1524 | 1512 |
| 1525 Timer<Document> m_pendingTasksTimer; | 1513 Timer<Document> m_pendingTasksTimer; |
| 1526 Vector<OwnPtr<Task> > m_pendingTasks; | 1514 Vector<OwnPtr<Task> > m_pendingTasks; |
| 1527 | 1515 |
| 1528 #if ENABLE(LINK_PRERENDER) | 1516 #if ENABLE(LINK_PRERENDER) |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1591 trackForDebugging(); | 1579 trackForDebugging(); |
| 1592 #endif | 1580 #endif |
| 1593 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); | 1581 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); |
| 1594 } | 1582 } |
| 1595 | 1583 |
| 1596 Node* eventTargetNodeForDocument(Document*); | 1584 Node* eventTargetNodeForDocument(Document*); |
| 1597 | 1585 |
| 1598 } // namespace WebCore | 1586 } // namespace WebCore |
| 1599 | 1587 |
| 1600 #endif // Document_h | 1588 #endif // Document_h |
| OLD | NEW |