Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp

Issue 1899643002: Rename ContainerNode method recalcChildStyle to recalcDescendantStyles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename recalcChildStyle -> recalcDescendantStyles Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698