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

Issue 1580503003: Eliminate superfluous clearing of weak pointer. (Closed)

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

Description

Eliminate superfluous clearing of weak pointer. BUG=540528 R=dcheng@chromium.org,haraken@chromium.org Committed: https://crrev.com/1151b75ea1f6cc0bb5a3937bf830285f68aa25ac Cr-Commit-Position: refs/heads/master@{#368777}

Patch Set 1 #

Patch Set 2 : Add comment about IntersectionObsevation lifetime. #

Total comments: 2

Patch Set 3 : Eliminate superfluous WeakPtrFactory::clear() #

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

Messages

Total messages: 16 (5 generated)
szager1
4 years, 11 months ago (2016-01-11 21:51:04 UTC) #1
dcheng
Note that m_weakPointerFactory.clear(); in ElementIntersectionObserverData::dispose() is also superfluous, as dispose() is only called in the ...
4 years, 11 months ago (2016-01-11 22:29:42 UTC) #2
haraken
LGTM https://codereview.chromium.org/1580503003/diff/20001/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp File third_party/WebKit/Source/core/dom/IntersectionObservation.cpp (right): https://codereview.chromium.org/1580503003/diff/20001/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp#newcode123 third_party/WebKit/Source/core/dom/IntersectionObservation.cpp:123: // hasn't been cleared. Nit: This comment looks ...
4 years, 11 months ago (2016-01-12 00:01:37 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1580503003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1580503003/20001
4 years, 11 months ago (2016-01-12 00:13:59 UTC) #5
dcheng
My other comment about ElementIntersectionObserverData has not been addressed?
4 years, 11 months ago (2016-01-12 00:19:56 UTC) #6
szager1
On 2016/01/12 00:19:56, dcheng wrote: > My other comment about ElementIntersectionObserverData has not been addressed? ...
4 years, 11 months ago (2016-01-12 00:35:36 UTC) #8
szager1
4 years, 11 months ago (2016-01-12 00:45:00 UTC) #9
dcheng
lgtm, thanks
4 years, 11 months ago (2016-01-12 00:46:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1580503003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1580503003/40001
4 years, 11 months ago (2016-01-12 00:46:31 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-12 02:44:40 UTC) #14
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 02:46:30 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1151b75ea1f6cc0bb5a3937bf830285f68aa25ac
Cr-Commit-Position: refs/heads/master@{#368777}

Powered by Google App Engine
This is Rietveld 408576698