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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 } | 186 } |
187 | 187 |
188 DocumentFragment::removedFrom(insertionPoint); | 188 DocumentFragment::removedFrom(insertionPoint); |
189 } | 189 } |
190 | 190 |
191 void ShadowRoot::childrenChanged(const ChildrenChange& change) | 191 void ShadowRoot::childrenChanged(const ChildrenChange& change) |
192 { | 192 { |
193 ContainerNode::childrenChanged(change); | 193 ContainerNode::childrenChanged(change); |
194 | 194 |
195 if (change.isChildElementChange()) | 195 if (change.isChildElementChange()) |
196 checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingEleme
ntRemoved : SiblingElementInserted, change.siblingBeforeChange, change.siblingAf
terChange); | 196 checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingEleme
ntRemoved : SiblingElementInserted, change.siblingChanged, change.siblingBeforeC
hange, change.siblingAfterChange); |
197 | 197 |
198 if (InsertionPoint* point = shadowInsertionPointOfYoungerShadowRoot()) { | 198 if (InsertionPoint* point = shadowInsertionPointOfYoungerShadowRoot()) { |
199 if (ShadowRoot* root = point->containingShadowRoot()) | 199 if (ShadowRoot* root = point->containingShadowRoot()) |
200 root->owner()->setNeedsDistributionRecalc(); | 200 root->owner()->setNeedsDistributionRecalc(); |
201 } | 201 } |
202 } | 202 } |
203 | 203 |
204 void ShadowRoot::registerScopedHTMLStyleChild() | 204 void ShadowRoot::registerScopedHTMLStyleChild() |
205 { | 205 { |
206 ++m_numberOfStyles; | 206 ++m_numberOfStyles; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 ostream << "ShadowRootType::Open"; | 326 ostream << "ShadowRootType::Open"; |
327 break; | 327 break; |
328 case ShadowRootType::Closed: | 328 case ShadowRootType::Closed: |
329 ostream << "ShadowRootType::Closed"; | 329 ostream << "ShadowRootType::Closed"; |
330 break; | 330 break; |
331 } | 331 } |
332 return ostream; | 332 return ostream; |
333 } | 333 } |
334 | 334 |
335 } // namespace blink | 335 } // namespace blink |
OLD | NEW |