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

Issue 17512006: Remove unused attachChildrenLazily method and make attach/detachChildren private (Closed)

Created:
7 years, 6 months ago by esprehn
Modified:
7 years, 6 months ago
Reviewers:
Hajime Morrita, ojan
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Remove unused attachChildrenLazily method and make attach/detachChildren private No one should be manually trying to attach or detach all their children so there's no reason for these methods to be public. In doing this I realized that attachChildrenLazily is not used and can be removed. I also realized that we were detaching all our children before the ShadowRoots which is sad since the InsertionPoints will call detach() on them as well, and then when we call ContainerNode::detach at the end of Element::detach we'll go detach them again! This patch makes it so we only go through and detach them twice instead of three times. In the future we should figure out a way to only do this once. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152841

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -27 lines) Patch
M Source/core/dom/ContainerNode.h View 3 chunks +3 lines, -23 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
esprehn
7 years, 6 months ago (2013-06-20 23:31:03 UTC) #1
Hajime Morrita
lgtm. There was a reason why we did this. But I don't remember what it ...
7 years, 6 months ago (2013-06-21 00:10:39 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/esprehn@chromium.org/17512006/1
7 years, 6 months ago (2013-06-21 00:10:48 UTC) #3
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 01:20:42 UTC) #4
Message was sent while issue was closed.
Change committed as 152841

Powered by Google App Engine
This is Rietveld 408576698