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 12 matching lines...) Expand all Loading... |
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
25 * | 25 * |
26 */ | 26 */ |
27 | 27 |
28 #ifndef Document_h | 28 #ifndef Document_h |
29 #define Document_h | 29 #define Document_h |
30 | 30 |
31 #include "bindings/v8/ExceptionStatePlaceholder.h" | 31 #include "bindings/v8/ExceptionStatePlaceholder.h" |
32 #include "bindings/v8/ScriptValue.h" | 32 #include "bindings/v8/ScriptValue.h" |
| 33 #include "core/animation/AnimationClock.h" |
33 #include "core/animation/CompositorPendingAnimations.h" | 34 #include "core/animation/CompositorPendingAnimations.h" |
34 #include "core/dom/ContainerNode.h" | 35 #include "core/dom/ContainerNode.h" |
35 #include "core/dom/DocumentEncodingData.h" | 36 #include "core/dom/DocumentEncodingData.h" |
36 #include "core/dom/DocumentInit.h" | 37 #include "core/dom/DocumentInit.h" |
37 #include "core/dom/DocumentLifecycle.h" | 38 #include "core/dom/DocumentLifecycle.h" |
38 #include "core/dom/DocumentSupplementable.h" | 39 #include "core/dom/DocumentSupplementable.h" |
39 #include "core/dom/DocumentTiming.h" | 40 #include "core/dom/DocumentTiming.h" |
40 #include "core/dom/ExecutionContext.h" | 41 #include "core/dom/ExecutionContext.h" |
41 #include "core/dom/IconURL.h" | 42 #include "core/dom/IconURL.h" |
42 #include "core/dom/MutationObserver.h" | 43 #include "core/dom/MutationObserver.h" |
(...skipping 14 matching lines...) Expand all Loading... |
57 #include "platform/weborigin/ReferrerPolicy.h" | 58 #include "platform/weborigin/ReferrerPolicy.h" |
58 #include "wtf/HashSet.h" | 59 #include "wtf/HashSet.h" |
59 #include "wtf/OwnPtr.h" | 60 #include "wtf/OwnPtr.h" |
60 #include "wtf/PassOwnPtr.h" | 61 #include "wtf/PassOwnPtr.h" |
61 #include "wtf/PassRefPtr.h" | 62 #include "wtf/PassRefPtr.h" |
62 #include "wtf/WeakPtr.h" | 63 #include "wtf/WeakPtr.h" |
63 | 64 |
64 namespace WebCore { | 65 namespace WebCore { |
65 | 66 |
66 class AXObjectCache; | 67 class AXObjectCache; |
67 class AnimationClock; | |
68 class Attr; | 68 class Attr; |
69 class CDATASection; | 69 class CDATASection; |
70 class CSSFontSelector; | 70 class CSSFontSelector; |
71 class CSSStyleDeclaration; | 71 class CSSStyleDeclaration; |
72 class CSSStyleSheet; | 72 class CSSStyleSheet; |
73 class CSSStyleSheetResource; | 73 class CSSStyleSheetResource; |
74 class CanvasRenderingContext2D; | 74 class CanvasRenderingContext2D; |
75 class CharacterData; | 75 class CharacterData; |
76 class Chrome; | 76 class Chrome; |
77 class Comment; | 77 class Comment; |
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 void didLoadAllScriptBlockingResources(); | 1013 void didLoadAllScriptBlockingResources(); |
1014 void didRemoveAllPendingStylesheet(); | 1014 void didRemoveAllPendingStylesheet(); |
1015 void setNeedsNotifyRemoveAllPendingStylesheet() { m_needsNotifyRemoveAllPend
ingStylesheet = true; } | 1015 void setNeedsNotifyRemoveAllPendingStylesheet() { m_needsNotifyRemoveAllPend
ingStylesheet = true; } |
1016 void clearStyleResolver(); | 1016 void clearStyleResolver(); |
1017 | 1017 |
1018 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } | 1018 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } |
1019 | 1019 |
1020 // Return a Locale for the default locale if the argument is null or empty. | 1020 // Return a Locale for the default locale if the argument is null or empty. |
1021 Locale& getCachedLocale(const AtomicString& locale = nullAtom); | 1021 Locale& getCachedLocale(const AtomicString& locale = nullAtom); |
1022 | 1022 |
1023 AnimationClock& animationClock() { return *m_animationClock; } | 1023 AnimationClock& animationClock() { return m_animationClock; } |
1024 DocumentTimeline& timeline() const { return *m_timeline; } | 1024 DocumentTimeline& timeline() const { return *m_timeline; } |
1025 DocumentTimeline& transitionTimeline() const { return *m_transitionTimeline;
} | 1025 DocumentTimeline& transitionTimeline() const { return *m_transitionTimeline;
} |
1026 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos
itorPendingAnimations; } | 1026 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos
itorPendingAnimations; } |
1027 | 1027 |
1028 void addToTopLayer(Element*, const Element* before = 0); | 1028 void addToTopLayer(Element*, const Element* before = 0); |
1029 void removeFromTopLayer(Element*); | 1029 void removeFromTopLayer(Element*); |
1030 const Vector<RefPtr<Element> >& topLayerElements() const { return m_topLayer
Elements; } | 1030 const Vector<RefPtr<Element> >& topLayerElements() const { return m_topLayer
Elements; } |
1031 HTMLDialogElement* activeModalDialog() const; | 1031 HTMLDialogElement* activeModalDialog() const; |
1032 | 1032 |
1033 // A non-null m_templateDocumentHost implies that |this| was created by ensu
reTemplateDocument(). | 1033 // A non-null m_templateDocumentHost implies that |this| was created by ensu
reTemplateDocument(). |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1358 | 1358 |
1359 OwnPtr<ElementDataCache> m_elementDataCache; | 1359 OwnPtr<ElementDataCache> m_elementDataCache; |
1360 | 1360 |
1361 #ifndef NDEBUG | 1361 #ifndef NDEBUG |
1362 bool m_didDispatchViewportPropertiesChanged; | 1362 bool m_didDispatchViewportPropertiesChanged; |
1363 #endif | 1363 #endif |
1364 | 1364 |
1365 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap; | 1365 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap; |
1366 LocaleIdentifierToLocaleMap m_localeCache; | 1366 LocaleIdentifierToLocaleMap m_localeCache; |
1367 | 1367 |
1368 OwnPtr<AnimationClock> m_animationClock; | 1368 AnimationClock m_animationClock; |
1369 RefPtr<DocumentTimeline> m_timeline; | 1369 RefPtr<DocumentTimeline> m_timeline; |
1370 RefPtr<DocumentTimeline> m_transitionTimeline; | 1370 RefPtr<DocumentTimeline> m_transitionTimeline; |
1371 CompositorPendingAnimations m_compositorPendingAnimations; | 1371 CompositorPendingAnimations m_compositorPendingAnimations; |
1372 | 1372 |
1373 RefPtr<Document> m_templateDocument; | 1373 RefPtr<Document> m_templateDocument; |
1374 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f
rom m_templateDocument). | 1374 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f
rom m_templateDocument). |
1375 | 1375 |
1376 Timer<Document> m_didAssociateFormControlsTimer; | 1376 Timer<Document> m_didAssociateFormControlsTimer; |
1377 HashSet<RefPtr<Element> > m_associatedFormControls; | 1377 HashSet<RefPtr<Element> > m_associatedFormControls; |
1378 | 1378 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1441 inline bool Node::isDocumentNode() const | 1441 inline bool Node::isDocumentNode() const |
1442 { | 1442 { |
1443 return this == document(); | 1443 return this == document(); |
1444 } | 1444 } |
1445 | 1445 |
1446 Node* eventTargetNodeForDocument(Document*); | 1446 Node* eventTargetNodeForDocument(Document*); |
1447 | 1447 |
1448 } // namespace WebCore | 1448 } // namespace WebCore |
1449 | 1449 |
1450 #endif // Document_h | 1450 #endif // Document_h |
OLD | NEW |