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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 bool isContextThread() const final; | 1072 bool isContextThread() const final; |
1073 bool isJSExecutionForbidden() const final { return false; } | 1073 bool isJSExecutionForbidden() const final { return false; } |
1074 | 1074 |
1075 bool containsValidityStyleRules() const { | 1075 bool containsValidityStyleRules() const { |
1076 return m_containsValidityStyleRules; | 1076 return m_containsValidityStyleRules; |
1077 } | 1077 } |
1078 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true; } | 1078 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true; } |
1079 | 1079 |
1080 void enqueueResizeEvent(); | 1080 void enqueueResizeEvent(); |
1081 void enqueueScrollEventForNode(Node*); | 1081 void enqueueScrollEventForNode(Node*); |
| 1082 void enqueueAnimationFrameTask(std::unique_ptr<WTF::Closure>); |
1082 void enqueueAnimationFrameEvent(Event*); | 1083 void enqueueAnimationFrameEvent(Event*); |
1083 // Only one event for a target/event type combination will be dispatched per | 1084 // Only one event for a target/event type combination will be dispatched per |
1084 // frame. | 1085 // frame. |
1085 void enqueueUniqueAnimationFrameEvent(Event*); | 1086 void enqueueUniqueAnimationFrameEvent(Event*); |
1086 void enqueueMediaQueryChangeListeners( | 1087 void enqueueMediaQueryChangeListeners( |
1087 HeapVector<Member<MediaQueryListListener>>&); | 1088 HeapVector<Member<MediaQueryListListener>>&); |
1088 void enqueueVisualViewportScrollEvent(); | 1089 void enqueueVisualViewportScrollEvent(); |
1089 void enqueueVisualViewportResizeEvent(); | 1090 void enqueueVisualViewportResizeEvent(); |
1090 | 1091 |
1091 void dispatchEventsForPrinting(); | 1092 void dispatchEventsForPrinting(); |
1092 | 1093 |
1093 bool hasFullscreenSupplement() const { return m_hasFullscreenSupplement; } | |
1094 void setHasFullscreenSupplement() { m_hasFullscreenSupplement = true; } | |
1095 | |
1096 void exitPointerLock(); | 1094 void exitPointerLock(); |
1097 Element* pointerLockElement() const; | 1095 Element* pointerLockElement() const; |
1098 | 1096 |
1099 // Used to allow element that loads data without going through a FrameLoader | 1097 // Used to allow element that loads data without going through a FrameLoader |
1100 // to delay the 'load' event. | 1098 // to delay the 'load' event. |
1101 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } | 1099 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } |
1102 void decrementLoadEventDelayCount(); | 1100 void decrementLoadEventDelayCount(); |
1103 void checkLoadEventSoon(); | 1101 void checkLoadEventSoon(); |
1104 bool isDelayingLoadEvent(); | 1102 bool isDelayingLoadEvent(); |
1105 void loadPluginsSoon(); | 1103 void loadPluginsSoon(); |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1585 | 1583 |
1586 bool m_isViewSource; | 1584 bool m_isViewSource; |
1587 bool m_sawElementsInKnownNamespaces; | 1585 bool m_sawElementsInKnownNamespaces; |
1588 bool m_isSrcdocDocument; | 1586 bool m_isSrcdocDocument; |
1589 bool m_isMobileDocument; | 1587 bool m_isMobileDocument; |
1590 | 1588 |
1591 LayoutView* m_layoutView; | 1589 LayoutView* m_layoutView; |
1592 | 1590 |
1593 WeakMember<Document> m_contextDocument; | 1591 WeakMember<Document> m_contextDocument; |
1594 | 1592 |
1595 // For early return in Fullscreen::fromIfExists() | 1593 // The last element in |m_topLayerElements| is topmost in the top layer |
1596 bool m_hasFullscreenSupplement; | 1594 // stack and is thus the one that will be visually on top. |
1597 | |
1598 HeapVector<Member<Element>> m_topLayerElements; | 1595 HeapVector<Member<Element>> m_topLayerElements; |
1599 | 1596 |
1600 int m_loadEventDelayCount; | 1597 int m_loadEventDelayCount; |
1601 TaskRunnerTimer<Document> m_loadEventDelayTimer; | 1598 TaskRunnerTimer<Document> m_loadEventDelayTimer; |
1602 TaskRunnerTimer<Document> m_pluginLoadingTimer; | 1599 TaskRunnerTimer<Document> m_pluginLoadingTimer; |
1603 | 1600 |
1604 ViewportDescription m_viewportDescription; | 1601 ViewportDescription m_viewportDescription; |
1605 ViewportDescription m_legacyViewportDescription; | 1602 ViewportDescription m_legacyViewportDescription; |
1606 Length m_viewportDefaultMinWidth; | 1603 Length m_viewportDefaultMinWidth; |
1607 | 1604 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1712 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1709 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1713 | 1710 |
1714 } // namespace blink | 1711 } // namespace blink |
1715 | 1712 |
1716 #ifndef NDEBUG | 1713 #ifndef NDEBUG |
1717 // Outside the WebCore namespace for ease of invocation from gdb. | 1714 // Outside the WebCore namespace for ease of invocation from gdb. |
1718 CORE_EXPORT void showLiveDocumentInstances(); | 1715 CORE_EXPORT void showLiveDocumentInstances(); |
1719 #endif | 1716 #endif |
1720 | 1717 |
1721 #endif // Document_h | 1718 #endif // Document_h |
OLD | NEW |