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

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: Fix global-interface-listing test 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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 ParserSynchronizationPolicy m_parserSyncPolicy; 1409 ParserSynchronizationPolicy m_parserSyncPolicy;
1406 1410
1407 HostsUsingFeatures::Value m_hostsUsingFeaturesValue; 1411 HostsUsingFeatures::Value m_hostsUsingFeaturesValue;
1408 1412
1409 ClientHintsPreferences m_clientHintsPreferences; 1413 ClientHintsPreferences m_clientHintsPreferences;
1410 1414
1411 Member<CanvasFontCache> m_canvasFontCache; 1415 Member<CanvasFontCache> m_canvasFontCache;
1412 1416
1413 Member<IntersectionObserverController> m_intersectionObserverController; 1417 Member<IntersectionObserverController> m_intersectionObserverController;
1414 Member<NodeIntersectionObserverData> m_intersectionObserverData; 1418 Member<NodeIntersectionObserverData> m_intersectionObserverData;
1419 Member<ResizeObserverController> m_resizeObserverController;
1415 1420
1416 int m_nodeCount; 1421 int m_nodeCount;
1417 1422
1418 bool m_mayContainV0Shadow = false; 1423 bool m_mayContainV0Shadow = false;
1419 1424
1420 Member<SnapCoordinator> m_snapCoordinator; 1425 Member<SnapCoordinator> m_snapCoordinator;
1421 }; 1426 };
1422 1427
1423 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; 1428 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
1424 1429
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1460 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1465 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1461 1466
1462 } // namespace blink 1467 } // namespace blink
1463 1468
1464 #ifndef NDEBUG 1469 #ifndef NDEBUG
1465 // Outside the WebCore namespace for ease of invocation from gdb. 1470 // Outside the WebCore namespace for ease of invocation from gdb.
1466 CORE_EXPORT void showLiveDocumentInstances(); 1471 CORE_EXPORT void showLiveDocumentInstances();
1467 #endif 1472 #endif
1468 1473
1469 #endif // Document_h 1474 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698