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

Issue 236653002: Oilpan: move mutation observers to the Oilpan heap. (Closed)

Created:
6 years, 8 months ago by sof
Modified:
6 years, 8 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, rune+blink, Nils Barth (inactive), caseq+blink_chromium.org, arv+blink, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, devtools-reviews_chromium.org, rwlbuis, loislo+blink_chromium.org, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, darktears, Nate Chapin, jsbell+bindings_chromium.org, alph+blink_chromium.org, kouhei+bindings_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, ed+blinkwatch_opera.com, Inactive, watchdog-blink-watchlist_google.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Tidy up disposal #

Total comments: 15

Patch Set 3 : Have MutationObserver keep weak references to its registrations #

Total comments: 23

Patch Set 4 : Adjust dispose() methods a bit #

Total comments: 20

Patch Set 5 : Rebased + explicitly dispose() mutation observer registrations always (non-Oilpan also.) #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -104 lines) Patch
M Source/bindings/v8/V8MutationCallback.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8MutationCallback.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/custom/V8MutationObserverCustom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/PropertySetCSSStyleDeclaration.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/CharacterData.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/ChildListMutationScope.h View 4 chunks +6 lines, -4 lines 0 comments Download
M Source/core/dom/ChildListMutationScope.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/ElementRareData.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/dom/MutationCallback.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/dom/MutationObserver.h View 3 4 4 chunks +9 lines, -6 lines 0 comments Download
M Source/core/dom/MutationObserver.cpp View 1 2 3 4 11 chunks +33 lines, -16 lines 0 comments Download
M Source/core/dom/MutationObserver.idl View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/dom/MutationObserverInterestGroup.h View 4 chunks +11 lines, -8 lines 0 comments Download
M Source/core/dom/MutationObserverInterestGroup.cpp View 3 chunks +14 lines, -9 lines 0 comments Download
M Source/core/dom/MutationObserverRegistration.h View 3 chunks +8 lines, -3 lines 0 comments Download
M Source/core/dom/MutationObserverRegistration.cpp View 1 2 3 4 3 chunks +14 lines, -2 lines 0 comments Download
M Source/core/dom/MutationRecord.h View 3 chunks +9 lines, -5 lines 0 comments Download
M Source/core/dom/MutationRecord.cpp View 3 chunks +16 lines, -10 lines 0 comments Download
M Source/core/dom/MutationRecord.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Node.h View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 4 11 chunks +26 lines, -18 lines 0 comments Download
M Source/core/dom/NodeRareData.h View 1 2 3 4 chunks +23 lines, -7 lines 3 comments Download
M Source/core/dom/NodeRareData.cpp View 1 2 3 4 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 40 (0 generated)
sof
Please take a look. This is arguably a stopping point to full Oilpan support in ...
6 years, 8 months ago (2014-04-14 10:36:32 UTC) #1
haraken
First round of comments :) https://codereview.chromium.org/236653002/diff/20001/Source/core/dom/MutationObserver.cpp File Source/core/dom/MutationObserver.cpp (right): https://codereview.chromium.org/236653002/diff/20001/Source/core/dom/MutationObserver.cpp#newcode178 Source/core/dom/MutationObserver.cpp:178: return *activeObservers.get(); You can ...
6 years, 8 months ago (2014-04-15 02:33:24 UTC) #2
sof
Great feedback, thanks. Some issues remain, there's at least one lifetime dependency that I haven't ...
6 years, 8 months ago (2014-04-15 22:00:52 UTC) #3
sof
On 2014/04/15 22:00:52, sof wrote: > Great feedback, thanks. Some issues remain, there's at least ...
6 years, 8 months ago (2014-04-16 06:48:38 UTC) #4
haraken
6 years, 8 months ago (2014-04-16 07:22:27 UTC) #5
haraken
On 2014/04/16 06:48:38, sof wrote: > On 2014/04/15 22:00:52, sof wrote: > > Great feedback, ...
6 years, 8 months ago (2014-04-16 07:22:53 UTC) #6
haraken
Sorry for the review delay. I'm happy to take another close look once the on-going ...
6 years, 8 months ago (2014-04-16 07:23:57 UTC) #7
Erik Corry
https://codereview.chromium.org/236653002/diff/20001/Source/core/dom/MutationObserver.h File Source/core/dom/MutationObserver.h (right): https://codereview.chromium.org/236653002/diff/20001/Source/core/dom/MutationObserver.h#newcode102 Source/core/dom/MutationObserver.h:102: WillBeHeapHashSet<RawPtrWillBeMember<MutationObserverRegistration> > m_registrations; On 2014/04/15 22:00:53, sof wrote: > ...
6 years, 8 months ago (2014-04-16 08:02:51 UTC) #8
Erik Corry
Ah, oops, I didn't see you already uploaded a version that implemented my suggestions!
6 years, 8 months ago (2014-04-16 08:04:06 UTC) #9
Erik Corry
Please read these two comments in the reverse order (relative to each other, don't read ...
6 years, 8 months ago (2014-04-16 08:20:48 UTC) #10
sof
Thanks Erik, I hope my followup comments makes more sense when read LTR rather than ...
6 years, 8 months ago (2014-04-16 15:29:46 UTC) #11
sof
On 2014/04/16 07:23:57, haraken wrote: > Sorry for the review delay. I'm happy to take ...
6 years, 8 months ago (2014-04-16 15:58:19 UTC) #12
sof
I believe this is ready, but if it helps for anyone having a look, a ...
6 years, 8 months ago (2014-04-16 19:08:49 UTC) #13
haraken
https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp File Source/core/dom/MutationObserverRegistration.cpp (right): https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp#newcode67 Source/core/dom/MutationObserverRegistration.cpp:67: dispose(); Can you restructure the code so that dispose() ...
6 years, 8 months ago (2014-04-17 05:37:11 UTC) #14
haraken
On 2014/04/16 15:58:19, sof wrote: > On 2014/04/16 07:23:57, haraken wrote: > > Sorry for ...
6 years, 8 months ago (2014-04-17 05:43:53 UTC) #15
sof
The clarifying questions are really helpful in firming up understanding, many thanks. Comments below. https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp ...
6 years, 8 months ago (2014-04-17 12:41:54 UTC) #16
haraken
https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp File Source/core/dom/MutationObserverRegistration.cpp (right): https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp#newcode72 Source/core/dom/MutationObserverRegistration.cpp:72: clearTransientRegistrations(); On 2014/04/17 12:41:55, sof wrote: > On 2014/04/17 ...
6 years, 8 months ago (2014-04-17 13:20:54 UTC) #17
sof
https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp File Source/core/dom/MutationObserverRegistration.cpp (right): https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp#newcode72 Source/core/dom/MutationObserverRegistration.cpp:72: clearTransientRegistrations(); On 2014/04/17 13:20:54, haraken wrote: > On 2014/04/17 ...
6 years, 8 months ago (2014-04-17 13:47:30 UTC) #18
haraken
https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp File Source/core/dom/MutationObserverRegistration.cpp (right): https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp#newcode72 Source/core/dom/MutationObserverRegistration.cpp:72: clearTransientRegistrations(); On 2014/04/17 13:47:31, sof wrote: > On 2014/04/17 ...
6 years, 8 months ago (2014-04-17 14:01:36 UTC) #19
sof
https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp File Source/core/dom/MutationObserverRegistration.cpp (right): https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp#newcode72 Source/core/dom/MutationObserverRegistration.cpp:72: clearTransientRegistrations(); On 2014/04/17 14:01:37, haraken wrote: > On 2014/04/17 ...
6 years, 8 months ago (2014-04-17 15:54:36 UTC) #20
haraken
If this CL is ready for full review, I'm happy to take another look.
6 years, 8 months ago (2014-04-21 04:59:17 UTC) #21
sof
On 2014/04/21 04:59:17, haraken wrote: > If this CL is ready for full review, I'm ...
6 years, 8 months ago (2014-04-21 05:41:05 UTC) #22
haraken
Double-checked, thanks for working on the complicated CL. Here are the final round of comments. ...
6 years, 8 months ago (2014-04-21 06:00:33 UTC) #23
sof
https://codereview.chromium.org/236653002/diff/60001/Source/core/dom/MutationObserver.cpp File Source/core/dom/MutationObserver.cpp (right): https://codereview.chromium.org/236653002/diff/60001/Source/core/dom/MutationObserver.cpp#newcode156 Source/core/dom/MutationObserver.cpp:156: for (WillBeHeapHashSet<RawPtrWillBeWeakMember<MutationObserverRegistration> >::iterator iter = registrations.begin(); iter != registrations.end(); ...
6 years, 8 months ago (2014-04-21 07:34:04 UTC) #24
haraken
https://codereview.chromium.org/236653002/diff/60001/Source/core/dom/MutationObserver.cpp File Source/core/dom/MutationObserver.cpp (right): https://codereview.chromium.org/236653002/diff/60001/Source/core/dom/MutationObserver.cpp#newcode156 Source/core/dom/MutationObserver.cpp:156: for (WillBeHeapHashSet<RawPtrWillBeWeakMember<MutationObserverRegistration> >::iterator iter = registrations.begin(); iter != registrations.end(); ...
6 years, 8 months ago (2014-04-21 07:41:30 UTC) #25
sof
https://codereview.chromium.org/236653002/diff/60001/Source/core/dom/MutationObserver.h File Source/core/dom/MutationObserver.h (right): https://codereview.chromium.org/236653002/diff/60001/Source/core/dom/MutationObserver.h#newcode102 Source/core/dom/MutationObserver.h:102: WillBeHeapHashSet<RawPtrWillBeWeakMember<MutationObserverRegistration> > m_registrations; On 2014/04/21 07:41:31, haraken wrote: > ...
6 years, 8 months ago (2014-04-21 07:43:50 UTC) #26
haraken
https://codereview.chromium.org/236653002/diff/60001/Source/core/dom/MutationObserver.h File Source/core/dom/MutationObserver.h (right): https://codereview.chromium.org/236653002/diff/60001/Source/core/dom/MutationObserver.h#newcode102 Source/core/dom/MutationObserver.h:102: WillBeHeapHashSet<RawPtrWillBeWeakMember<MutationObserverRegistration> > m_registrations; On 2014/04/21 07:43:51, sof wrote: > ...
6 years, 8 months ago (2014-04-21 07:45:45 UTC) #27
sof
Thanks again for the intrepid reviewing. https://codereview.chromium.org/236653002/diff/60001/Source/core/dom/MutationObserver.h File Source/core/dom/MutationObserver.h (right): https://codereview.chromium.org/236653002/diff/60001/Source/core/dom/MutationObserver.h#newcode102 Source/core/dom/MutationObserver.h:102: WillBeHeapHashSet<RawPtrWillBeWeakMember<MutationObserverRegistration> > m_registrations; ...
6 years, 8 months ago (2014-04-21 12:45:15 UTC) #28
haraken
Thanks for being persistent to sometimes confusing comments from me! LGTM. I want to have ...
6 years, 8 months ago (2014-04-21 13:04:43 UTC) #29
Erik Corry
LGTM https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp File Source/core/dom/MutationObserverRegistration.cpp (right): https://codereview.chromium.org/236653002/diff/40001/Source/core/dom/MutationObserverRegistration.cpp#newcode72 Source/core/dom/MutationObserverRegistration.cpp:72: clearTransientRegistrations(); On 2014/04/16 15:29:47, sof wrote: > On ...
6 years, 8 months ago (2014-04-22 12:46:53 UTC) #30
haraken
https://codereview.chromium.org/236653002/diff/80001/Source/core/dom/NodeRareData.h File Source/core/dom/NodeRareData.h (right): https://codereview.chromium.org/236653002/diff/80001/Source/core/dom/NodeRareData.h#newcode218 Source/core/dom/NodeRareData.h:218: WillBeHeapHashSet<RawPtrWillBeMember<MutationObserverRegistration> > transientRegistry; On 2014/04/22 12:46:55, Erik Corry wrote: ...
6 years, 8 months ago (2014-04-22 13:03:06 UTC) #31
sof
https://codereview.chromium.org/236653002/diff/80001/Source/core/dom/NodeRareData.h File Source/core/dom/NodeRareData.h (right): https://codereview.chromium.org/236653002/diff/80001/Source/core/dom/NodeRareData.h#newcode218 Source/core/dom/NodeRareData.h:218: WillBeHeapHashSet<RawPtrWillBeMember<MutationObserverRegistration> > transientRegistry; On 2014/04/22 12:46:55, Erik Corry wrote: ...
6 years, 8 months ago (2014-04-22 13:05:28 UTC) #32
Erik Corry
On 2014/04/22 13:05:28, sof wrote: > https://codereview.chromium.org/236653002/diff/80001/Source/core/dom/NodeRareData.h > File Source/core/dom/NodeRareData.h (right): > > https://codereview.chromium.org/236653002/diff/80001/Source/core/dom/NodeRareData.h#newcode218 > ...
6 years, 8 months ago (2014-04-22 13:21:53 UTC) #33
Erik Corry
On 2014/04/22 13:21:53, Erik Corry wrote: > On 2014/04/22 13:05:28, sof wrote: > > > ...
6 years, 8 months ago (2014-04-22 13:29:25 UTC) #34
sof
On 2014/04/22 13:29:25, Erik Corry wrote: > On 2014/04/22 13:21:53, Erik Corry wrote: > > ...
6 years, 8 months ago (2014-04-22 13:39:39 UTC) #35
Erik Corry
On 2014/04/22 13:39:39, sof wrote: > On 2014/04/22 13:29:25, Erik Corry wrote: > > On ...
6 years, 8 months ago (2014-04-22 13:41:14 UTC) #36
sof
Going ahead with this one now; thanks for the careful reviewing of all details.
6 years, 8 months ago (2014-04-22 15:58:03 UTC) #37
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 8 months ago (2014-04-22 15:58:11 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/236653002/80001
6 years, 8 months ago (2014-04-22 15:58:22 UTC) #39
commit-bot: I haz the power
6 years, 8 months ago (2014-04-22 16:09:28 UTC) #40
Message was sent while issue was closed.
Change committed as 172148

Powered by Google App Engine
This is Rietveld 408576698