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

Issue 2939223003: Add DocumentShutdown{Notifier,Observer} (Closed)

Created:
3 years, 6 months ago by rlanday
Modified:
3 years, 6 months ago
Reviewers:
tkent, skobes, yosin_UTC9
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DocumentShutdown{Notifier,Observer} This is a subclass of LifecycleNotifier that classes can use to be notified when the Document they're attached to is shut down. SynchronousMutation{Notifier,Observer} provides the same functionality but is more performance sensitive because it also gets notified when Node::appendChild() and Node::removeChild() are called. The idea to add this came from the code review of this CL: https://codereview.chromium.org/2931443003#msg72 BUG=715365 Review-Url: https://codereview.chromium.org/2939223003 Cr-Commit-Position: refs/heads/master@{#480164} Committed: https://chromium.googlesource.com/chromium/src/+/afd1411d6b0dbb13fc94314c745755fd76bd763b

Patch Set 1 #

Total comments: 6

Patch Set 2 : Respond to yosin's comments #

Patch Set 3 : Add CORE_EXPORT to DocumentShutdownNotifier #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -0 lines) Patch
M third_party/WebKit/Source/core/dom/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.h View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.cpp View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/DocumentShutdownObserver.h View 1 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/DocumentShutdownObserver.cpp View 1 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentTest.cpp View 2 chunks +47 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SynchronousMutationObserver.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (20 generated)
rlanday
3 years, 6 months ago (2017-06-15 23:40:45 UTC) #3
yosin_UTC9
https://codereview.chromium.org/2939223003/diff/1/third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.h File third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.h (right): https://codereview.chromium.org/2939223003/diff/1/third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.h#newcode15 third_party/WebKit/Source/core/dom/DocumentShutdownNotifier.h:15: class DocumentShutdownNotifier Could you add class level comment? It ...
3 years, 6 months ago (2017-06-16 01:06:22 UTC) #8
rlanday
Updated
3 years, 6 months ago (2017-06-16 01:28:58 UTC) #11
yosin_UTC9
lgtm +tken@ for OWNERS review.
3 years, 6 months ago (2017-06-16 01:30:48 UTC) #13
tkent
lgtm
3 years, 6 months ago (2017-06-16 01:35:57 UTC) #14
skobes
lgtm
3 years, 6 months ago (2017-06-16 17:57:35 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2939223003/40001
3 years, 6 months ago (2017-06-16 21:00:29 UTC) #24
commit-bot: I haz the power
3 years, 6 months ago (2017-06-16 21:07:30 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/afd1411d6b0dbb13fc94314c7457...

Powered by Google App Engine
This is Rietveld 408576698