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

Issue 2855523002: Deleted Widget/FrameViewBase (Closed)

Created:
3 years, 7 months ago by joelhockey
Modified:
3 years, 7 months ago
Reviewers:
haraken, szager1, dcheng
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-frames_chromium.org, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, jchaffraix+rendering, kinuko+watch, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Deleted Widget/FrameViewBase. Scrollbar has no need for a 'parent' concept. It already has ScrollableArea which is the container of scrollbars. Moved FrameViewBase::ConvertFromRootFrame method to ScrollableArea where it is implemented in FrameView and PaintLayerScrollableArea along with other similar Convert* methods. Custom PaintLayerScrollableArea scrollbars must receive StyleUpdate calls when frame comes in and out of focus. The scrollbars attached to FrameView already receive these via RecalculateCustomScrollbarStyle, so they do not need to be stored in FrameView::scrollbars_. LayoutScrollbar was relying on overriding and listening for SetParent(nullptr) to dispose. This is now done by overriding Scrollbar::DisconnectFromScrollableArea. BUG=637460 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2855523002 Cr-Commit-Position: refs/heads/master@{#471494} Committed: https://chromium.googlesource.com/chromium/src/+/4838cef544c67d342c418d208e52cd8a4cf1a3d2

Patch Set 1 #

Patch Set 2 : fix comment #

Patch Set 3 : rebase #

Patch Set 4 : Keep FrameViewBase.h file until dependent CL is landed. #

Total comments: 9

Patch Set 5 : update comments #

Total comments: 1

Patch Set 6 : remove scrollbarparent #

Patch Set 7 : remove scrollbarparent #

Patch Set 8 : merge #

Patch Set 9 : Add back FrameView::paint_scrollbars_ to hold PaintLayer scrollbars #

Total comments: 7

Patch Set 10 : merge #

Patch Set 11 : Revert scrollbar method names #

Patch Set 12 : rebase and merge #

Patch Set 13 : rebase after https://codereview.chromium.org/2873213002/ #

Patch Set 14 : removed FrameViewBase.h file now that dependent CL submitted #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -158 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +8 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +40 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLObjectElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutScrollbar.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp View 1 2 3 4 5 1 chunk +3 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/FrameViewBase.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -104 lines 0 comments Download
M third_party/WebKit/Source/platform/PlatformChromeClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeClient.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ContextMenuClientImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebNode.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 108 (76 generated)
joelhockey
I'm planning to write up a doc describing where I see the end-state of my ...
3 years, 7 months ago (2017-05-01 05:55:51 UTC) #16
joelhockey
https://codereview.chromium.org/2855523002/diff/60001/third_party/WebKit/Source/platform/scroll/ScrollbarParent.h File third_party/WebKit/Source/platform/scroll/ScrollbarParent.h (right): https://codereview.chromium.org/2855523002/diff/60001/third_party/WebKit/Source/platform/scroll/ScrollbarParent.h#newcode1 third_party/WebKit/Source/platform/scroll/ScrollbarParent.h:1: /* It appears that git or something thinks that ...
3 years, 7 months ago (2017-05-01 06:02:27 UTC) #17
haraken
https://codereview.chromium.org/2855523002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.h File third_party/WebKit/Source/core/frame/FrameView.h (right): https://codereview.chromium.org/2855523002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.h#newcode105 third_party/WebKit/Source/core/frame/FrameView.h:105: public ScrollbarParent, Are you planning to remove this inheritance ...
3 years, 7 months ago (2017-05-01 07:51:58 UTC) #18
joelhockey
https://codereview.chromium.org/2855523002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.h File third_party/WebKit/Source/core/frame/FrameView.h (right): https://codereview.chromium.org/2855523002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.h#newcode105 third_party/WebKit/Source/core/frame/FrameView.h:105: public ScrollbarParent, On 2017/05/01 at 07:51:58, haraken wrote: > ...
3 years, 7 months ago (2017-05-01 09:08:51 UTC) #21
haraken
On 2017/05/01 09:08:51, joelhockey wrote: > https://codereview.chromium.org/2855523002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.h > File third_party/WebKit/Source/core/frame/FrameView.h (right): > > https://codereview.chromium.org/2855523002/diff/60001/third_party/WebKit/Source/core/frame/FrameView.h#newcode105 > ...
3 years, 7 months ago (2017-05-01 09:16:42 UTC) #22
dcheng
The overall approach seems reasonable to me. Just a few minor comments. https://codereview.chromium.org/2855523002/diff/60001/third_party/WebKit/Source/platform/scroll/ScrollbarParent.h File third_party/WebKit/Source/platform/scroll/ScrollbarParent.h ...
3 years, 7 months ago (2017-05-01 15:28:36 UTC) #23
dcheng
On 2017/05/01 15:28:36, dcheng (OOO through May 2) wrote: > The overall approach seems reasonable ...
3 years, 7 months ago (2017-05-01 15:29:37 UTC) #24
joelhockey
I might add a few comments on https://codereview.chromium.org/2845583002/#ps60001 which hopefully make it easier to review. ...
3 years, 7 months ago (2017-05-01 22:03:18 UTC) #25
szager1
https://codereview.chromium.org/2855523002/diff/80001/third_party/WebKit/Source/platform/scroll/ScrollbarParent.h File third_party/WebKit/Source/platform/scroll/ScrollbarParent.h (right): https://codereview.chromium.org/2855523002/diff/80001/third_party/WebKit/Source/platform/scroll/ScrollbarParent.h#newcode41 third_party/WebKit/Source/platform/scroll/ScrollbarParent.h:41: class PLATFORM_EXPORT ScrollbarParent : public GarbageCollectedMixin { Are you ...
3 years, 7 months ago (2017-05-02 14:31:36 UTC) #26
joelhockey
On 2017/05/02 at 14:31:36, szager wrote: > https://codereview.chromium.org/2855523002/diff/80001/third_party/WebKit/Source/platform/scroll/ScrollbarParent.h > File third_party/WebKit/Source/platform/scroll/ScrollbarParent.h (right): > > https://codereview.chromium.org/2855523002/diff/80001/third_party/WebKit/Source/platform/scroll/ScrollbarParent.h#newcode41 ...
3 years, 7 months ago (2017-05-02 22:24:42 UTC) #27
joelhockey
dcheng@, szager@, ptal The Widget/FrameViewBase class is now removed! esprehn@ told me that there would ...
3 years, 7 months ago (2017-05-03 02:23:20 UTC) #37
dcheng
Regarding the layering violation, I do think that forward-declaring a core class in platform is ...
3 years, 7 months ago (2017-05-09 08:05:55 UTC) #46
haraken
On 2017/05/09 08:05:55, dcheng wrote: > Regarding the layering violation, I do think that forward-declaring ...
3 years, 7 months ago (2017-05-09 11:37:31 UTC) #47
joelhockey
On 2017/05/09 at 11:37:31, haraken wrote: > On 2017/05/09 08:05:55, dcheng wrote: > > Regarding ...
3 years, 7 months ago (2017-05-10 00:23:00 UTC) #48
joelhockey
https://codereview.chromium.org/2855523002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2855523002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode501 third_party/WebKit/Source/core/frame/FrameView.cpp:501: if (frame_->GetDocument()->GetStyleEngine().UsesWindowInactiveSelector()) { On 2017/05/09 at 08:05:55, dcheng wrote: ...
3 years, 7 months ago (2017-05-10 04:17:13 UTC) #50
dcheng
I assume this will be rebased this on top of the PlatformFrameView CL once that ...
3 years, 7 months ago (2017-05-10 07:27:00 UTC) #54
joelhockey
On 2017/05/10 at 07:27:00, dcheng wrote: > I assume this will be rebased this on ...
3 years, 7 months ago (2017-05-10 09:55:34 UTC) #57
joelhockey
On 2017/05/10 at 09:55:34, joelhockey wrote: > On 2017/05/10 at 07:27:00, dcheng wrote: > > ...
3 years, 7 months ago (2017-05-11 07:01:14 UTC) #68
dcheng
LGTM!
3 years, 7 months ago (2017-05-11 22:23:30 UTC) #74
commit-bot: I haz the power
This CL has an open dependency (Issue 2845583002 Patch 140001). Please resolve the dependency and ...
3 years, 7 months ago (2017-05-11 23:42:09 UTC) #77
joelhockey
haraken@, ptal. I need owners approval for platform.
3 years, 7 months ago (2017-05-12 04:13:46 UTC) #82
haraken
Sorry about the review delay. LGTM!
3 years, 7 months ago (2017-05-12 05:10:00 UTC) #85
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/2855523002/260001
3 years, 7 months ago (2017-05-12 05:24:03 UTC) #89
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/382783)
3 years, 7 months ago (2017-05-12 06:39:27 UTC) #91
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/2855523002/260001
3 years, 7 months ago (2017-05-12 06:40:20 UTC) #93
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/382872)
3 years, 7 months ago (2017-05-12 08:03:11 UTC) #95
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/2855523002/260001
3 years, 7 months ago (2017-05-12 09:34:25 UTC) #97
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/383029)
3 years, 7 months ago (2017-05-12 10:54:28 UTC) #99
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/2855523002/260001
3 years, 7 months ago (2017-05-12 10:54:58 UTC) #101
commit-bot: I haz the power
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_ng/builds/442941)
3 years, 7 months ago (2017-05-12 16:02:54 UTC) #103
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/2855523002/260001
3 years, 7 months ago (2017-05-12 21:04:21 UTC) #105
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 23:45:08 UTC) #108
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/4838cef544c67d342c418d208e52...

Powered by Google App Engine
This is Rietveld 408576698