| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // destructed tree scope in each descendant. | 85 // destructed tree scope in each descendant. |
| 86 removeDetachedChildren(); | 86 removeDetachedChildren(); |
| 87 #endif | 87 #endif |
| 88 | 88 |
| 89 // We must call clearRareData() here since a ShadowRoot class inherits TreeS
cope | 89 // We must call clearRareData() here since a ShadowRoot class inherits TreeS
cope |
| 90 // as well as Node. See a comment on TreeScope.h for the reason. | 90 // as well as Node. See a comment on TreeScope.h for the reason. |
| 91 if (hasRareData()) | 91 if (hasRareData()) |
| 92 clearRareData(); | 92 clearRareData(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 #if !ENABLE(OILPAN) |
| 95 void ShadowRoot::dispose() | 96 void ShadowRoot::dispose() |
| 96 { | 97 { |
| 97 #if !ENABLE(OILPAN) | |
| 98 removeDetachedChildren(); | 98 removeDetachedChildren(); |
| 99 } |
| 99 #endif | 100 #endif |
| 100 } | |
| 101 | 101 |
| 102 ShadowRoot* ShadowRoot::olderShadowRootForBindings() const | 102 ShadowRoot* ShadowRoot::olderShadowRootForBindings() const |
| 103 { | 103 { |
| 104 ShadowRoot* older = olderShadowRoot(); | 104 ShadowRoot* older = olderShadowRoot(); |
| 105 while (older && !older->shouldExposeToBindings()) | 105 while (older && !older->shouldExposeToBindings()) |
| 106 older = older->olderShadowRoot(); | 106 older = older->olderShadowRoot(); |
| 107 ASSERT(!older || older->shouldExposeToBindings()); | 107 ASSERT(!older || older->shouldExposeToBindings()); |
| 108 return older; | 108 return older; |
| 109 } | 109 } |
| 110 | 110 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 void ShadowRoot::trace(Visitor* visitor) | 340 void ShadowRoot::trace(Visitor* visitor) |
| 341 { | 341 { |
| 342 visitor->trace(m_prev); | 342 visitor->trace(m_prev); |
| 343 visitor->trace(m_next); | 343 visitor->trace(m_next); |
| 344 visitor->trace(m_shadowRootRareData); | 344 visitor->trace(m_shadowRootRareData); |
| 345 TreeScope::trace(visitor); | 345 TreeScope::trace(visitor); |
| 346 DocumentFragment::trace(visitor); | 346 DocumentFragment::trace(visitor); |
| 347 } | 347 } |
| 348 | 348 |
| 349 } | 349 } |
| OLD | NEW |