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

Issue 1309083002: Accurately update Document node counts on disposing shadow roots. (Closed)

Created:
5 years, 4 months ago by sof
Modified:
5 years, 4 months ago
Reviewers:
haraken, keishi
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Accurately update Document node counts on disposing shadow roots. When cleaning out a ShadowRoot's child Nodes as part of its disposal, the child Nodes will in some cases not have other references than the shadow root. If so, the Node will be summarily deleted without being notified of it being removed from its DOM tree first. By calling its removedFrom(). As a Document need to maintain an accurate attached node count, arrange for the otherwise-unreferenced Node's document to be decremented. R= BUG=521520 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201044

Patch Set 1 #

Patch Set 2 : disable counting when in a disposed state #

Total comments: 2

Patch Set 3 : Adjust document node count in addChildNodesToDeletionQueue() #

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

Messages

Total messages: 13 (2 generated)
sof
please take a look.
5 years, 4 months ago (2015-08-22 18:54:20 UTC) #2
haraken
https://codereview.chromium.org/1309083002/diff/20001/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/1309083002/diff/20001/Source/core/dom/Document.h#newcode1038 Source/core/dom/Document.h:1038: if (isDisposed()) I'm just curious but is it possible ...
5 years, 4 months ago (2015-08-23 01:49:44 UTC) #3
sof
https://codereview.chromium.org/1309083002/diff/20001/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/1309083002/diff/20001/Source/core/dom/Document.h#newcode1038 Source/core/dom/Document.h:1038: if (isDisposed()) On 2015/08/23 01:49:44, haraken wrote: > > ...
5 years, 4 months ago (2015-08-23 05:36:54 UTC) #4
haraken
On 2015/08/23 05:36:54, sof wrote: > https://codereview.chromium.org/1309083002/diff/20001/Source/core/dom/Document.h > File Source/core/dom/Document.h (right): > > https://codereview.chromium.org/1309083002/diff/20001/Source/core/dom/Document.h#newcode1038 > ...
5 years, 4 months ago (2015-08-23 13:17:42 UTC) #5
sof
On 2015/08/23 13:17:42, haraken wrote: > On 2015/08/23 05:36:54, sof wrote: > > > https://codereview.chromium.org/1309083002/diff/20001/Source/core/dom/Document.h ...
5 years, 4 months ago (2015-08-23 13:34:18 UTC) #6
haraken
On 2015/08/23 13:34:18, sof wrote: > On 2015/08/23 13:17:42, haraken wrote: > > On 2015/08/23 ...
5 years, 4 months ago (2015-08-23 13:42:02 UTC) #7
sof
On 2015/08/23 13:42:02, haraken wrote: > On 2015/08/23 13:34:18, sof wrote: > > On 2015/08/23 ...
5 years, 4 months ago (2015-08-23 16:49:37 UTC) #8
sof
On 2015/08/23 16:49:37, sof wrote: > ... > > Ah, the clearing of m_nodeCount in ...
5 years, 4 months ago (2015-08-23 18:18:57 UTC) #9
haraken
On 2015/08/23 18:18:57, sof wrote: > On 2015/08/23 16:49:37, sof wrote: > > > ...
5 years, 4 months ago (2015-08-23 23:30:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309083002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309083002/40001
5 years, 4 months ago (2015-08-23 23:30:26 UTC) #12
commit-bot: I haz the power
5 years, 4 months ago (2015-08-23 23:34:30 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201044

Powered by Google App Engine
This is Rietveld 408576698