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

Issue 552733003: Oilpan: make DOMWindowProperty a GC mixin. (Closed)

Created:
6 years, 3 months ago by sof
Modified:
6 years, 3 months ago
CC:
blink-reviews, tzik, apavlov+blink_chromium.org, rune+blink, jsbell+serviceworker_chromium.org, jsbell+idb_chromium.org, blink-reviews-css, dglazkov+blink, gavinp+loader_chromium.org, rwlbuis, dgrogan, timvolodine, nhiroki, darktears, Nate Chapin, michaeln, serviceworker-reviews, falken, mvanouwerkerk+watch_chromium.org, ed+blinkwatch_opera.com, kinuko+serviceworker, cmumford, horo+watch_chromium.org, kinuko+fileapi
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Oilpan: make DOMWindowProperty a GC mixin. As all objects deriving from DOMWindowProperty are on the heap, make it a GC mixin and have it trace its Window reference. The registered DOMWindowProperty instances on a LocalDOMWindow live at least as long it. The benefit is that we can remove its destructor. Deriving objects can as a consequence remove their empty finalizers. R=ager@chromium.org, haraken@chromium.org BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181717

Patch Set 1 #

Patch Set 2 : No need to reset LocalDOMWindow during Oilpan finalization #

Patch Set 3 : Detach ApplicationCacheHost during (Oilpan) finalization #

Total comments: 5

Patch Set 4 : Move ApplicationCacheHost to the heap #

Patch Set 5 : Adjust ~ApplicationCache assert #

Total comments: 2

