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

Issue 2727913005: Rename FrameView fields and methods *Widget* to ...FrameViewBase... (Closed)

Created:
3 years, 9 months ago by joelhockey
Modified:
3 years, 9 months ago
Reviewers:
haraken, slangley, sashab
CC:
blink-reviews, blink-reviews-frames_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename FrameView fields and methods *Widget* to ...FrameViewBase... BUG=697351 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Patch Set 1 #

Patch Set 2 : Rename FrameView fields and methods *Widget* to ...FrameViewBase... #

Patch Set 3 : Rename FrameView fields and methods *Widget* to ...FrameViewBase... #

Total comments: 6

Patch Set 4 : Rename FrameView fields and methods *Widget* to ...FrameViewBase... #

Patch Set 5 : Rename FrameView fields and methods *Widget* to ...FrameViewBase... #

Patch Set 6 : Rename FrameView fields and methods *Widget* to ...FrameViewBase... #

Messages

Total messages: 36 (22 generated)
joelhockey
3 years, 9 months ago (2017-03-03 07:05:34 UTC) #4
haraken
https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Source/core/frame/FrameView.h File third_party/WebKit/Source/core/frame/FrameView.h (right): https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Source/core/frame/FrameView.h#newcode160 third_party/WebKit/Source/core/frame/FrameView.h:160: void setNeedsUpdateFrameViewBaseGeometries() { This sounds a bit too verbose. ...
3 years, 9 months ago (2017-03-03 19:07:34 UTC) #9
joelhockey
https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Source/core/frame/FrameView.h File third_party/WebKit/Source/core/frame/FrameView.h (right): https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Source/core/frame/FrameView.h#newcode160 third_party/WebKit/Source/core/frame/FrameView.h:160: void setNeedsUpdateFrameViewBaseGeometries() { On 2017/03/03 at 19:07:34, haraken wrote: ...
3 years, 9 months ago (2017-03-05 22:37:42 UTC) #10
commit-bot: I haz the power
This CL has an open dependency (Issue 2725273002 Patch 40001). Please resolve the dependency and ...
3 years, 9 months ago (2017-03-06 00:01:29 UTC) #17
commit-bot: I haz the power
This CL has an open dependency (Issue 2725273002 Patch 40001). Please resolve the dependency and ...
3 years, 9 months ago (2017-03-06 00:02:06 UTC) #20
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/2727913005/60001
3 years, 9 months ago (2017-03-06 01:08:08 UTC) #22
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 9 months ago (2017-03-06 01:08:10 UTC) #24
haraken
On 2017/03/05 22:37:42, joelhockey wrote: > https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Source/core/frame/FrameView.h > File third_party/WebKit/Source/core/frame/FrameView.h (right): > > https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Source/core/frame/FrameView.h#newcode160 > ...
3 years, 9 months ago (2017-03-06 01:54:49 UTC) #27
joelhockey
On 2017/03/06 at 01:54:49, haraken wrote: > On 2017/03/05 22:37:42, joelhockey wrote: > > https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Source/core/frame/FrameView.h ...
3 years, 9 months ago (2017-03-06 02:01:41 UTC) #28
haraken
On 2017/03/06 02:01:41, joelhockey wrote: > On 2017/03/06 at 01:54:49, haraken wrote: > > On ...
3 years, 9 months ago (2017-03-06 02:03:59 UTC) #29
joelhockey
On 2017/03/06 at 02:03:59, haraken wrote: > On 2017/03/06 02:01:41, joelhockey wrote: > > On ...
3 years, 9 months ago (2017-03-06 02:30:12 UTC) #30
joelhockey
I've changed my mind about ContainerNode, it is a different Widget. So 18 more to ...
3 years, 9 months ago (2017-03-06 02:38:39 UTC) #31
joelhockey
I've changed my mind about ContainerNode, it is a different Widget. So 18 more to ...
3 years, 9 months ago (2017-03-06 02:38:39 UTC) #32
haraken
3 years, 9 months ago (2017-03-06 02:40:54 UTC) #33
On 2017/03/06 02:30:12, joelhockey wrote:
> On 2017/03/06 at 02:03:59, haraken wrote:
> > On 2017/03/06 02:01:41, joelhockey wrote:
> > > On 2017/03/06 at 01:54:49, haraken wrote:
> > > > On 2017/03/05 22:37:42, joelhockey wrote:
> > > > >
> > >
>
https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Sour...
> > > > > File third_party/WebKit/Source/core/frame/FrameView.h (right):
> > > > > 
> > > > >
> > >
>
https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Sour...
> > > > > third_party/WebKit/Source/core/frame/FrameView.h:160: void
> > > > > setNeedsUpdateFrameViewBaseGeometries() {
> > > > > On 2017/03/03 at 19:07:34, haraken wrote:
> > > > > > This sounds a bit too verbose. setNeedsUpdateGeometries?
> > > > > 
> > > > > done
> > > > > 
> > > > >
> > >
>
https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Sour...
> > > > > third_party/WebKit/Source/core/frame/FrameView.h:272: void
> > > > > updateFrameViewBaseGeometries();
> > > > > On 2017/03/03 at 19:07:34, haraken wrote:
> > > > > > updateGeometries ?
> > > > > 
> > > > > done
> > > > > 
> > > > >
> > >
>
https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Sour...
> > > > > third_party/WebKit/Source/core/frame/FrameView.h:658: IntPoint
> > > > > convertFromContainingFrameViewBaseToScrollbar(
> > > > > On 2017/03/03 at 19:07:34, haraken wrote:
> > > > > > Instead of renaming methods on a per-file basis, it might make more
> sense
> > > to
> > > > > rename them on a per-functionality basis. e.g., you can rename all
> convert*
> > > > > methods in one CL. Then you can rename all updateGeometry things in
one
> CL
> > > etc.
> > > > > 
> > > > > Acknowledged.  I'll try and use the approach for other renames.  I
went
> with
> > > the
> > > > > per-file approach since I don't really know which per-functionality
> methods
> > > > > exist and where they live.  At least with the per-file approach I can
> make
> > > sure
> > > > > I get everything.  In the end, I figure that the renames will happen
in
> very
> > > > > quick succession and the code ends up in the same end-state.
> > > > 
> > > > But landing this CL would make the subsequent reviews harder. For
example,
> > > you're renaming FrameView::updateWidgetGeometries in this CL but not
> renaming
> > > LayoutPart::updateWidgetGeometry. Then we need to be careful not to rename
> > > LayoutPart::updateWidgetGeometry to
LayoutPart::updateFrameBaseViewGeometry
> when
> > > we rename it.
> > > > 
> > > > Note that what we want to do is not a simple mechanical renaming (then
you
> can
> > > do that in one go) but improving the names so that they make more sense in
> the
> > > code base. That will need some code inspection on a case-by-case basis.
> > > 
> > > Do you want me to continue with this CL?  Should I add LayoutPart, or any
> other
> > > files?  I have another CL just about ready which does include LayoutPart,
> and I
> > > have kept the *Geometry renaming consistent with this CL.
> > 
> > Is it the last part? If we still need to rename a bunch of more things, I'd
> prefer switching to the per-functionality renaming now.
> 
> There are 19 more methods that I count to be changed.  I am currently planning
> to put them all in the next, final CL

Then I'd prefer splitting the CLs into pieces. Also let's try to rename the
methods in a more meaningful way rather than doing simple renaming -- this is an
opportunity to improve the code base :)

> 
> core/dom/ContainerNode:
>  - suspendWidgetHierarychyUpdates -> suspendFrameViewBaseHierarchyUpdates
> 
> core/dom/Document:
>  - widgetForElement -> frameViewBaseForElement
> 

As one example, this should be renamed with LayoutObject::widget(). Also you'll
notice that widgetForElement doesn't need to be a method of Document. It should
be moved to Element::frameViewBase().

> core/html/HTMLEmbedElement:
>  - updateWidgetInternal -> updateFrameViewBaseInternal
> 
> core/html/HTMLFrameOwnerElement:
>  - setWidget -> setFrameViewBase
>  - releaseWidget -> releaseFrameViewBase
>  - ownedWidget -> ownedFrameViewBase
>  - widgetNewParentMap -> frameViewBaseNewParentMap
> 
> core/html/HTMLPlugInElement
>  - pluginWidget -> pluginFrameViewBase
>  - setNeedsWidgetUpdate -> setNeedsFrameViewBaseUpdate
>  - setPersistedPluginWidget -> setPersistedPluginFrameViewBase
>  - updateWidget -> updateFrameViewBase
> 
> core/html/PluginDocument:
>  - pluginWidget -> pluginFrameViewBase
> 
> core/input/ScrollManager:
>  - passScrollGestureEventToWidget -> passScrollGestureEventToFrameViewBase
> 
> core/layout/HitTestResult:
>  - isOverWidget -> isOverFrameViewBase
>  - setIsOverWidget -> setIsOverFrameViewBase
> 
> core/layout/LayoutPart:
>  - updateOnWidgetChange -> updateOnFrameViewBaseChange
>  - updateWidgetGeometry -> updateGeometry
>  - updateWidgetGeometryInternal -> updateGeometryInternal
> 
> web/WebViewImpl
>  - focusedLocalFrameInWidget -> focussedLocalFrameInFrameViewBase

Powered by Google App Engine
This is Rietveld 408576698