| 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 DCHECK(!hasCustomStyleCallbacks()); | 133 DCHECK(!hasCustomStyleCallbacks()); |
| 134 | 134 |
| 135 StyleSharingDepthScope sharingScope(*this); | 135 StyleSharingDepthScope sharingScope(*this); |
| 136 | 136 |
| 137 if (getStyleChangeType() >= SubtreeStyleChange) | 137 if (getStyleChangeType() >= SubtreeStyleChange) |
| 138 change = Force; | 138 change = Force; |
| 139 | 139 |
| 140 // There's no style to update so just calling recalcStyle means we're update
d. | 140 // There's no style to update so just calling recalcStyle means we're update
d. |
| 141 clearNeedsStyleRecalc(); | 141 clearNeedsStyleRecalc(); |
| 142 | 142 |
| 143 recalcChildStyle(change); | 143 recalcDescendantStyles(change); |
| 144 clearChildNeedsStyleRecalc(); | 144 clearChildNeedsStyleRecalc(); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void ShadowRoot::attachLayoutTree(const AttachContext& context) | 147 void ShadowRoot::attachLayoutTree(const AttachContext& context) |
| 148 { | 148 { |
| 149 StyleSharingDepthScope sharingScope(*this); | 149 StyleSharingDepthScope sharingScope(*this); |
| 150 DocumentFragment::attachLayoutTree(context); | 150 DocumentFragment::attachLayoutTree(context); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void ShadowRoot::detach(const AttachContext& context) | 153 void ShadowRoot::detach(const AttachContext& context) |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 ostream << "ShadowRootType::Open"; | 335 ostream << "ShadowRootType::Open"; |
| 336 break; | 336 break; |
| 337 case ShadowRootType::Closed: | 337 case ShadowRootType::Closed: |
| 338 ostream << "ShadowRootType::Closed"; | 338 ostream << "ShadowRootType::Closed"; |
| 339 break; | 339 break; |
| 340 } | 340 } |
| 341 return ostream; | 341 return ostream; |
| 342 } | 342 } |
| 343 | 343 |
| 344 } // namespace blink | 344 } // namespace blink |
| OLD | NEW |