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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); } | 952 ElementDataCache* elementDataCache() { return m_elementDataCache.get(); } |
953 | 953 |
954 void didLoadAllScriptBlockingResources(); | 954 void didLoadAllScriptBlockingResources(); |
955 void didRemoveAllPendingStylesheet(); | 955 void didRemoveAllPendingStylesheet(); |
956 | 956 |
957 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } | 957 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } |
958 | 958 |
959 // Return a Locale for the default locale if the argument is null or empty. | 959 // Return a Locale for the default locale if the argument is null or empty. |
960 Locale& getCachedLocale(const AtomicString& locale = nullAtom); | 960 Locale& getCachedLocale(const AtomicString& locale = nullAtom); |
961 | 961 |
962 AnimationClock& animationClock(); | 962 AnimationClock& animationClock() { return m_animationClock; } |
963 AnimationTimeline& timeline() const { return *m_timeline; } | 963 AnimationTimeline& timeline() const { return *m_timeline; } |
964 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos
itorPendingAnimations; } | 964 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos
itorPendingAnimations; } |
965 | 965 |
966 void addToTopLayer(Element*, const Element* before = nullptr); | 966 void addToTopLayer(Element*, const Element* before = nullptr); |
967 void removeFromTopLayer(Element*); | 967 void removeFromTopLayer(Element*); |
968 const WillBeHeapVector<RefPtrWillBeMember<Element>>& topLayerElements() cons
t { return m_topLayerElements; } | 968 const WillBeHeapVector<RefPtrWillBeMember<Element>>& topLayerElements() cons
t { return m_topLayerElements; } |
969 HTMLDialogElement* activeModalDialog() const; | 969 HTMLDialogElement* activeModalDialog() const; |
970 | 970 |
971 // A non-null m_templateDocumentHost implies that |this| was created by ensu
reTemplateDocument(). | 971 // A non-null m_templateDocumentHost implies that |this| was created by ensu
reTemplateDocument(). |
972 bool isTemplateDocument() const { return !!m_templateDocumentHost; } | 972 bool isTemplateDocument() const { return !!m_templateDocumentHost; } |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 RefPtrWillBeMember<CustomElementMicrotaskRunQueue> m_customElementMicrotaskR
unQueue; | 1350 RefPtrWillBeMember<CustomElementMicrotaskRunQueue> m_customElementMicrotaskR
unQueue; |
1351 | 1351 |
1352 void elementDataCacheClearTimerFired(Timer<Document>*); | 1352 void elementDataCacheClearTimerFired(Timer<Document>*); |
1353 Timer<Document> m_elementDataCacheClearTimer; | 1353 Timer<Document> m_elementDataCacheClearTimer; |
1354 | 1354 |
1355 OwnPtrWillBeMember<ElementDataCache> m_elementDataCache; | 1355 OwnPtrWillBeMember<ElementDataCache> m_elementDataCache; |
1356 | 1356 |
1357 using LocaleIdentifierToLocaleMap = HashMap<AtomicString, OwnPtr<Locale>>; | 1357 using LocaleIdentifierToLocaleMap = HashMap<AtomicString, OwnPtr<Locale>>; |
1358 LocaleIdentifierToLocaleMap m_localeCache; | 1358 LocaleIdentifierToLocaleMap m_localeCache; |
1359 | 1359 |
| 1360 AnimationClock m_animationClock; |
1360 PersistentWillBeMember<AnimationTimeline> m_timeline; | 1361 PersistentWillBeMember<AnimationTimeline> m_timeline; |
1361 CompositorPendingAnimations m_compositorPendingAnimations; | 1362 CompositorPendingAnimations m_compositorPendingAnimations; |
1362 | 1363 |
1363 RefPtrWillBeMember<Document> m_templateDocument; | 1364 RefPtrWillBeMember<Document> m_templateDocument; |
1364 // With Oilpan the templateDocument and the templateDocumentHost | 1365 // With Oilpan the templateDocument and the templateDocumentHost |
1365 // live and die together. Without Oilpan, the templateDocumentHost | 1366 // live and die together. Without Oilpan, the templateDocumentHost |
1366 // is a manually managed backpointer from m_templateDocument. | 1367 // is a manually managed backpointer from m_templateDocument. |
1367 RawPtrWillBeMember<Document> m_templateDocumentHost; | 1368 RawPtrWillBeMember<Document> m_templateDocumentHost; |
1368 | 1369 |
1369 Timer<Document> m_didAssociateFormControlsTimer; | 1370 Timer<Document> m_didAssociateFormControlsTimer; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1433 | 1434 |
1434 } // namespace blink | 1435 } // namespace blink |
1435 | 1436 |
1436 #ifndef NDEBUG | 1437 #ifndef NDEBUG |
1437 // Outside the WebCore namespace for ease of invocation from gdb. | 1438 // Outside the WebCore namespace for ease of invocation from gdb. |
1438 CORE_EXPORT void showLiveDocumentInstances(); | 1439 CORE_EXPORT void showLiveDocumentInstances(); |
1439 #endif | 1440 #endif |
1440 | 1441 |
1441 #endif // Document_h | 1442 #endif // Document_h |
OLD | NEW |