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

Side by Side Diff: Source/core/dom/ShadowRoot.h

Issue 106423003: [oilpan] Rename visit to mark. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Fix typo Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ScopeContentDistribution* scopeDistribution() { return m_scopeDistribution; } 91 ScopeContentDistribution* scopeDistribution() { return m_scopeDistribution; }
92 const ScopeContentDistribution* scopeDistribution() const { return m_scopeDi stribution; } 92 const ScopeContentDistribution* scopeDistribution() const { return m_scopeDi stribution; }
93 ScopeContentDistribution* ensureScopeDistribution(); 93 ScopeContentDistribution* ensureScopeDistribution();
94 94
95 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } 95 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); }
96 96
97 Node* cloneNode(bool, ExceptionCode&); 97 Node* cloneNode(bool, ExceptionCode&);
98 98
99 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 99 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
100 100
101 virtual void visitWith(Visitor*) const OVERRIDE; 101 virtual void adjustAndMark(Visitor*) const OVERRIDE;
102 virtual void trace(Visitor*) OVERRIDE; 102 virtual void trace(Visitor*) OVERRIDE;
103 103
104 private: 104 private:
105 ShadowRoot(Document*, ShadowRootType); 105 ShadowRoot(Document*, ShadowRootType);
106 virtual ~ShadowRoot(); 106 virtual ~ShadowRoot();
107 107
108 virtual bool childTypeAllowed(NodeType) const OVERRIDE; 108 virtual bool childTypeAllowed(NodeType) const OVERRIDE;
109 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE; 109 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE;
110 110
111 // ShadowRoots should never be cloned. 111 // ShadowRoots should never be cloned.
(...skipping 26 matching lines...) Expand all
138 struct CastSecurityTrait<ShadowRoot, Node> { 138 struct CastSecurityTrait<ShadowRoot, Node> {
139 static inline void checkCastSecurity(Node* node) 139 static inline void checkCastSecurity(Node* node)
140 { 140 {
141 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isShadowRoot()); 141 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isShadowRoot());
142 } 142 }
143 }; 143 };
144 144
145 } // namespace 145 } // namespace
146 146
147 #endif 147 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698