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

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

Issue 2457593002: Move remaining Document timers to frame-specific task runners. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | 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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 bool m_paginatedForScreen; 1480 bool m_paginatedForScreen;
1481 1481
1482 CompatibilityMode m_compatibilityMode; 1482 CompatibilityMode m_compatibilityMode;
1483 // This is cheaper than making setCompatibilityMode virtual. 1483 // This is cheaper than making setCompatibilityMode virtual.
1484 bool m_compatibilityModeLocked; 1484 bool m_compatibilityModeLocked;
1485 1485
1486 std::unique_ptr<CancellableTaskFactory> 1486 std::unique_ptr<CancellableTaskFactory>
1487 m_executeScriptsWaitingForResourcesTask; 1487 m_executeScriptsWaitingForResourcesTask;
1488 1488
1489 bool m_hasAutofocused; 1489 bool m_hasAutofocused;
1490 Timer<Document> m_clearFocusedElementTimer; 1490 TaskRunnerTimer<Document> m_clearFocusedElementTimer;
1491 Member<Element> m_autofocusElement; 1491 Member<Element> m_autofocusElement;
1492 Member<Element> m_focusedElement; 1492 Member<Element> m_focusedElement;
1493 Member<Range> m_sequentialFocusNavigationStartingPoint; 1493 Member<Range> m_sequentialFocusNavigationStartingPoint;
1494 Member<Node> m_hoverNode; 1494 Member<Node> m_hoverNode;
1495 Member<Element> m_activeHoverElement; 1495 Member<Element> m_activeHoverElement;
1496 Member<Element> m_documentElement; 1496 Member<Element> m_documentElement;
1497 UserActionElementSet m_userActionElements; 1497 UserActionElementSet m_userActionElements;
1498 Member<RootScrollerController> m_rootScrollerController; 1498 Member<RootScrollerController> m_rootScrollerController;
1499 1499
1500 uint64_t m_domTreeVersion; 1500 uint64_t m_domTreeVersion;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 // https://html.spec.whatwg.org/#throw-on-dynamic-markup-insertion-counter 1534 // https://html.spec.whatwg.org/#throw-on-dynamic-markup-insertion-counter
1535 unsigned m_throwOnDynamicMarkupInsertionCount; 1535 unsigned m_throwOnDynamicMarkupInsertionCount;
1536 1536
1537 String m_title; 1537 String m_title;
1538 String m_rawTitle; 1538 String m_rawTitle;
1539 Member<Element> m_titleElement; 1539 Member<Element> m_titleElement;
1540 1540
1541 Member<AXObjectCache> m_axObjectCache; 1541 Member<AXObjectCache> m_axObjectCache;
1542 Member<DocumentMarkerController> m_markers; 1542 Member<DocumentMarkerController> m_markers;
1543 1543
1544 Timer<Document> m_updateFocusAppearanceTimer; 1544 TaskRunnerTimer<Document> m_updateFocusAppearanceTimer;
1545 1545
1546 Member<Element> m_cssTarget; 1546 Member<Element> m_cssTarget;
1547 1547
1548 LoadEventProgress m_loadEventProgress; 1548 LoadEventProgress m_loadEventProgress;
1549 1549
1550 double m_startTime; 1550 double m_startTime;
1551 1551
1552 Member<ScriptRunner> m_scriptRunner; 1552 Member<ScriptRunner> m_scriptRunner;
1553 1553
1554 HeapVector<Member<Element>> m_currentScriptStack; 1554 HeapVector<Member<Element>> m_currentScriptStack;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 1626
1627 Member<ScriptedAnimationController> m_scriptedAnimationController; 1627 Member<ScriptedAnimationController> m_scriptedAnimationController;
1628 Member<ScriptedIdleTaskController> m_scriptedIdleTaskController; 1628 Member<ScriptedIdleTaskController> m_scriptedIdleTaskController;
1629 std::unique_ptr<MainThreadTaskRunner> m_taskRunner; 1629 std::unique_ptr<MainThreadTaskRunner> m_taskRunner;
1630 Member<TextAutosizer> m_textAutosizer; 1630 Member<TextAutosizer> m_textAutosizer;
1631 1631
1632 Member<V0CustomElementRegistrationContext> m_registrationContext; 1632 Member<V0CustomElementRegistrationContext> m_registrationContext;
1633 Member<V0CustomElementMicrotaskRunQueue> m_customElementMicrotaskRunQueue; 1633 Member<V0CustomElementMicrotaskRunQueue> m_customElementMicrotaskRunQueue;
1634 1634
1635 void elementDataCacheClearTimerFired(TimerBase*); 1635 void elementDataCacheClearTimerFired(TimerBase*);
1636 Timer<Document> m_elementDataCacheClearTimer; 1636 TaskRunnerTimer<Document> m_elementDataCacheClearTimer;
1637 1637
1638 Member<ElementDataCache> m_elementDataCache; 1638 Member<ElementDataCache> m_elementDataCache;
1639 1639
1640 using LocaleIdentifierToLocaleMap = 1640 using LocaleIdentifierToLocaleMap =
1641 HashMap<AtomicString, std::unique_ptr<Locale>>; 1641 HashMap<AtomicString, std::unique_ptr<Locale>>;
1642 LocaleIdentifierToLocaleMap m_localeCache; 1642 LocaleIdentifierToLocaleMap m_localeCache;
1643 1643
1644 Member<DocumentTimeline> m_timeline; 1644 Member<DocumentTimeline> m_timeline;
1645 Member<CompositorPendingAnimations> m_compositorPendingAnimations; 1645 Member<CompositorPendingAnimations> m_compositorPendingAnimations;
1646 1646
1647 Member<Document> m_templateDocument; 1647 Member<Document> m_templateDocument;
1648 Member<Document> m_templateDocumentHost; 1648 Member<Document> m_templateDocumentHost;
1649 1649
1650 Timer<Document> m_didAssociateFormControlsTimer; 1650 TaskRunnerTimer<Document> m_didAssociateFormControlsTimer;
1651 1651
1652 HeapHashSet<Member<SVGUseElement>> m_useElementsNeedingUpdate; 1652 HeapHashSet<Member<SVGUseElement>> m_useElementsNeedingUpdate;
1653 HeapHashSet<Member<Element>> m_layerUpdateSVGFilterElements; 1653 HeapHashSet<Member<Element>> m_layerUpdateSVGFilterElements;
1654 1654
1655 DOMTimerCoordinator m_timers; 1655 DOMTimerCoordinator m_timers;
1656 1656
1657 bool m_hasViewportUnits; 1657 bool m_hasViewportUnits;
1658 1658
1659 ParserSynchronizationPolicy m_parserSyncPolicy; 1659 ParserSynchronizationPolicy m_parserSyncPolicy;
1660 1660
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1724 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1725 1725
1726 } // namespace blink 1726 } // namespace blink
1727 1727
1728 #ifndef NDEBUG 1728 #ifndef NDEBUG
1729 // Outside the WebCore namespace for ease of invocation from gdb. 1729 // Outside the WebCore namespace for ease of invocation from gdb.
1730 CORE_EXPORT void showLiveDocumentInstances(); 1730 CORE_EXPORT void showLiveDocumentInstances();
1731 #endif 1731 #endif
1732 1732
1733 #endif // Document_h 1733 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698