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

Issue 365633003: WeakNodeMap should have an ASSERT for node in WeakNodeMap::put() (Closed)

Created:
6 years, 5 months ago by vivekg_samsung
Modified:
6 years, 5 months ago
Reviewers:
caseq, vivekg, eseidel
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis, eseidel
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

WeakNodeMap should have an ASSERT for node in WeakNodeMap::put() WeakNodeMap holds trace Ids to corresponding node pointers. Having a null value for the node would be logically incorrect and the ASSERT(!m_nodeToValue.contains(node)); would trigger for the subsequent calls if we allow the NULL values. The callsite should ensure that the values for node pointers are indeed non-NULL. BUG=390510 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177370

Patch Set 1 #

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

Messages

Total messages: 8 (0 generated)
vivekg
PTAL, thank you!
6 years, 5 months ago (2014-07-01 12:24:43 UTC) #1
eseidel
Could you explain why in the description? I presume because null is not a valid ...
6 years, 5 months ago (2014-07-02 05:39:26 UTC) #2
vivekg
On 2014/07/02 05:39:26, eseidel wrote: > Could you explain why in the description? I presume ...
6 years, 5 months ago (2014-07-02 05:46:35 UTC) #3
eseidel
lgtm
6 years, 5 months ago (2014-07-02 05:47:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/365633003/1
6 years, 5 months ago (2014-07-02 05:47:56 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 5 months ago (2014-07-02 06:29:15 UTC) #6
caseq
I think the only value ASSERT() adds here is documenting our expectations, since in case ...
6 years, 5 months ago (2014-07-02 10:03:09 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-02 13:02:37 UTC) #8
Message was sent while issue was closed.
Change committed as 177370

Powered by Google App Engine
This is Rietveld 408576698