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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 root = insertionPoint->containingShadowRoot(); | 205 root = insertionPoint->containingShadowRoot(); |
206 | 206 |
207 if (root && root->scopeDistribution()) | 207 if (root && root->scopeDistribution()) |
208 root->scopeDistribution()->unregisterElementShadow(); | 208 root->scopeDistribution()->unregisterElementShadow(); |
209 m_registeredWithParentShadowRoot = false; | 209 m_registeredWithParentShadowRoot = false; |
210 } | 210 } |
211 | 211 |
212 DocumentFragment::removedFrom(insertionPoint); | 212 DocumentFragment::removedFrom(insertionPoint); |
213 } | 213 } |
214 | 214 |
215 void ShadowRoot::childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) | 215 void ShadowRoot::childrenChanged(bool changedByParser, const Handle<Node>& befor
eChange, const Handle<Node>& afterChange, int childCountDelta) |
216 { | 216 { |
217 if (isOrphan()) | 217 if (isOrphan()) |
218 return; | 218 return; |
219 | 219 |
220 ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, c
hildCountDelta); | 220 ContainerNode::childrenChanged(changedByParser, beforeChange, afterChange, c
hildCountDelta); |
221 owner()->invalidateDistribution(); | 221 owner()->invalidateDistribution(); |
222 } | 222 } |
223 | 223 |
224 void ShadowRoot::registerScopedHTMLStyleChild() | 224 void ShadowRoot::registerScopedHTMLStyleChild() |
225 { | 225 { |
(...skipping 27 matching lines...) Expand all Loading... |
253 info.addMember(m_scopeDistribution, "scopeDistribution"); | 253 info.addMember(m_scopeDistribution, "scopeDistribution"); |
254 } | 254 } |
255 | 255 |
256 void ShadowRoot::accept(Visitor* visitor) const | 256 void ShadowRoot::accept(Visitor* visitor) const |
257 { | 257 { |
258 DocumentFragment::accept(visitor); | 258 DocumentFragment::accept(visitor); |
259 TreeScope::accept(visitor); | 259 TreeScope::accept(visitor); |
260 } | 260 } |
261 | 261 |
262 } | 262 } |
OLD | NEW |