Patch Set 6 : Pacify GC plugin wrt LocalDOMWindow::trace() #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -135 lines) Patch
M Source/core/css/StyleMedia.h View 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/css/StyleMedia.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/editing/DOMSelection.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/editing/DOMSelection.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/frame/BarProp.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/frame/BarProp.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/frame/Console.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/frame/Console.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/frame/DOMWindowProperty.h View 2 chunks +8 lines, -2 lines 6 comments Download
M Source/core/frame/DOMWindowProperty.cpp View 4 chunks +12 lines, -5 lines 0 comments Download
M Source/core/frame/History.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/frame/History.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.h View 1 2 chunks +1 line, -2 lines 1 comment Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 7 chunks +7 lines, -8 lines 0 comments Download
M Source/core/frame/Location.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/frame/Location.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/frame/Navigator.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/Navigator.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/Screen.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/Screen.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/DocumentLoader.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/loader/appcache/ApplicationCache.h View 1 2 3 4 2 chunks +8 lines, -1 line 2 comments Download
M Source/core/loader/appcache/ApplicationCache.cpp View 3 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/loader/appcache/ApplicationCacheHost.h View 1 2 3 6 chunks +21 lines, -16 lines 4 comments Download
M Source/core/loader/appcache/ApplicationCacheHost.cpp View 1 2 3 7 chunks +16 lines, -11 lines 0 comments Download
M Source/core/plugins/DOMMimeTypeArray.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/plugins/DOMMimeTypeArray.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/plugins/DOMPluginArray.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/plugins/DOMPluginArray.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/storage/Storage.h View 2 chunks +4 lines, -3 lines 0 comments Download
M Source/core/storage/Storage.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/core/timing/Performance.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/timing/PerformanceNavigation.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/timing/PerformanceNavigation.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/timing/PerformanceTiming.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/timing/PerformanceTiming.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/modules/credentialmanager/NavigatorCredentials.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/credentialmanager/NavigatorCredentials.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/crypto/DOMWindowCrypto.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/crypto/DOMWindowCrypto.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/donottrack/NavigatorDoNotTrack.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/donottrack/NavigatorDoNotTrack.cpp View 1 chunk +5 lines, -1 line 0 comments Download
M Source/modules/gamepad/NavigatorGamepad.cpp View 2 chunks +4 lines, -0 lines 2 comments Download
M Source/modules/geolocation/NavigatorGeolocation.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/geolocation/NavigatorGeolocation.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/indexeddb/DOMWindowIndexedDatabase.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M Source/modules/netinfo/NavigatorNetworkInformation.h View 1 chunk +2 lines, -3 lines 0 comments Download
M Source/modules/netinfo/NavigatorNetworkInformation.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/quota/DOMWindowQuota.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/quota/DOMWindowQuota.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/quota/NavigatorStorageQuota.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/quota/NavigatorStorageQuota.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/serviceworkers/NavigatorServiceWorker.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/NavigatorServiceWorker.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/speech/DOMWindowSpeechSynthesis.h View 1 chunk +2 lines, -3 lines 0 comments Download
M Source/modules/speech/DOMWindowSpeechSynthesis.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/webmidi/NavigatorWebMIDI.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/webmidi/NavigatorWebMIDI.cpp View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 23 (6 generated)
sof
Please take a look. Split out from https://codereview.chromium.org/517043003/
6 years, 3 months ago (2014-09-09 11:41:16 UTC) #2
Mads Ager (chromium)
Looks good overall. One question in connection with ApplicationCache. https://codereview.chromium.org/552733003/diff/40001/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/552733003/diff/40001/Source/core/frame/LocalDOMWindow.cpp#newcode589 Source/core/frame/LocalDOMWindow.cpp:589: ...
6 years, 3 months ago (2014-09-09 12:09:45 UTC) #4
sof
https://codereview.chromium.org/552733003/diff/40001/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/552733003/diff/40001/Source/core/frame/LocalDOMWindow.cpp#newcode1897 Source/core/frame/LocalDOMWindow.cpp:1897: #if ENABLE(OILPAN) On 2014/09/09 12:09:44, Mads Ager (chromium) wrote: ...
6 years, 3 months ago (2014-09-09 12:53:58 UTC) #5
Mads Ager (chromium)
LGTM https://codereview.chromium.org/552733003/diff/80001/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/552733003/diff/80001/Source/core/frame/LocalDOMWindow.cpp#newcode1920 Source/core/frame/LocalDOMWindow.cpp:1920: #endif Sorry, my mistake, the plugin complaints, the ...
6 years, 3 months ago (2014-09-09 13:07:25 UTC) #6
sof
Thanks for the review. (Will wait for final Oilpan test results before taking the next ...
6 years, 3 months ago (2014-09-09 13:15:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/552733003/100001
6 years, 3 months ago (2014-09-09 18:38:01 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/14765)
6 years, 3 months ago (2014-09-09 18:47:15 UTC) #11
haraken
https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h File Source/core/frame/DOMWindowProperty.h (right): https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h#newcode52 Source/core/frame/DOMWindowProperty.h:52: LocalFrame* m_frame; How is it guaranteed that this m_frame ...
6 years, 3 months ago (2014-09-10 02:49:36 UTC) #13
sof
https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h File Source/core/frame/DOMWindowProperty.h (right): https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h#newcode52 Source/core/frame/DOMWindowProperty.h:52: LocalFrame* m_frame; On 2014/09/10 02:49:36, haraken wrote: > > ...
6 years, 3 months ago (2014-09-10 05:49:40 UTC) #14
Mads Ager (chromium)
https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h File Source/core/frame/DOMWindowProperty.h (right): https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h#newcode52 Source/core/frame/DOMWindowProperty.h:52: LocalFrame* m_frame; On 2014/09/10 05:49:40, sof wrote: > On ...
6 years, 3 months ago (2014-09-10 06:34:13 UTC) #15
haraken
https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h File Source/core/frame/DOMWindowProperty.h (right): https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h#newcode52 Source/core/frame/DOMWindowProperty.h:52: LocalFrame* m_frame; On 2014/09/10 06:34:13, Mads Ager (chromium) wrote: ...
6 years, 3 months ago (2014-09-10 07:46:53 UTC) #16
sof
https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h File Source/core/frame/DOMWindowProperty.h (right): https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h#newcode52 Source/core/frame/DOMWindowProperty.h:52: LocalFrame* m_frame; On 2014/09/10 07:46:53, haraken wrote: > On ...
6 years, 3 months ago (2014-09-10 08:21:37 UTC) #17
haraken
https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h File Source/core/frame/DOMWindowProperty.h (right): https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h#newcode52 Source/core/frame/DOMWindowProperty.h:52: LocalFrame* m_frame; On 2014/09/10 08:21:37, sof wrote: > On ...
6 years, 3 months ago (2014-09-10 08:34:42 UTC) #18
sof
On 2014/09/10 08:34:42, haraken wrote: > https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h > File Source/core/frame/DOMWindowProperty.h (right): > > https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h#newcode52 > ...
6 years, 3 months ago (2014-09-10 08:39:12 UTC) #19
haraken
On 2014/09/10 08:39:12, sof wrote: > On 2014/09/10 08:34:42, haraken wrote: > > > https://codereview.chromium.org/552733003/diff/100001/Source/core/frame/DOMWindowProperty.h ...
6 years, 3 months ago (2014-09-10 08:41:27 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/552733003/100001
6 years, 3 months ago (2014-09-10 08:50:36 UTC) #22
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 08:55:44 UTC) #23
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as 181717

Powered by Google App Engine
This is Rietveld 408576698