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

Issue 965393002: Simplify ContextLifecycleNotifier's handling of ActiveDOMObjects. (Closed)

Created:
5 years, 9 months ago by sof
Modified:
5 years, 9 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Simplify ContextLifecycleNotifier's handling of ActiveDOMObjects. No longer keep a separate set of ActiveDOMObject observers, but iterate over the notifier set instead. Also adjust the visibility of various helper methods to what they need to be. R=haraken BUG=462949 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191177

Patch Set 1 #

Patch Set 2 : simplify ContextLifecycleNotifier #

Total comments: 2

Patch Set 3 : manually count the ActiveDOMObjects instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -49 lines) Patch
M Source/core/dom/ContextLifecycleNotifier.h View 1 2 2 chunks +4 lines, -7 lines 0 comments Download
M Source/core/dom/ContextLifecycleNotifier.cpp View 1 2 3 chunks +66 lines, -34 lines 0 comments Download
M Source/core/dom/ExecutionContext.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/ExecutionContext.cpp View 1 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/frame/DOMWindowLifecycleNotifier.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
sof
Please take a look. I had a closer look at hasPendingActivity() usage, and it is ...
5 years, 9 months ago (2015-03-02 15:49:25 UTC) #2
haraken
LGTM (I still think that hasPendingActivity should belong to ScriptWrappable, but that's a separate discussion. ...
5 years, 9 months ago (2015-03-03 04:46:21 UTC) #3
sof
https://codereview.chromium.org/965393002/diff/20001/Source/core/dom/ContextLifecycleNotifier.h File Source/core/dom/ContextLifecycleNotifier.h (right): https://codereview.chromium.org/965393002/diff/20001/Source/core/dom/ContextLifecycleNotifier.h#newcode49 Source/core/dom/ContextLifecycleNotifier.h:49: unsigned activeDOMObjectCount() const { return m_activeDOMObjectCount; } On 2015/03/03 ...
5 years, 9 months ago (2015-03-03 07:26:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/965393002/40001
5 years, 9 months ago (2015-03-03 07:33:01 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=191177
5 years, 9 months ago (2015-03-03 08:20:14 UTC) #8
hiroshige
This CL causes crash: https://crbug.com/464285 Could you take a look?
5 years, 9 months ago (2015-03-05 08:54:09 UTC) #9
sof
5 years, 9 months ago (2015-03-05 09:14:17 UTC) #10
Message was sent while issue was closed.
On 2015/03/05 08:54:09, hiroshige wrote:
> This CL causes crash: https://crbug.com/464285
> Could you take a look?

Thanks, will do. I think I see the weakness, but have to locally verify first.

Powered by Google App Engine
This is Rietveld 408576698