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

Issue 26936002: Remove Widget's dependency upon its own inheritor aka ScrollView. This was nasty from an OO design… (Closed)

Created:
7 years, 2 months ago by atreat
Modified:
7 years, 1 month ago
CC:
blink-reviews, kenneth.christiansen, tommyw+watchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, Julien - ping for review, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

Remove Widget's dependency upon its own inheritor aka ScrollView This was nasty from an OO design perspective and also complicates efforts to move ScrollView and Scrollbar to core/page/. BUG=297477 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159483

Patch Set 1 #

Total comments: 1

Patch Set 2 : Clean up by using helper functions where appropriate #

Total comments: 3

Patch Set 3 : Fix up a couple nits #

Patch Set 4 : Fix for clang compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -92 lines) Patch
M Source/core/frame/FrameView.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/platform/ScrollView.h View 1 2 3 4 chunks +6 lines, -3 lines 0 comments Download
Source/core/platform/ScrollView.cpp View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/platform/Scrollbar.h View 1 2 3 3 chunks +9 lines, -3 lines 0 comments Download
M Source/core/platform/Scrollbar.cpp View 1 2 3 4 chunks +22 lines, -6 lines 0 comments Download
M Source/core/platform/Widget.h View 1 2 3 chunks +12 lines, -11 lines 0 comments Download
M Source/core/platform/Widget.cpp View 8 chunks +50 lines, -39 lines 0 comments Download
M Source/core/platform/chromium/PlatformScreenChromium.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
Source/core/platform/chromium/support/WebScrollbarThemeClientImpl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/platform/chromium/support/WebScrollbarThemeClientImpl.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderWidget.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/scroll/ScrollbarThemeClient.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/web/WebInputEventConversion.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebPluginContainerImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPluginContainerImpl.cpp View 1 5 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
atreat
Remove a nasty dependency with Widget referring to its own child. Yuck! This also makes ...
7 years, 2 months ago (2013-10-10 22:06:26 UTC) #1
abarth-chromium
I'm not the right person to review this CL. Maybe Eric can review it?
7 years, 2 months ago (2013-10-11 05:54:03 UTC) #2
eseidel
I'm not entirely sure I follow. ScrollView is to ContainerNode while Widget is to Node. ...
7 years, 2 months ago (2013-10-11 06:01:32 UTC) #3
eseidel
Sorry the Node/ContainerNode analogy may not be very clear if you're not familiar with the ...
7 years, 2 months ago (2013-10-11 06:02:53 UTC) #4
abarth-chromium
On 2013/10/11 06:02:53, eseidel wrote: > This whole concept mostly exists for historical reasons and ...
7 years, 2 months ago (2013-10-11 06:07:24 UTC) #5
eseidel
Removing widgets requires some thought. But I do believe it's possible. Widgets are ref-counted and ...
7 years, 2 months ago (2013-10-11 06:12:25 UTC) #6
atreat
Kenneth has also expressed interest in removing Widget altogether, but I think that is beyond ...
7 years, 2 months ago (2013-10-11 14:26:02 UTC) #7
atreat
New cl for your review. This one cleans up a bit by using helper cast ...
7 years, 2 months ago (2013-10-11 15:17:16 UTC) #8
atreat
Adding Julien Chaffraix who might be interested.
7 years, 2 months ago (2013-10-11 15:20:44 UTC) #9
eseidel
https://codereview.chromium.org/26936002/diff/19001/Source/core/platform/Widget.h File Source/core/platform/Widget.h (left): https://codereview.chromium.org/26936002/diff/19001/Source/core/platform/Widget.h#oldcode125 Source/core/platform/Widget.h:125: virtual IntRect convertToContainingView(const IntRect&) const; If ScrollView is always ...
7 years, 2 months ago (2013-10-11 15:27:22 UTC) #10
atreat
On 2013/10/11 15:27:22, eseidel wrote: > https://codereview.chromium.org/26936002/diff/19001/Source/core/platform/Widget.h > File Source/core/platform/Widget.h (left): > > https://codereview.chromium.org/26936002/diff/19001/Source/core/platform/Widget.h#oldcode125 > ...
7 years, 2 months ago (2013-10-11 15:34:23 UTC) #11
eseidel
Yeah. I understand your reasons. Please fix the comment nits above. I accept this as ...
7 years, 2 months ago (2013-10-11 15:36:43 UTC) #12
eseidel
Yeah. I understand your reasons. Please fix the comment nits above. I accept this as ...
7 years, 2 months ago (2013-10-11 15:37:00 UTC) #13
atreat
On 2013/10/11 15:37:00, eseidel wrote: > Yeah. I understand your reasons. Please fix the comment ...
7 years, 2 months ago (2013-10-11 15:44:23 UTC) #14
eseidel
lgtm Kinda ugly, but I accept this as an intermediate step.
7 years, 2 months ago (2013-10-11 15:55:23 UTC) #15
eseidel
Thanks for driving this Adam!
7 years, 2 months ago (2013-10-11 15:55:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adam.treat@samsung.com/26936002/26001
7 years, 2 months ago (2013-10-11 15:55:48 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-11 16:30:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adam.treat@samsung.com/26936002/36001
7 years, 2 months ago (2013-10-11 18:11:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adam.treat@samsung.com/26936002/36001
7 years, 2 months ago (2013-10-11 18:13:16 UTC) #20
commit-bot: I haz the power
Change committed as 159483
7 years, 2 months ago (2013-10-11 23:10:10 UTC) #21
Nico
Should the setParent() in RenderScrollbar.h have its parameter changed too? (and marked OVERRIDE while there?)
7 years, 1 month ago (2013-10-28 18:39:46 UTC) #22
atreat
7 years, 1 month ago (2013-10-28 18:51:08 UTC) #23
Message was sent while issue was closed.
On 2013/10/28 18:39:46, Nico wrote:
> Should the setParent() in RenderScrollbar.h have its parameter changed too?
(and
> marked OVERRIDE while there?)

Ouch. Fixing here: https://codereview.chromium.org/48733005/

Powered by Google App Engine
This is Rietveld 408576698