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

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

Issue 2310823002: Skeleton implementation of CSS Properties and Values API (Closed)
Patch Set: custom properties :D Created 4 years, 3 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 class MediaQueryListListener; 133 class MediaQueryListListener;
134 class MediaQueryMatcher; 134 class MediaQueryMatcher;
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 PropertyRegistry;
143 class QualifiedName; 144 class QualifiedName;
144 class Range; 145 class Range;
145 class ResizeObserverController; 146 class ResizeObserverController;
146 class ResourceFetcher; 147 class ResourceFetcher;
147 class RootScrollerController; 148 class RootScrollerController;
148 class SVGDocumentExtensions; 149 class SVGDocumentExtensions;
149 class SVGUseElement; 150 class SVGUseElement;
150 class ScriptRunner; 151 class ScriptRunner;
151 class ScriptableDocumentParser; 152 class ScriptableDocumentParser;
152 class ScriptedAnimationController; 153 class ScriptedAnimationController;
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 void setShadowCascadeOrder(ShadowCascadeOrder); 1088 void setShadowCascadeOrder(ShadowCascadeOrder);
1088 1089
1089 bool containsV1ShadowTree() const { return m_shadowCascadeOrder == ShadowCas cadeOrder::ShadowCascadeV1; } 1090 bool containsV1ShadowTree() const { return m_shadowCascadeOrder == ShadowCas cadeOrder::ShadowCascadeV1; }
1090 1091
1091 Element* rootScroller() const; 1092 Element* rootScroller() const;
1092 void setRootScroller(Element*, ExceptionState&); 1093 void setRootScroller(Element*, ExceptionState&);
1093 RootScrollerController* rootScrollerController() const { return m_rootScroll erController.get(); } 1094 RootScrollerController* rootScrollerController() const { return m_rootScroll erController.get(); }
1094 1095
1095 bool isInMainFrame() const; 1096 bool isInMainFrame() const;
1096 1097
1098 PropertyRegistry* propertyRegistry();
1099
1097 protected: 1100 protected:
1098 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1101 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1099 1102
1100 void didUpdateSecurityOrigin() final; 1103 void didUpdateSecurityOrigin() final;
1101 1104
1102 void clearXMLVersion() { m_xmlVersion = String(); } 1105 void clearXMLVersion() { m_xmlVersion = String(); }
1103 1106
1104 virtual Document* cloneDocumentWithoutChildren(); 1107 virtual Document* cloneDocumentWithoutChildren();
1105 1108
1106 bool importContainerNodeChildren(ContainerNode* oldContainerNode, ContainerN ode* newContainerNode, ExceptionState&); 1109 bool importContainerNodeChildren(ContainerNode* oldContainerNode, ContainerN ode* newContainerNode, ExceptionState&);
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 1412
1410 Member<IntersectionObserverController> m_intersectionObserverController; 1413 Member<IntersectionObserverController> m_intersectionObserverController;
1411 Member<NodeIntersectionObserverData> m_intersectionObserverData; 1414 Member<NodeIntersectionObserverData> m_intersectionObserverData;
1412 Member<ResizeObserverController> m_resizeObserverController; 1415 Member<ResizeObserverController> m_resizeObserverController;
1413 1416
1414 int m_nodeCount; 1417 int m_nodeCount;
1415 1418
1416 bool m_mayContainV0Shadow = false; 1419 bool m_mayContainV0Shadow = false;
1417 1420
1418 Member<SnapCoordinator> m_snapCoordinator; 1421 Member<SnapCoordinator> m_snapCoordinator;
1422
1423 Member<PropertyRegistry> m_propertyRegistry;
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
1423 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) const 1428 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type origin) const
1424 { 1429 {
1425 // The different (legacy) meta tags have different priorities based on the t ype 1430 // The different (legacy) meta tags have different priorities based on the t ype
1426 // regardless of which order they appear in the DOM. The priority is given b y the 1431 // regardless of which order they appear in the DOM. The priority is given b y the
1427 // ViewportDescription::Type enum. 1432 // ViewportDescription::Type enum.
1428 return origin >= m_legacyViewportDescription.type; 1433 return origin >= m_legacyViewportDescription.type;
(...skipping 29 matching lines...) Expand all
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

Powered by Google App Engine
This is Rietveld 408576698