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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 bool hasFullscreenElementStack() const { return m_hasFullscreenElementStack;
} | 920 bool hasFullscreenElementStack() const { return m_hasFullscreenElementStack;
} |
921 void setHasFullscreenElementStack() { m_hasFullscreenElementStack = true; } | 921 void setHasFullscreenElementStack() { m_hasFullscreenElementStack = true; } |
922 | 922 |
923 void webkitExitPointerLock(); | 923 void webkitExitPointerLock(); |
924 Element* webkitPointerLockElement() const; | 924 Element* webkitPointerLockElement() const; |
925 | 925 |
926 // Used to allow element that loads data without going through a FrameLoader
to delay the 'load' event. | 926 // Used to allow element that loads data without going through a FrameLoader
to delay the 'load' event. |
927 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } | 927 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } |
928 void decrementLoadEventDelayCount(); | 928 void decrementLoadEventDelayCount(); |
929 bool isDelayingLoadEvent() const { return m_loadEventDelayCount; } | 929 bool isDelayingLoadEvent() const { return m_loadEventDelayCount; } |
| 930 void loadPluginsSoon(); |
930 | 931 |
931 PassRefPtr<Touch> createTouch(DOMWindow*, EventTarget*, int identifier, int
pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rota
tionAngle, float force) const; | 932 PassRefPtr<Touch> createTouch(DOMWindow*, EventTarget*, int identifier, int
pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rota
tionAngle, float force) const; |
932 PassRefPtr<TouchList> createTouchList(Vector<RefPtr<Touch> >&) const; | 933 PassRefPtr<TouchList> createTouchList(Vector<RefPtr<Touch> >&) const; |
933 | 934 |
934 const DocumentTiming* timing() const { return &m_documentTiming; } | 935 const DocumentTiming* timing() const { return &m_documentTiming; } |
935 | 936 |
936 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>); | 937 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>); |
937 void cancelAnimationFrame(int id); | 938 void cancelAnimationFrame(int id); |
938 void serviceScriptedAnimations(double monotonicAnimationStartTime); | 939 void serviceScriptedAnimations(double monotonicAnimationStartTime); |
939 | 940 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 | 1104 |
1104 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL
ifecycle::StyleRecalcPending; } | 1105 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL
ifecycle::StyleRecalcPending; } |
1105 | 1106 |
1106 void executeScriptsWaitingForResourcesIfNeeded(); | 1107 void executeScriptsWaitingForResourcesIfNeeded(); |
1107 | 1108 |
1108 void recalcStyleForLayoutIgnoringPendingStylesheets(); | 1109 void recalcStyleForLayoutIgnoringPendingStylesheets(); |
1109 | 1110 |
1110 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult&
) const; | 1111 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult&
) const; |
1111 | 1112 |
1112 void loadEventDelayTimerFired(Timer<Document>*); | 1113 void loadEventDelayTimerFired(Timer<Document>*); |
| 1114 void pluginLoadingTimerFired(Timer<Document>*); |
1113 | 1115 |
1114 PageVisibilityState pageVisibilityState() const; | 1116 PageVisibilityState pageVisibilityState() const; |
1115 | 1117 |
1116 PassRefPtr<HTMLCollection> ensureCachedCollection(CollectionType); | 1118 PassRefPtr<HTMLCollection> ensureCachedCollection(CollectionType); |
1117 | 1119 |
1118 // Note that dispatching a window load event may cause the DOMWindow to be d
etached from | 1120 // Note that dispatching a window load event may cause the DOMWindow to be d
etached from |
1119 // the Frame, so callers should take a reference to the DOMWindow (which own
s us) to | 1121 // the Frame, so callers should take a reference to the DOMWindow (which own
s us) to |
1120 // prevent the Document from getting blown away from underneath them. | 1122 // prevent the Document from getting blown away from underneath them. |
1121 void dispatchWindowLoadEvent(); | 1123 void dispatchWindowLoadEvent(); |
1122 | 1124 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 | 1282 |
1281 WeakPtrFactory<Document> m_weakFactory; | 1283 WeakPtrFactory<Document> m_weakFactory; |
1282 WeakPtr<Document> m_contextDocument; | 1284 WeakPtr<Document> m_contextDocument; |
1283 | 1285 |
1284 bool m_hasFullscreenElementStack; // For early return in FullscreenElementSt
ack::fromIfExists() | 1286 bool m_hasFullscreenElementStack; // For early return in FullscreenElementSt
ack::fromIfExists() |
1285 | 1287 |
1286 Vector<RefPtr<Element> > m_topLayerElements; | 1288 Vector<RefPtr<Element> > m_topLayerElements; |
1287 | 1289 |
1288 int m_loadEventDelayCount; | 1290 int m_loadEventDelayCount; |
1289 Timer<Document> m_loadEventDelayTimer; | 1291 Timer<Document> m_loadEventDelayTimer; |
| 1292 Timer<Document> m_pluginLoadingTimer; |
1290 | 1293 |
1291 ViewportDescription m_viewportDescription; | 1294 ViewportDescription m_viewportDescription; |
1292 ViewportDescription m_legacyViewportDescription; | 1295 ViewportDescription m_legacyViewportDescription; |
1293 | 1296 |
1294 bool m_didSetReferrerPolicy; | 1297 bool m_didSetReferrerPolicy; |
1295 ReferrerPolicy m_referrerPolicy; | 1298 ReferrerPolicy m_referrerPolicy; |
1296 | 1299 |
1297 bool m_directionSetOnDocumentElement; | 1300 bool m_directionSetOnDocumentElement; |
1298 bool m_writingModeSetOnDocumentElement; | 1301 bool m_writingModeSetOnDocumentElement; |
1299 DocumentTiming m_documentTiming; | 1302 DocumentTiming m_documentTiming; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1386 inline bool Node::isDocumentNode() const | 1389 inline bool Node::isDocumentNode() const |
1387 { | 1390 { |
1388 return this == document(); | 1391 return this == document(); |
1389 } | 1392 } |
1390 | 1393 |
1391 Node* eventTargetNodeForDocument(Document*); | 1394 Node* eventTargetNodeForDocument(Document*); |
1392 | 1395 |
1393 } // namespace WebCore | 1396 } // namespace WebCore |
1394 | 1397 |
1395 #endif // Document_h | 1398 #endif // Document_h |
OLD | NEW |