|
|
Chromium Code Reviews|
Created:
3 years, 11 months ago by joelhockey Modified:
3 years, 10 months ago CC:
blink-reviews, chromium-reviews, mlamouri+watch-blink_chromium.org, mlamouri+watch-screen-orientation_chromium.org, timvolodine Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionChange PlatformEventController to take LocalFrame rather than Page.
This change is required to convert the Timer to a per-frame scheduler in
https://codereview.chromium.org/2648433003.
All callers are currently converting frame/document objects to page in any case, so there is little change needed.
BUG=624694
Review-Url: https://codereview.chromium.org/2645823002
Cr-Commit-Position: refs/heads/master@{#447492}
Committed: https://chromium.googlesource.com/chromium/src/+/b7d6f926eb0cf4e99dc6daac6e412381ae761a2e
Patch Set 1 #
Total comments: 2
Patch Set 2 : Change PlatformEventController to take LocalFrame rather than Page. #Patch Set 3 : Change PlatformEventController to take LocalFrame rather than Page. #Patch Set 4 : Change PlatformEventController to take LocalFrame rather than Page. #
Messages
Total messages: 57 (36 generated)
joelhockey@chromium.org changed reviewers: + dcheng@chromium.org, haraken@chromium.org
Description was changed from ========== Change PlatformEventController to take LocalFrame rather than Page. This change is required to convert the Timer to a per-frame scheduler. All callers are currently converting frame/document objects to page in any case, so there is little change needed. BUG=624694 ========== to ========== Change PlatformEventController to take LocalFrame rather than Page. This change is required to convert the Timer to a per-frame scheduler in https://codereview.chromium.org/2648433003. All callers are currently converting frame/document objects to page in any case, so there is little change needed. BUG=624694 ==========
The CQ bit was checked by joelhockey@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
LGTM
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by joelhockey@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by joelhockey@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by haraken@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
LGTM https://codereview.chromium.org/2645823002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/frame/PlatformEventController.cpp (right): https://codereview.chromium.org/2645823002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/frame/PlatformEventController.cpp:11: PlatformEventController::PlatformEventController(LocalFrame* frame) Nit: I think this can be passed as mutable ref. Blink convention is to pass by mutable reference as a signal that something should never be null.
On 2017/01/19 at 14:20:11, commit-bot wrote: > Try jobs failed on following builders: > mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) Tests are failing for this, and I just don't think I can get it to work to have callers pass Frame rather than Page since in at least 1 case, Frame can be null. So I'm going to abandon this change and go back to changing TaskRunnerHelper to take a Frame input. https://codereview.chromium.org/2645813002 This was causing failures at the code from https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/frame/Dev... when a document separates from its frame as per: https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/fast/dom/...
On 2017/01/20 at 09:35:23, joelhockey wrote: > On 2017/01/19 at 14:20:11, commit-bot wrote: > > Try jobs failed on following builders: > > mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) > > Tests are failing for this, and I just don't think I can get it to work to have callers pass Frame rather than Page since in at least 1 case, Frame can be null. > > So I'm going to abandon this change and go back to changing TaskRunnerHelper to take a Frame input. > https://codereview.chromium.org/2645813002 > > This was causing failures at the code from > https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/frame/Dev... > when a document separates from its frame as per: > https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/fast/dom/... I have revived this change with an added null check on frame. Note that now we pass page as null to PageVisibilityObserver when frame is null, but I have checked and page was already null in this case.
The CQ bit was checked by joelhockey@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from haraken@chromium.org, dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/2645823002/#ps20001 (title: "Change PlatformEventController to take LocalFrame rather than Page.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
https://codereview.chromium.org/2645823002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/frame/PlatformEventController.cpp (right): https://codereview.chromium.org/2645823002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/frame/PlatformEventController.cpp:11: PlatformEventController::PlatformEventController(LocalFrame* frame) On 2017/01/20 at 07:18:17, dcheng wrote: > Nit: I think this can be passed as mutable ref. Blink convention is to pass by mutable reference as a signal that something should never be null. Daniel, I must confess I don't know a lot of C++. When I've searched about mutable references, I only see talk about the mutable keyword for variable declarations. I don't think that is what you are talking about. So are you saying to change PlatformEventController::PlatformEventController(LocalFrame* frame) to PlatformEventController::PlatformEventController(LocalFrame &frame) or something else?
The CQ bit was checked by joelhockey@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from haraken@chromium.org, dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/2645823002/#ps40001 (title: "Change PlatformEventController to take LocalFrame rather than Page.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by joelhockey@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
On 2017/02/01 07:17:29, joelhockey wrote: > https://codereview.chromium.org/2645823002/diff/1/third_party/WebKit/Source/c... > File third_party/WebKit/Source/core/frame/PlatformEventController.cpp (right): > > https://codereview.chromium.org/2645823002/diff/1/third_party/WebKit/Source/c... > third_party/WebKit/Source/core/frame/PlatformEventController.cpp:11: > PlatformEventController::PlatformEventController(LocalFrame* frame) > On 2017/01/20 at 07:18:17, dcheng wrote: > > Nit: I think this can be passed as mutable ref. Blink convention is to pass by > mutable reference as a signal that something should never be null. > > Daniel, I must confess I don't know a lot of C++. When I've searched about > mutable references, I only see talk about the mutable keyword for variable > declarations. I don't think that is what you are talking about. > > So are you saying to change > PlatformEventController::PlatformEventController(LocalFrame* frame) > to > PlatformEventController::PlatformEventController(LocalFrame &frame) > or something else? Yeah, this is what I meant. Sorry, I should have said non-const reference; I think that would have been clearer.
The CQ bit was checked by joelhockey@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...)
The CQ bit was checked by joelhockey@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by joelhockey@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by joelhockey@chromium.org
The CQ bit was checked by joelhockey@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from haraken@chromium.org, dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/2645823002/#ps60001 (title: "Change PlatformEventController to take LocalFrame rather than Page.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1485949185477880,
"parent_rev": "286225b8d7ea0ce861bf17be58df4af7a3a5e379", "commit_rev":
"0f14db42ae5e3c86b5652c3ea408328d43d12036"}
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1485949185477880,
"parent_rev": "13f00a7b6a700f280ec590e654cdbf223c510a45", "commit_rev":
"b7d6f926eb0cf4e99dc6daac6e412381ae761a2e"}
Message was sent while issue was closed.
Description was changed from ========== Change PlatformEventController to take LocalFrame rather than Page. This change is required to convert the Timer to a per-frame scheduler in https://codereview.chromium.org/2648433003. All callers are currently converting frame/document objects to page in any case, so there is little change needed. BUG=624694 ========== to ========== Change PlatformEventController to take LocalFrame rather than Page. This change is required to convert the Timer to a per-frame scheduler in https://codereview.chromium.org/2648433003. All callers are currently converting frame/document objects to page in any case, so there is little change needed. BUG=624694 Review-Url: https://codereview.chromium.org/2645823002 Cr-Commit-Position: refs/heads/master@{#447492} Committed: https://chromium.googlesource.com/chromium/src/+/b7d6f926eb0cf4e99dc6daac6e41... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/b7d6f926eb0cf4e99dc6daac6e41... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
