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

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

Issue 2164493002: Renamed Node::attach to Node::attachLayoutTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 recalcChildStyle(change);
144 clearChildNeedsStyleRecalc(); 144 clearChildNeedsStyleRecalc();
145 } 145 }
146 146
147 void ShadowRoot::attach(const AttachContext& context) 147 void ShadowRoot::attachLayoutTree(const AttachContext& context)
148 { 148 {
149 StyleSharingDepthScope sharingScope(*this); 149 StyleSharingDepthScope sharingScope(*this);
150 DocumentFragment::attach(context); 150 DocumentFragment::attachLayoutTree(context);
151 } 151 }
152 152
153 void ShadowRoot::detach(const AttachContext& context) 153 void ShadowRoot::detach(const AttachContext& context)
154 { 154 {
155 if (context.clearInvalidation) 155 if (context.clearInvalidation)
156 document().styleEngine().styleInvalidator().clearInvalidation(*this); 156 document().styleEngine().styleInvalidator().clearInvalidation(*this);
157 DocumentFragment::detach(context); 157 DocumentFragment::detach(context);
158 } 158 }
159 159
160 Node::InsertionNotificationRequest ShadowRoot::insertedInto(ContainerNode* inser tionPoint) 160 Node::InsertionNotificationRequest ShadowRoot::insertedInto(ContainerNode* inser tionPoint)
(...skipping 174 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

Powered by Google App Engine
This is Rietveld 408576698