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

Issue 1603773002: Use registerWeakMembers to manage observer root. (Closed)

Created:
4 years, 11 months ago by szager1
Modified:
4 years, 11 months ago
Reviewers:
haraken, sof, dcheng
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use registerWeakMembers to manage observer root. Re-landing after revert: https://codereview.chromium.org/1600243002 Also fix IntersectionObserver::dispose to not allocate memory, since it runs during gc. BUG=540528 R=haraken@chromium.org,dcheng@chromium.org Committed: https://crrev.com/1e43e0e845776971d80e264073f936f33532d0e3 Cr-Commit-Position: refs/heads/master@{#370079}

Patch Set 1 #

Total comments: 2

Patch Set 2 : processWeakRoot => clearWeakMembers #

Total comments: 2

Patch Set 3 : nit scratched #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -33 lines) Patch
M third_party/WebKit/Source/core/dom/IntersectionObservation.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObservation.cpp View 1 chunk +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObserver.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/IntersectionObserver.cpp View 1 9 chunks +15 lines, -28 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
szager1
4 years, 11 months ago (2016-01-19 01:07:54 UTC) #1
haraken
LGTM, but I want to have Sigbjorn take another look. https://codereview.chromium.org/1603773002/diff/1/third_party/WebKit/Source/core/dom/IntersectionObserver.h File third_party/WebKit/Source/core/dom/IntersectionObserver.h (right): https://codereview.chromium.org/1603773002/diff/1/third_party/WebKit/Source/core/dom/IntersectionObserver.h#newcode59 ...
4 years, 11 months ago (2016-01-19 02:49:21 UTC) #3
szager1
https://codereview.chromium.org/1603773002/diff/1/third_party/WebKit/Source/core/dom/IntersectionObserver.h File third_party/WebKit/Source/core/dom/IntersectionObserver.h (right): https://codereview.chromium.org/1603773002/diff/1/third_party/WebKit/Source/core/dom/IntersectionObserver.h#newcode59 third_party/WebKit/Source/core/dom/IntersectionObserver.h:59: void processWeakRoot(Visitor*); On 2016/01/19 02:49:21, haraken wrote: > > ...
4 years, 11 months ago (2016-01-19 03:07:52 UTC) #4
sof
lgtm https://codereview.chromium.org/1603773002/diff/20001/third_party/WebKit/Source/core/dom/IntersectionObservation.h File third_party/WebKit/Source/core/dom/IntersectionObservation.h (right): https://codereview.chromium.org/1603773002/diff/20001/third_party/WebKit/Source/core/dom/IntersectionObservation.h#newcode38 third_party/WebKit/Source/core/dom/IntersectionObservation.h:38: nit: remove empty line.
4 years, 11 months ago (2016-01-19 06:10:54 UTC) #5
szager1
https://codereview.chromium.org/1603773002/diff/20001/third_party/WebKit/Source/core/dom/IntersectionObservation.h File third_party/WebKit/Source/core/dom/IntersectionObservation.h (right): https://codereview.chromium.org/1603773002/diff/20001/third_party/WebKit/Source/core/dom/IntersectionObservation.h#newcode38 third_party/WebKit/Source/core/dom/IntersectionObservation.h:38: On 2016/01/19 06:10:54, sof wrote: > nit: remove empty ...
4 years, 11 months ago (2016-01-19 06:35:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1603773002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1603773002/40001
4 years, 11 months ago (2016-01-19 06:35:58 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-19 07:50:20 UTC) #10
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 07:51:29 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1e43e0e845776971d80e264073f936f33532d0e3
Cr-Commit-Position: refs/heads/master@{#370079}

Powered by Google App Engine
This is Rietveld 408576698