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

Issue 315213006: Oilpan: Remove RefPtrs to Node and its subclasses in core/inspector/ with Oilpan transition types. (Closed)

Created:
6 years, 6 months ago by tkent
Modified:
6 years, 6 months ago
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

Oilpan: Remove RefPtrs to Node and its subclasses in core/inspector/ with Oilpan transition types. InspectorDOMAgent::m_documentNodeToIdMap needs to be switched from a part object to OwnPtr/Persistent because we have some addres comparisons of NodeToIdMap(HeapHashMap) and we have no ways to get a HeapHashMap pointer from a PersistentHeapHashMap. BUG=357163 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175662

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -82 lines) Patch
M Source/core/inspector/DOMEditor.h View 2 chunks +4 lines, -3 lines 0 comments Download
M Source/core/inspector/DOMEditor.cpp View 11 chunks +19 lines, -19 lines 0 comments Download
M Source/core/inspector/InspectorCSSAgent.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorDOMAgent.h View 3 chunks +8 lines, -8 lines 8 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 26 chunks +46 lines, -44 lines 2 comments Download
M Source/core/inspector/InspectorOverlay.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorStyleSheet.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorStyleSheet.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
tkent
Please review this.
6 years, 6 months ago (2014-06-06 06:56:57 UTC) #1
haraken
https://codereview.chromium.org/315213006/diff/1/Source/core/inspector/InspectorDOMAgent.cpp File Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/315213006/diff/1/Source/core/inspector/InspectorDOMAgent.cpp#newcode1044 Source/core/inspector/InspectorDOMAgent.cpp:1044: WillBeHeapVector<RefPtrWillBeMember<Node> >* resultsIt = &m_searchResults.add(*searchId, WillBeHeapVector<RefPtrWillBeMember<Node> >()).storedValue->value; Doesn't nullptr ...
6 years, 6 months ago (2014-06-06 07:17:04 UTC) #2
haraken
6 years, 6 months ago (2014-06-06 07:22:30 UTC) #3
tkent
https://codereview.chromium.org/315213006/diff/1/Source/core/inspector/InspectorDOMAgent.cpp File Source/core/inspector/InspectorDOMAgent.cpp (right): https://codereview.chromium.org/315213006/diff/1/Source/core/inspector/InspectorDOMAgent.cpp#newcode1044 Source/core/inspector/InspectorDOMAgent.cpp:1044: WillBeHeapVector<RefPtrWillBeMember<Node> >* resultsIt = &m_searchResults.add(*searchId, WillBeHeapVector<RefPtrWillBeMember<Node> >()).storedValue->value; On 2014/06/06 ...
6 years, 6 months ago (2014-06-06 07:59:45 UTC) #4
yurys
https://codereview.chromium.org/315213006/diff/1/Source/core/inspector/InspectorDOMAgent.h File Source/core/inspector/InspectorDOMAgent.h (right): https://codereview.chromium.org/315213006/diff/1/Source/core/inspector/InspectorDOMAgent.h#newcode265 Source/core/inspector/InspectorDOMAgent.h:265: WillBePersistentHeapHashMap<int, RawPtrWillBeMember<NodeToIdMap> > m_idToNodesMap; On 2014/06/06 07:59:45, tkent wrote: ...
6 years, 6 months ago (2014-06-06 08:26:01 UTC) #5
tkent
https://codereview.chromium.org/315213006/diff/1/Source/core/inspector/InspectorDOMAgent.h File Source/core/inspector/InspectorDOMAgent.h (right): https://codereview.chromium.org/315213006/diff/1/Source/core/inspector/InspectorDOMAgent.h#newcode265 Source/core/inspector/InspectorDOMAgent.h:265: WillBePersistentHeapHashMap<int, RawPtrWillBeMember<NodeToIdMap> > m_idToNodesMap; On 2014/06/06 07:59:45, tkent wrote: ...
6 years, 6 months ago (2014-06-06 08:26:07 UTC) #6
yurys
On 2014/06/06 08:26:07, tkent wrote: > https://codereview.chromium.org/315213006/diff/1/Source/core/inspector/InspectorDOMAgent.h > File Source/core/inspector/InspectorDOMAgent.h (right): > > https://codereview.chromium.org/315213006/diff/1/Source/core/inspector/InspectorDOMAgent.h#newcode265 > ...
6 years, 6 months ago (2014-06-06 08:31:12 UTC) #7
tkent
> Can we do this in a separate change please? It makes sense. Will do.
6 years, 6 months ago (2014-06-06 08:31:48 UTC) #8
tkent
On 2014/06/06 08:31:48, tkent wrote: > > Can we do this in a separate change ...
6 years, 6 months ago (2014-06-06 08:37:13 UTC) #9
tkent
Now I'm confident that this CL doesn't change Node lifetime.
6 years, 6 months ago (2014-06-06 08:43:12 UTC) #10
haraken
LGTM in terms of oilpan.
6 years, 6 months ago (2014-06-06 08:46:36 UTC) #11
yurys
LGTM. DOM agent will keep Node alive as long as it is bound.
6 years, 6 months ago (2014-06-06 08:51:35 UTC) #12
Mads Ager (chromium)
lgtm2
6 years, 6 months ago (2014-06-06 08:53:23 UTC) #13
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 6 months ago (2014-06-06 12:29:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/315213006/1
6 years, 6 months ago (2014-06-06 12:30:39 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-06-06 12:33:20 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 12:35:35 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/7141)
6 years, 6 months ago (2014-06-06 12:35:37 UTC) #18
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 6 months ago (2014-06-06 12:46:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/315213006/1
6 years, 6 months ago (2014-06-06 12:46:45 UTC) #20
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 12:47:21 UTC) #21
Message was sent while issue was closed.
Change committed as 175662

Powered by Google App Engine
This is Rietveld 408576698