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

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: Observe content box, not clientWidth 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 class NodeFilter; 137 class NodeFilter;
138 class NodeIntersectionObserverData; 138 class NodeIntersectionObserverData;
139 class NodeIterator; 139 class NodeIterator;
140 class NthIndexCache; 140 class NthIndexCache;
141 class OriginAccessEntry; 141 class OriginAccessEntry;
142 class Page; 142 class Page;
143 class PlatformMouseEvent; 143 class PlatformMouseEvent;
144 class ProcessingInstruction; 144 class ProcessingInstruction;
145 class QualifiedName; 145 class QualifiedName;
146 class Range; 146 class Range;
147 class ResizeObserverController;
147 class LayoutView; 148 class LayoutView;
148 class ResourceFetcher; 149 class ResourceFetcher;
149 class SVGDocumentExtensions; 150 class SVGDocumentExtensions;
150 class SVGUseElement; 151 class SVGUseElement;
151 class ScriptRunner; 152 class ScriptRunner;
152 class ScriptableDocumentParser; 153 class ScriptableDocumentParser;
153 class ScriptedAnimationController; 154 class ScriptedAnimationController;
154 class ScriptedIdleTaskController; 155 class ScriptedIdleTaskController;
155 class SecurityOrigin; 156 class SecurityOrigin;
156 class SegmentedString; 157 class SegmentedString;
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 { 683 {
683 return m_mutationObserverTypes & type; 684 return m_mutationObserverTypes & type;
684 } 685 }
685 bool hasMutationObservers() const { return m_mutationObserverTypes; } 686 bool hasMutationObservers() const { return m_mutationObserverTypes; }
686 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; } 687 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs erverTypes |= types; }
687 688
688 IntersectionObserverController* intersectionObserverController(); 689 IntersectionObserverController* intersectionObserverController();
689 IntersectionObserverController& ensureIntersectionObserverController(); 690 IntersectionObserverController& ensureIntersectionObserverController();
690 NodeIntersectionObserverData& ensureIntersectionObserverData(); 691 NodeIntersectionObserverData& ensureIntersectionObserverData();
691 692
693 bool resizeObserverController() const { return m_resizeObserverController; }
szager1 2016/06/02 20:52:41 I would still prefer that you honor existing conve
atotic1 2016/06/08 18:59:21 Done.
694 ResizeObserverController& ensureResizeObserverController();
695
692 void updateViewportDescription(); 696 void updateViewportDescription();
693 void processReferrerPolicy(const String& policy); 697 void processReferrerPolicy(const String& policy);
694 698
695 // Returns the owning element in the parent document. Returns nullptr if 699 // Returns the owning element in the parent document. Returns nullptr if
696 // this is the top level document or the owner is remote. 700 // this is the top level document or the owner is remote.
697 HTMLFrameOwnerElement* localOwner() const; 701 HTMLFrameOwnerElement* localOwner() const;
698 702
699 // Returns true if this document belongs to a frame that the parent document 703 // Returns true if this document belongs to a frame that the parent document
700 // made invisible (for instance by setting as style display:none). 704 // made invisible (for instance by setting as style display:none).
701 bool isInInvisibleSubframe() const; 705 bool isInInvisibleSubframe() const;
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 ParserSynchronizationPolicy m_parserSyncPolicy; 1386 ParserSynchronizationPolicy m_parserSyncPolicy;
1383 1387
1384 HostsUsingFeatures::Value m_hostsUsingFeaturesValue; 1388 HostsUsingFeatures::Value m_hostsUsingFeaturesValue;
1385 1389
1386 ClientHintsPreferences m_clientHintsPreferences; 1390 ClientHintsPreferences m_clientHintsPreferences;
1387 1391
1388 Member<CanvasFontCache> m_canvasFontCache; 1392 Member<CanvasFontCache> m_canvasFontCache;
1389 1393
1390 Member<IntersectionObserverController> m_intersectionObserverController; 1394 Member<IntersectionObserverController> m_intersectionObserverController;
1391 Member<NodeIntersectionObserverData> m_intersectionObserverData; 1395 Member<NodeIntersectionObserverData> m_intersectionObserverData;
1396 Member<ResizeObserverController> m_resizeObserverController;
1392 1397
1393 int m_nodeCount; 1398 int m_nodeCount;
1394 1399
1395 bool m_mayContainV0Shadow = false; 1400 bool m_mayContainV0Shadow = false;
1396 1401
1397 Member<SnapCoordinator> m_snapCoordinator; 1402 Member<SnapCoordinator> m_snapCoordinator;
1398 }; 1403 };
1399 1404
1400 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; 1405 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
1401 1406
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1442 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1438 1443
1439 } // namespace blink 1444 } // namespace blink
1440 1445
1441 #ifndef NDEBUG 1446 #ifndef NDEBUG
1442 // Outside the WebCore namespace for ease of invocation from gdb. 1447 // Outside the WebCore namespace for ease of invocation from gdb.
1443 CORE_EXPORT void showLiveDocumentInstances(); 1448 CORE_EXPORT void showLiveDocumentInstances();
1444 #endif 1449 #endif
1445 1450
1446 #endif // Document_h 1451 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698