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