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

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

Issue 2161313002: ResizeObserver implementation, part 2: lifetime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR fixes Created 4 years, 5 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 class NodeFilter; 135 class NodeFilter;
136 class NodeIntersectionObserverData; 136 class NodeIntersectionObserverData;
137 class NodeIterator; 137 class NodeIterator;
138 class NthIndexCache; 138 class NthIndexCache;
139 class OriginAccessEntry; 139 class OriginAccessEntry;
140 class Page; 140 class Page;
141 class PlatformMouseEvent; 141 class PlatformMouseEvent;
142 class ProcessingInstruction; 142 class ProcessingInstruction;
143 class QualifiedName; 143 class QualifiedName;
144 class Range; 144 class Range;
145 class ResizeObserverController;
145 class ResourceFetcher; 146 class ResourceFetcher;
146 class RootScrollerController; 147 class RootScrollerController;
147 class SVGDocumentExtensions; 148 class SVGDocumentExtensions;
148 class SVGUseElement; 149 class SVGUseElement;
149 class ScriptRunner; 150 class ScriptRunner;
150 class ScriptableDocumentParser; 151 class ScriptableDocumentParser;
151 class ScriptedAnimationController; 152 class ScriptedAnimationController;
152 class ScriptedIdleTaskController; 153 class ScriptedIdleTaskController;
153 class ScrollStateCallback; 154 class ScrollStateCallback;
154 class SecurityOrigin; 155 class SecurityOrigin;
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 { 701 {
701 return m_mutationObserverTypes & type; 702 return m_mutationObserverTypes & type;
702 } 703 }
703 bool hasMutationObservers() const { return m_mutationObserverTypes; } 704 bool hasMutationObservers() const { return m_mutationObserverTypes; }
704 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; } 705 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; }
705 706
706 IntersectionObserverController* intersectionObserverController(); 707 IntersectionObserverController* intersectionObserverController();
707 IntersectionObserverController& ensureIntersectionObserverController(); 708 IntersectionObserverController& ensureIntersectionObserverController();
708 NodeIntersectionObserverData& ensureIntersectionObserverData(); 709 NodeIntersectionObserverData& ensureIntersectionObserverData();
709 710
711 ResizeObserverController* resizeObserverController() const { return m_resize ObserverController; }
712 ResizeObserverController& ensureResizeObserverController();
713
710 void updateViewportDescription(); 714 void updateViewportDescription();
711 715
712 // Returns the owning element in the parent document. Returns nullptr if 716 // Returns the owning element in the parent document. Returns nullptr if
713 // this is the top level document or the owner is remote. 717 // this is the top level document or the owner is remote.
714 HTMLFrameOwnerElement* localOwner() const; 718 HTMLFrameOwnerElement* localOwner() const;
715 719
716 // Returns true if this document belongs to a frame that the parent document 720 // Returns true if this document belongs to a frame that the parent document
717 // made invisible (for instance by setting as style display:none). 721 // made invisible (for instance by setting as style display:none).
718 bool isInInvisibleSubframe() const; 722 bool isInInvisibleSubframe() const;
719 723
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 ParserSynchronizationPolicy m_parserSyncPolicy; 1407 ParserSynchronizationPolicy m_parserSyncPolicy;
1404 1408
1405 HostsUsingFeatures::Value m_hostsUsingFeaturesValue; 1409 HostsUsingFeatures::Value m_hostsUsingFeaturesValue;
1406 1410
1407 ClientHintsPreferences m_clientHintsPreferences; 1411 ClientHintsPreferences m_clientHintsPreferences;
1408 1412
1409 Member<CanvasFontCache> m_canvasFontCache; 1413 Member<CanvasFontCache> m_canvasFontCache;
1410 1414
1411 Member<IntersectionObserverController> m_intersectionObserverController; 1415 Member<IntersectionObserverController> m_intersectionObserverController;
1412 Member<NodeIntersectionObserverData> m_intersectionObserverData; 1416 Member<NodeIntersectionObserverData> m_intersectionObserverData;
1417 Member<ResizeObserverController> m_resizeObserverController;
1413 1418
1414 int m_nodeCount; 1419 int m_nodeCount;
1415 1420
1416 bool m_mayContainV0Shadow = false; 1421 bool m_mayContainV0Shadow = false;
1417 1422
1418 Member<SnapCoordinator> m_snapCoordinator; 1423 Member<SnapCoordinator> m_snapCoordinator;
1419 }; 1424 };
1420 1425
1421 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; 1426 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
1422 1427
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1458 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1463 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1459 1464
1460 } // namespace blink 1465 } // namespace blink
1461 1466
1462 #ifndef NDEBUG 1467 #ifndef NDEBUG
1463 // Outside the WebCore namespace for ease of invocation from gdb. 1468 // Outside the WebCore namespace for ease of invocation from gdb.
1464 CORE_EXPORT void showLiveDocumentInstances(); 1469 CORE_EXPORT void showLiveDocumentInstances();
1465 #endif 1470 #endif
1466 1471
1467 #endif // Document_h 1472 #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