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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 replaceChildrenWithFragment(this, fragment.release(), exceptionState); | 133 replaceChildrenWithFragment(this, fragment.release(), exceptionState); |
134 } | 134 } |
135 | 135 |
136 void ShadowRoot::recalcStyle(StyleRecalcChange change) | 136 void ShadowRoot::recalcStyle(StyleRecalcChange change) |
137 { | 137 { |
138 // ShadowRoot doesn't support custom callbacks. | 138 // ShadowRoot doesn't support custom callbacks. |
139 ASSERT(!hasCustomStyleCallbacks()); | 139 ASSERT(!hasCustomStyleCallbacks()); |
140 | 140 |
141 StyleSharingDepthScope sharingScope(*this); | 141 StyleSharingDepthScope sharingScope(*this); |
142 | 142 |
143 if (styleChangeType() >= SubtreeStyleChange) | 143 if (getStyleChangeType() >= SubtreeStyleChange) |
144 change = Force; | 144 change = Force; |
145 | 145 |
146 // There's no style to update so just calling recalcStyle means we're update
d. | 146 // There's no style to update so just calling recalcStyle means we're update
d. |
147 clearNeedsStyleRecalc(); | 147 clearNeedsStyleRecalc(); |
148 | 148 |
149 recalcChildStyle(change); | 149 recalcChildStyle(change); |
150 clearChildNeedsStyleRecalc(); | 150 clearChildNeedsStyleRecalc(); |
151 } | 151 } |
152 | 152 |
153 void ShadowRoot::attach(const AttachContext& context) | 153 void ShadowRoot::attach(const AttachContext& context) |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 DEFINE_TRACE(ShadowRoot) | 370 DEFINE_TRACE(ShadowRoot) |
371 { | 371 { |
372 visitor->trace(m_prev); | 372 visitor->trace(m_prev); |
373 visitor->trace(m_next); | 373 visitor->trace(m_next); |
374 visitor->trace(m_shadowRootRareData); | 374 visitor->trace(m_shadowRootRareData); |
375 TreeScope::trace(visitor); | 375 TreeScope::trace(visitor); |
376 DocumentFragment::trace(visitor); | 376 DocumentFragment::trace(visitor); |
377 } | 377 } |
378 | 378 |
379 } // namespace blink | 379 } // namespace blink |
OLD | NEW |