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

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

Issue 2005593002: Initial ResizeObserver implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to master: Vector<WeakMember> no longer ok. Created 4 years, 6 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 SecurityOrigin; 154 class SecurityOrigin;
154 class SegmentedString; 155 class SegmentedString;
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 { 699 {
699 return m_mutationObserverTypes & type; 700 return m_mutationObserverTypes & type;
700 } 701 }
701 bool hasMutationObservers() const { return m_mutationObserverTypes; } 702 bool hasMutationObservers() const { return m_mutationObserverTypes; }
702 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; } 703 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; }
703 704
704 IntersectionObserverController* intersectionObserverController(); 705 IntersectionObserverController* intersectionObserverController();
705 IntersectionObserverController& ensureIntersectionObserverController(); 706 IntersectionObserverController& ensureIntersectionObserverController();
706 NodeIntersectionObserverData& ensureIntersectionObserverData(); 707 NodeIntersectionObserverData& ensureIntersectionObserverData();
707 708
709 ResizeObserverController* resizeObserverController() const { return m_resize ObserverController; }
710 ResizeObserverController& ensureResizeObserverController();
711
708 void updateViewportDescription(); 712 void updateViewportDescription();
709 void processReferrerPolicy(const String& policy); 713 void processReferrerPolicy(const String& policy);
710 714
711 // Returns the owning element in the parent document. Returns nullptr if 715 // Returns the owning element in the parent document. Returns nullptr if
712 // this is the top level document or the owner is remote. 716 // this is the top level document or the owner is remote.
713 HTMLFrameOwnerElement* localOwner() const; 717 HTMLFrameOwnerElement* localOwner() const;
714 718
715 // Returns true if this document belongs to a frame that the parent document 719 // Returns true if this document belongs to a frame that the parent document
716 // made invisible (for instance by setting as style display:none). 720 // made invisible (for instance by setting as style display:none).
717 bool isInInvisibleSubframe() const; 721 bool isInInvisibleSubframe() const;
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 ParserSynchronizationPolicy m_parserSyncPolicy; 1403 ParserSynchronizationPolicy m_parserSyncPolicy;
1400 1404
1401 HostsUsingFeatures::Value m_hostsUsingFeaturesValue; 1405 HostsUsingFeatures::Value m_hostsUsingFeaturesValue;
1402 1406
1403 ClientHintsPreferences m_clientHintsPreferences; 1407 ClientHintsPreferences m_clientHintsPreferences;
1404 1408
1405 Member<CanvasFontCache> m_canvasFontCache; 1409 Member<CanvasFontCache> m_canvasFontCache;
1406 1410
1407 Member<IntersectionObserverController> m_intersectionObserverController; 1411 Member<IntersectionObserverController> m_intersectionObserverController;
1408 Member<NodeIntersectionObserverData> m_intersectionObserverData; 1412 Member<NodeIntersectionObserverData> m_intersectionObserverData;
1413 Member<ResizeObserverController> m_resizeObserverController;
1409 1414
1410 int m_nodeCount; 1415 int m_nodeCount;
1411 1416
1412 bool m_mayContainV0Shadow = false; 1417 bool m_mayContainV0Shadow = false;
1413 1418
1414 Member<SnapCoordinator> m_snapCoordinator; 1419 Member<SnapCoordinator> m_snapCoordinator;
1415 }; 1420 };
1416 1421
1417 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; 1422 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
1418 1423
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1459 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1455 1460
1456 } // namespace blink 1461 } // namespace blink
1457 1462
1458 #ifndef NDEBUG 1463 #ifndef NDEBUG
1459 // Outside the WebCore namespace for ease of invocation from gdb. 1464 // Outside the WebCore namespace for ease of invocation from gdb.
1460 CORE_EXPORT void showLiveDocumentInstances(); 1465 CORE_EXPORT void showLiveDocumentInstances();
1461 #endif 1466 #endif
1462 1467
1463 #endif // Document_h 1468 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698