| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 shadowRoot.setOlderShadowRoot(youngest); | 197 shadowRoot.setOlderShadowRoot(youngest); |
| 198 } | 198 } |
| 199 | 199 |
| 200 void ElementShadow::attach(const Node::AttachContext& context) | 200 void ElementShadow::attach(const Node::AttachContext& context) |
| 201 { | 201 { |
| 202 Node::AttachContext childrenContext(context); | 202 Node::AttachContext childrenContext(context); |
| 203 childrenContext.resolvedStyle = 0; | 203 childrenContext.resolvedStyle = 0; |
| 204 | 204 |
| 205 for (ShadowRoot* root = &youngestShadowRoot(); root; root = root->olderShado
wRoot()) { | 205 for (ShadowRoot* root = &youngestShadowRoot(); root; root = root->olderShado
wRoot()) { |
| 206 if (root->needsAttach()) | 206 if (root->needsAttach()) |
| 207 root->attach(childrenContext); | 207 root->attachLayoutTree(childrenContext); |
| 208 } | 208 } |
| 209 } | 209 } |
| 210 | 210 |
| 211 void ElementShadow::detach(const Node::AttachContext& context) | 211 void ElementShadow::detach(const Node::AttachContext& context) |
| 212 { | 212 { |
| 213 Node::AttachContext childrenContext(context); | 213 Node::AttachContext childrenContext(context); |
| 214 childrenContext.resolvedStyle = 0; | 214 childrenContext.resolvedStyle = 0; |
| 215 | 215 |
| 216 for (ShadowRoot* root = &youngestShadowRoot(); root; root = root->olderShado
wRoot()) | 216 for (ShadowRoot* root = &youngestShadowRoot(); root; root = root->olderShado
wRoot()) |
| 217 root->detach(childrenContext); | 217 root->detach(childrenContext); |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 visitor->trace(m_selectFeatures); | 377 visitor->trace(m_selectFeatures); |
| 378 visitor->trace(m_shadowRoot); | 378 visitor->trace(m_shadowRoot); |
| 379 } | 379 } |
| 380 | 380 |
| 381 DEFINE_TRACE_WRAPPERS(ElementShadow) | 381 DEFINE_TRACE_WRAPPERS(ElementShadow) |
| 382 { | 382 { |
| 383 visitor->traceWrappers(m_shadowRoot); | 383 visitor->traceWrappers(m_shadowRoot); |
| 384 } | 384 } |
| 385 | 385 |
| 386 } // namespace blink | 386 } // namespace blink |
| OLD | NEW |