| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 122   // ShadowRoot doesn't support custom callbacks. | 122   // ShadowRoot doesn't support custom callbacks. | 
| 123   DCHECK(!hasCustomStyleCallbacks()); | 123   DCHECK(!hasCustomStyleCallbacks()); | 
| 124 | 124 | 
| 125   StyleSharingDepthScope sharingScope(*this); | 125   StyleSharingDepthScope sharingScope(*this); | 
| 126 | 126 | 
| 127   if (getStyleChangeType() >= SubtreeStyleChange) | 127   if (getStyleChangeType() >= SubtreeStyleChange) | 
| 128     change = Force; | 128     change = Force; | 
| 129 | 129 | 
| 130   // There's no style to update so just calling recalcStyle means we're updated. | 130   // There's no style to update so just calling recalcStyle means we're updated. | 
| 131   clearNeedsStyleRecalc(); | 131   clearNeedsStyleRecalc(); | 
|  | 132   clearNeedsReattachLayoutTree(); | 
| 132 | 133 | 
| 133   recalcDescendantStyles(change); | 134   recalcDescendantStyles(change); | 
| 134   clearChildNeedsStyleRecalc(); | 135   clearChildNeedsStyleRecalc(); | 
| 135 } | 136 } | 
| 136 | 137 | 
| 137 void ShadowRoot::attachLayoutTree(const AttachContext& context) { | 138 void ShadowRoot::attachLayoutTree(const AttachContext& context) { | 
| 138   StyleSharingDepthScope sharingScope(*this); | 139   StyleSharingDepthScope sharingScope(*this); | 
| 139   DocumentFragment::attachLayoutTree(context); | 140   DocumentFragment::attachLayoutTree(context); | 
| 140 } | 141 } | 
| 141 | 142 | 
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 323       ostream << "ShadowRootType::Open"; | 324       ostream << "ShadowRootType::Open"; | 
| 324       break; | 325       break; | 
| 325     case ShadowRootType::Closed: | 326     case ShadowRootType::Closed: | 
| 326       ostream << "ShadowRootType::Closed"; | 327       ostream << "ShadowRootType::Closed"; | 
| 327       break; | 328       break; | 
| 328   } | 329   } | 
| 329   return ostream; | 330   return ostream; | 
| 330 } | 331 } | 
| 331 | 332 | 
| 332 }  // namespace blink | 333 }  // namespace blink | 
| OLD | NEW | 
|---|