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

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

Issue 2222313002: Implement DocumentTimeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update global-interface-listing-expected.txt Created 4 years, 4 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "platform/weborigin/ReferrerPolicy.h" 54 #include "platform/weborigin/ReferrerPolicy.h"
55 #include "public/platform/WebFocusType.h" 55 #include "public/platform/WebFocusType.h"
56 #include "public/platform/WebInsecureRequestPolicy.h" 56 #include "public/platform/WebInsecureRequestPolicy.h"
57 #include "wtf/HashSet.h" 57 #include "wtf/HashSet.h"
58 #include "wtf/PassRefPtr.h" 58 #include "wtf/PassRefPtr.h"
59 #include <memory> 59 #include <memory>
60 60
61 namespace blink { 61 namespace blink {
62 62
63 class AnimationClock; 63 class AnimationClock;
64 class AnimationTimeline; 64 class DocumentTimeline;
65 class AXObjectCache; 65 class AXObjectCache;
66 class Attr; 66 class Attr;
67 class CDATASection; 67 class CDATASection;
68 class CSSStyleDeclaration; 68 class CSSStyleDeclaration;
69 class CSSStyleSheet; 69 class CSSStyleSheet;
70 class CancellableTaskFactory; 70 class CancellableTaskFactory;
71 class CanvasFontCache; 71 class CanvasFontCache;
72 class CanvasRenderingContext2D; 72 class CanvasRenderingContext2D;
73 class CanvasRenderingContext2DOrWebGLRenderingContext; 73 class CanvasRenderingContext2DOrWebGLRenderingContext;
74 class CharacterData; 74 class CharacterData;
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 986
987 void didLoadAllScriptBlockingResources(); 987 void didLoadAllScriptBlockingResources();
988 void didRemoveAllPendingStylesheet(); 988 void didRemoveAllPendingStylesheet();
989 989
990 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle ::InStyleRecalc; } 990 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle ::InStyleRecalc; }
991 991
992 // Return a Locale for the default locale if the argument is null or empty. 992 // Return a Locale for the default locale if the argument is null or empty.
993 Locale& getCachedLocale(const AtomicString& locale = nullAtom); 993 Locale& getCachedLocale(const AtomicString& locale = nullAtom);
994 994
995 AnimationClock& animationClock(); 995 AnimationClock& animationClock();
996 AnimationTimeline& timeline() const { return *m_timeline; } 996 DocumentTimeline& timeline() const { return *m_timeline; }
997 CompositorPendingAnimations& compositorPendingAnimations() { return *m_compo sitorPendingAnimations; } 997 CompositorPendingAnimations& compositorPendingAnimations() { return *m_compo sitorPendingAnimations; }
998 998
999 void addToTopLayer(Element*, const Element* before = nullptr); 999 void addToTopLayer(Element*, const Element* before = nullptr);
1000 void removeFromTopLayer(Element*); 1000 void removeFromTopLayer(Element*);
1001 const HeapVector<Member<Element>>& topLayerElements() const { return m_topLa yerElements; } 1001 const HeapVector<Member<Element>>& topLayerElements() const { return m_topLa yerElements; }
1002 HTMLDialogElement* activeModalDialog() const; 1002 HTMLDialogElement* activeModalDialog() const;
1003 1003
1004 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument(). 1004 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument().
1005 bool isTemplateDocument() const { return !!m_templateDocumentHost; } 1005 bool isTemplateDocument() const { return !!m_templateDocumentHost; }
1006 Document& ensureTemplateDocument(); 1006 Document& ensureTemplateDocument();
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 Member<V0CustomElementMicrotaskRunQueue> m_customElementMicrotaskRunQueue; 1378 Member<V0CustomElementMicrotaskRunQueue> m_customElementMicrotaskRunQueue;
1379 1379
1380 void elementDataCacheClearTimerFired(TimerBase*); 1380 void elementDataCacheClearTimerFired(TimerBase*);
1381 Timer<Document> m_elementDataCacheClearTimer; 1381 Timer<Document> m_elementDataCacheClearTimer;
1382 1382
1383 Member<ElementDataCache> m_elementDataCache; 1383 Member<ElementDataCache> m_elementDataCache;
1384 1384
1385 using LocaleIdentifierToLocaleMap = HashMap<AtomicString, std::unique_ptr<Lo cale>>; 1385 using LocaleIdentifierToLocaleMap = HashMap<AtomicString, std::unique_ptr<Lo cale>>;
1386 LocaleIdentifierToLocaleMap m_localeCache; 1386 LocaleIdentifierToLocaleMap m_localeCache;
1387 1387
1388 Member<AnimationTimeline> m_timeline; 1388 Member<DocumentTimeline> m_timeline;
1389 Member<CompositorPendingAnimations> m_compositorPendingAnimations; 1389 Member<CompositorPendingAnimations> m_compositorPendingAnimations;
1390 1390
1391 Member<Document> m_templateDocument; 1391 Member<Document> m_templateDocument;
1392 Member<Document> m_templateDocumentHost; 1392 Member<Document> m_templateDocumentHost;
1393 1393
1394 Timer<Document> m_didAssociateFormControlsTimer; 1394 Timer<Document> m_didAssociateFormControlsTimer;
1395 1395
1396 HeapHashSet<Member<SVGUseElement>> m_useElementsNeedingUpdate; 1396 HeapHashSet<Member<SVGUseElement>> m_useElementsNeedingUpdate;
1397 HeapHashSet<Member<Element>> m_layerUpdateSVGFilterElements; 1397 HeapHashSet<Member<Element>> m_layerUpdateSVGFilterElements;
1398 1398
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1460 1460
1461 } // namespace blink 1461 } // namespace blink
1462 1462
1463 #ifndef NDEBUG 1463 #ifndef NDEBUG
1464 // Outside the WebCore namespace for ease of invocation from gdb. 1464 // Outside the WebCore namespace for ease of invocation from gdb.
1465 CORE_EXPORT void showLiveDocumentInstances(); 1465 CORE_EXPORT void showLiveDocumentInstances();
1466 #endif 1466 #endif
1467 1467
1468 #endif // Document_h 1468 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698