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

Side by Side Diff: Source/core/dom/ElementRareData.h

Issue 24430002: Rename attach and detach to createRenderTree/destroyRenderTree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 } 265 }
266 266
267 inline void ElementRareData::releasePseudoElement(PseudoElement* element) 267 inline void ElementRareData::releasePseudoElement(PseudoElement* element)
268 { 268 {
269 if (!element) 269 if (!element)
270 return; 270 return;
271 271
272 InspectorInstrumentation::pseudoElementDestroyed(element); 272 InspectorInstrumentation::pseudoElementDestroyed(element);
273 273
274 if (element->attached()) 274 if (element->attached())
275 element->detach(); 275 element->destroyRenderTree();
276 276
277 ASSERT(!element->nextSibling()); 277 ASSERT(!element->nextSibling());
278 ASSERT(!element->previousSibling()); 278 ASSERT(!element->previousSibling());
279 279
280 element->document().removeFromTopLayer(element); 280 element->document().removeFromTopLayer(element);
281 element->setParentOrShadowHostNode(0); 281 element->setParentOrShadowHostNode(0);
282 } 282 }
283 283
284 inline void ElementRareData::resetStyleState() 284 inline void ElementRareData::resetStyleState()
285 { 285 {
(...skipping 10 matching lines...) Expand all
296 setChildrenAffectedByFirstChildRules(false); 296 setChildrenAffectedByFirstChildRules(false);
297 setChildrenAffectedByLastChildRules(false); 297 setChildrenAffectedByLastChildRules(false);
298 setChildrenAffectedByDirectAdjacentRules(false); 298 setChildrenAffectedByDirectAdjacentRules(false);
299 setChildrenAffectedByForwardPositionalRules(false); 299 setChildrenAffectedByForwardPositionalRules(false);
300 setChildrenAffectedByBackwardPositionalRules(false); 300 setChildrenAffectedByBackwardPositionalRules(false);
301 } 301 }
302 302
303 } // namespace 303 } // namespace
304 304
305 #endif // ElementRareData_h 305 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.h » ('j') | Source/core/dom/Node.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698