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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual void unregisterScopedHTMLStyleChild() OVERRIDE; | 87 virtual void unregisterScopedHTMLStyleChild() OVERRIDE; |
88 | 88 |
89 ScopeContentDistribution* scopeDistribution() { return m_scopeDistribution.g
et(); } | 89 ScopeContentDistribution* scopeDistribution() { return m_scopeDistribution.g
et(); } |
90 const ScopeContentDistribution* scopeDistribution() const { return m_scopeDi
stribution.get(); } | 90 const ScopeContentDistribution* scopeDistribution() const { return m_scopeDi
stribution.get(); } |
91 ScopeContentDistribution* ensureScopeDistribution(); | 91 ScopeContentDistribution* ensureScopeDistribution(); |
92 | 92 |
93 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } | 93 ShadowRootType type() const { return static_cast<ShadowRootType>(m_type); } |
94 | 94 |
95 PassRefPtr<Node> cloneNode(bool, ExceptionCode&); | 95 PassRefPtr<Node> cloneNode(bool, ExceptionCode&); |
96 | 96 |
97 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | |
98 | |
99 private: | 97 private: |
100 ShadowRoot(Document*, ShadowRootType); | 98 ShadowRoot(Document*, ShadowRootType); |
101 virtual ~ShadowRoot(); | 99 virtual ~ShadowRoot(); |
102 | 100 |
103 virtual void dispose() OVERRIDE; | 101 virtual void dispose() OVERRIDE; |
104 virtual bool childTypeAllowed(NodeType) const OVERRIDE; | 102 virtual bool childTypeAllowed(NodeType) const OVERRIDE; |
105 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 103 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; |
106 | 104 |
107 // ShadowRoots should never be cloned. | 105 // ShadowRoots should never be cloned. |
108 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; } | 106 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; } |
(...skipping 25 matching lines...) Expand all Loading... |
134 } | 132 } |
135 | 133 |
136 inline ShadowRoot* toShadowRoot(Node* node) | 134 inline ShadowRoot* toShadowRoot(Node* node) |
137 { | 135 { |
138 return const_cast<ShadowRoot*>(toShadowRoot(static_cast<const Node*>(node)))
; | 136 return const_cast<ShadowRoot*>(toShadowRoot(static_cast<const Node*>(node)))
; |
139 } | 137 } |
140 | 138 |
141 } // namespace | 139 } // namespace |
142 | 140 |
143 #endif | 141 #endif |
OLD | NEW |