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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 97 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
98 | 98 |
99 private: | 99 private: |
100 ShadowRoot(Document*, ShadowRootType); | 100 ShadowRoot(Document*, ShadowRootType); |
101 virtual ~ShadowRoot(); | 101 virtual ~ShadowRoot(); |
102 | 102 |
| 103 virtual void dispose() OVERRIDE; |
103 virtual bool childTypeAllowed(NodeType) const OVERRIDE; | 104 virtual bool childTypeAllowed(NodeType) const OVERRIDE; |
104 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 105 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; |
105 | 106 |
106 // ShadowRoots should never be cloned. | 107 // ShadowRoots should never be cloned. |
107 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; } | 108 virtual PassRefPtr<Node> cloneNode(bool) OVERRIDE { return 0; } |
108 | 109 |
109 // FIXME: This shouldn't happen. https://bugs.webkit.org/show_bug.cgi?id=888
34 | 110 // FIXME: This shouldn't happen. https://bugs.webkit.org/show_bug.cgi?id=888
34 |
110 bool isOrphan() const { return !host(); } | 111 bool isOrphan() const { return !host(); } |
111 | 112 |
112 ShadowRoot* m_prev; | 113 ShadowRoot* m_prev; |
(...skipping 20 matching lines...) Expand all Loading... |
133 } | 134 } |
134 | 135 |
135 inline ShadowRoot* toShadowRoot(Node* node) | 136 inline ShadowRoot* toShadowRoot(Node* node) |
136 { | 137 { |
137 return const_cast<ShadowRoot*>(toShadowRoot(static_cast<const Node*>(node)))
; | 138 return const_cast<ShadowRoot*>(toShadowRoot(static_cast<const Node*>(node)))
; |
138 } | 139 } |
139 | 140 |
140 } // namespace | 141 } // namespace |
141 | 142 |
142 #endif | 143 #endif |
OLD | NEW |