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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 class StyleResolver; | 142 class StyleResolver; |
143 class StyleSheet; | 143 class StyleSheet; |
144 class StyleSheetList; | 144 class StyleSheetList; |
145 class Text; | 145 class Text; |
146 class TextAutosizer; | 146 class TextAutosizer; |
147 class Touch; | 147 class Touch; |
148 class TouchList; | 148 class TouchList; |
149 class TransformSource; | 149 class TransformSource; |
150 class TreeWalker; | 150 class TreeWalker; |
151 class VisitedLinkState; | 151 class VisitedLinkState; |
| 152 class ViewportChangeNotifier; |
152 class WebGLRenderingContext; | 153 class WebGLRenderingContext; |
153 | 154 |
154 struct AnnotatedRegionValue; | 155 struct AnnotatedRegionValue; |
155 struct IconURL; | 156 struct IconURL; |
156 | 157 |
157 typedef EventWithHitTestResults<PlatformMouseEvent> MouseEventWithHitTestResults
; | 158 typedef EventWithHitTestResults<PlatformMouseEvent> MouseEventWithHitTestResults
; |
158 typedef int ExceptionCode; | 159 typedef int ExceptionCode; |
159 | 160 |
160 enum StyleResolverUpdateMode { | 161 enum StyleResolverUpdateMode { |
161 // Discards the StyleResolver and rebuilds it. | 162 // Discards the StyleResolver and rebuilds it. |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 void registerVisibilityObserver(DocumentVisibilityObserver*); | 1027 void registerVisibilityObserver(DocumentVisibilityObserver*); |
1027 void unregisterVisibilityObserver(DocumentVisibilityObserver*); | 1028 void unregisterVisibilityObserver(DocumentVisibilityObserver*); |
1028 | 1029 |
1029 void updateStyleInvalidationIfNeeded(); | 1030 void updateStyleInvalidationIfNeeded(); |
1030 | 1031 |
1031 virtual void trace(Visitor*) OVERRIDE; | 1032 virtual void trace(Visitor*) OVERRIDE; |
1032 | 1033 |
1033 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate
SVGFilterElements.size(); } | 1034 bool hasSVGFilterElementsRequiringLayerUpdate() const { return m_layerUpdate
SVGFilterElements.size(); } |
1034 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } | 1035 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } |
1035 | 1036 |
| 1037 ViewportChangeNotifier& viewportChangeNotifier() { return *m_viewportChangeN
otifier; } |
| 1038 |
1036 protected: | 1039 protected: |
1037 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1040 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
1038 | 1041 |
1039 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; | 1042 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; |
1040 | 1043 |
1041 void clearXMLVersion() { m_xmlVersion = String(); } | 1044 void clearXMLVersion() { m_xmlVersion = String(); } |
1042 | 1045 |
1043 #if !ENABLE(OILPAN) | 1046 #if !ENABLE(OILPAN) |
1044 virtual void dispose() OVERRIDE; | 1047 virtual void dispose() OVERRIDE; |
1045 #endif | 1048 #endif |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 ViewportDescription m_legacyViewportDescription; | 1321 ViewportDescription m_legacyViewportDescription; |
1319 Length m_viewportDefaultMinWidth; | 1322 Length m_viewportDefaultMinWidth; |
1320 | 1323 |
1321 bool m_didSetReferrerPolicy; | 1324 bool m_didSetReferrerPolicy; |
1322 ReferrerPolicy m_referrerPolicy; | 1325 ReferrerPolicy m_referrerPolicy; |
1323 | 1326 |
1324 bool m_directionSetOnDocumentElement; | 1327 bool m_directionSetOnDocumentElement; |
1325 bool m_writingModeSetOnDocumentElement; | 1328 bool m_writingModeSetOnDocumentElement; |
1326 DocumentTiming m_documentTiming; | 1329 DocumentTiming m_documentTiming; |
1327 RefPtrWillBeMember<MediaQueryMatcher> m_mediaQueryMatcher; | 1330 RefPtrWillBeMember<MediaQueryMatcher> m_mediaQueryMatcher; |
| 1331 OwnPtrWillBeMember<ViewportChangeNotifier> m_viewportChangeNotifier; |
1328 bool m_writeRecursionIsTooDeep; | 1332 bool m_writeRecursionIsTooDeep; |
1329 unsigned m_writeRecursionDepth; | 1333 unsigned m_writeRecursionDepth; |
1330 | 1334 |
1331 RefPtrWillBeMember<ScriptedAnimationController> m_scriptedAnimationControlle
r; | 1335 RefPtrWillBeMember<ScriptedAnimationController> m_scriptedAnimationControlle
r; |
1332 OwnPtr<MainThreadTaskRunner> m_taskRunner; | 1336 OwnPtr<MainThreadTaskRunner> m_taskRunner; |
1333 OwnPtr<TextAutosizer> m_textAutosizer; | 1337 OwnPtr<TextAutosizer> m_textAutosizer; |
1334 OwnPtr<FastTextAutosizer> m_fastTextAutosizer; | 1338 OwnPtr<FastTextAutosizer> m_fastTextAutosizer; |
1335 | 1339 |
1336 RefPtrWillBeMember<CustomElementRegistrationContext> m_registrationContext; | 1340 RefPtrWillBeMember<CustomElementRegistrationContext> m_registrationContext; |
1337 RefPtrWillBeMember<CustomElementMicrotaskRunQueue> m_customElementMicrotaskR
unQueue; | 1341 RefPtrWillBeMember<CustomElementMicrotaskRunQueue> m_customElementMicrotaskR
unQueue; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1409 Node* eventTargetNodeForDocument(Document*); | 1413 Node* eventTargetNodeForDocument(Document*); |
1410 | 1414 |
1411 } // namespace WebCore | 1415 } // namespace WebCore |
1412 | 1416 |
1413 #ifndef NDEBUG | 1417 #ifndef NDEBUG |
1414 // Outside the WebCore namespace for ease of invocation from gdb. | 1418 // Outside the WebCore namespace for ease of invocation from gdb. |
1415 void showLiveDocumentInstances(); | 1419 void showLiveDocumentInstances(); |
1416 #endif | 1420 #endif |
1417 | 1421 |
1418 #endif // Document_h | 1422 #endif // Document_h |
OLD | NEW |