OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |