Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1832773002: Move CompositorPendingAnimations to Oilpan's heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/animation/CompositorPendingAnimations.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 void didLoadAllScriptBlockingResources(); 964 void didLoadAllScriptBlockingResources();
965 void didRemoveAllPendingStylesheet(); 965 void didRemoveAllPendingStylesheet();
966 966
967 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle ::InStyleRecalc; } 967 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle ::InStyleRecalc; }
968 968
969 // Return a Locale for the default locale if the argument is null or empty. 969 // Return a Locale for the default locale if the argument is null or empty.
970 Locale& getCachedLocale(const AtomicString& locale = nullAtom); 970 Locale& getCachedLocale(const AtomicString& locale = nullAtom);
971 971
972 AnimationClock& animationClock(); 972 AnimationClock& animationClock();
973 AnimationTimeline& timeline() const { return *m_timeline; } 973 AnimationTimeline& timeline() const { return *m_timeline; }
974 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos itorPendingAnimations; } 974 CompositorPendingAnimations& compositorPendingAnimations() { return *m_compo sitorPendingAnimations; }
sof 2016/03/24 17:36:06 Wait, you need to create this heap object somewher
975 975
976 void addToTopLayer(Element*, const Element* before = nullptr); 976 void addToTopLayer(Element*, const Element* before = nullptr);
977 void removeFromTopLayer(Element*); 977 void removeFromTopLayer(Element*);
978 const WillBeHeapVector<RefPtrWillBeMember<Element>>& topLayerElements() cons t { return m_topLayerElements; } 978 const WillBeHeapVector<RefPtrWillBeMember<Element>>& topLayerElements() cons t { return m_topLayerElements; }
979 HTMLDialogElement* activeModalDialog() const; 979 HTMLDialogElement* activeModalDialog() const;
980 980
981 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument(). 981 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument().
982 bool isTemplateDocument() const { return !!m_templateDocumentHost; } 982 bool isTemplateDocument() const { return !!m_templateDocumentHost; }
983 Document& ensureTemplateDocument(); 983 Document& ensureTemplateDocument();
984 Document* templateDocumentHost() { return m_templateDocumentHost; } 984 Document* templateDocumentHost() { return m_templateDocumentHost; }
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 1365
1366 void elementDataCacheClearTimerFired(Timer<Document>*); 1366 void elementDataCacheClearTimerFired(Timer<Document>*);
1367 Timer<Document> m_elementDataCacheClearTimer; 1367 Timer<Document> m_elementDataCacheClearTimer;
1368 1368
1369 OwnPtrWillBeMember<ElementDataCache> m_elementDataCache; 1369 OwnPtrWillBeMember<ElementDataCache> m_elementDataCache;
1370 1370
1371 using LocaleIdentifierToLocaleMap = HashMap<AtomicString, OwnPtr<Locale>>; 1371 using LocaleIdentifierToLocaleMap = HashMap<AtomicString, OwnPtr<Locale>>;
1372 LocaleIdentifierToLocaleMap m_localeCache; 1372 LocaleIdentifierToLocaleMap m_localeCache;
1373 1373
1374 PersistentWillBeMember<AnimationTimeline> m_timeline; 1374 PersistentWillBeMember<AnimationTimeline> m_timeline;
1375 CompositorPendingAnimations m_compositorPendingAnimations; 1375 PersistentWillBeMember<CompositorPendingAnimations> m_compositorPendingAnima tions;
sof 2016/03/24 15:02:10 Can we forward declare CompositorPendingAnimations
1376 1376
1377 RefPtrWillBeMember<Document> m_templateDocument; 1377 RefPtrWillBeMember<Document> m_templateDocument;
1378 // With Oilpan the templateDocument and the templateDocumentHost 1378 // With Oilpan the templateDocument and the templateDocumentHost
1379 // live and die together. Without Oilpan, the templateDocumentHost 1379 // live and die together. Without Oilpan, the templateDocumentHost
1380 // is a manually managed backpointer from m_templateDocument. 1380 // is a manually managed backpointer from m_templateDocument.
1381 RawPtrWillBeMember<Document> m_templateDocumentHost; 1381 RawPtrWillBeMember<Document> m_templateDocumentHost;
1382 1382
1383 Timer<Document> m_didAssociateFormControlsTimer; 1383 Timer<Document> m_didAssociateFormControlsTimer;
1384 WillBeHeapHashSet<RefPtrWillBeMember<Element>> m_associatedFormControls; 1384 WillBeHeapHashSet<RefPtrWillBeMember<Element>> m_associatedFormControls;
1385 1385
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1447 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1448 1448
1449 } // namespace blink 1449 } // namespace blink
1450 1450
1451 #ifndef NDEBUG 1451 #ifndef NDEBUG
1452 // Outside the WebCore namespace for ease of invocation from gdb. 1452 // Outside the WebCore namespace for ease of invocation from gdb.
1453 CORE_EXPORT void showLiveDocumentInstances(); 1453 CORE_EXPORT void showLiveDocumentInstances();
1454 #endif 1454 #endif
1455 1455
1456 #endif // Document_h 1456 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/CompositorPendingAnimations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698