|
|
Chromium Code Reviews|
Created:
3 years, 9 months ago by joelhockey Modified:
3 years, 9 months ago 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. |
DescriptionRename 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)
Description was changed from ========== Rename fields and methods *Widget* to ...FrameViewBase... BUG=697351 ========== to ========== Rename fields and methods *Widget* to ...FrameViewBase... BUG=697351 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ==========
Description was changed from ========== Rename fields and methods *Widget* to ...FrameViewBase... BUG=697351 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== to ========== Rename FrameView fields and methods *Widget* to ...FrameViewBase... BUG=697351 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ==========
joelhockey@chromium.org changed reviewers: + haraken@chromium.org, sashab@chromium.org, slangley@chromium.org
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: This issue passed the CQ dry run.
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() { This sounds a bit too verbose. setNeedsUpdateGeometries? https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/frame/FrameView.h:272: void updateFrameViewBaseGeometries(); updateGeometries ? https://codereview.chromium.org/2727913005/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/frame/FrameView.h:658: IntPoint convertFromContainingFrameViewBaseToScrollbar( 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.
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.
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: This issue passed the CQ dry run.
The CQ bit was checked by joelhockey@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
This CL has an open dependency (Issue 2725273002 Patch 40001). Please resolve the dependency and try again. If you are sure that there is no real dependency, please use one of the options listed in https://goo.gl/9Es4OR to land the CL.
The CQ bit was checked by joelhockey@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
This CL has an open dependency (Issue 2725273002 Patch 40001). Please resolve the dependency and try again. If you are sure that there is no real dependency, please use one of the options listed in https://goo.gl/9Es4OR to land the CL.
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
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full committers or once the patch has received an L-G-T-M from a full committer. Even if an L-G-T-M may have been provided, it was from a non-committer, _not_ a full super star committer. Committers are members of the group "project-chromium-committers". Note that this has nothing to do with OWNERS files.
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...
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.
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.
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.
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 core/dom/ContainerNode: - suspendWidgetHierarychyUpdates -> suspendFrameViewBaseHierarchyUpdates core/dom/Document: - widgetForElement -> frameViewBaseForElement 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
I've changed my mind about ContainerNode, it is a different Widget. So 18 more to change. On Mon, Mar 6, 2017 at 1:30 PM, <joelhockey@chromium.org> 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/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: > > > > > > This sounds a bit too verbose. setNeedsUpdateGeometries? > > > > > > > > > > done > > > > > > > > > > > > > > https://codereview.chromium.org/2727913005/diff/40001/ > third_party/WebKit/Source/core/frame/FrameView.h#newcode272 > > > > > 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/Source/core/frame/FrameView.h#newcode658 > > > > > 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 > > core/dom/ContainerNode: > - suspendWidgetHierarychyUpdates -> suspendFrameViewBaseHierarchyUpdates > > core/dom/Document: > - widgetForElement -> frameViewBaseForElement > > 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 > > > > https://codereview.chromium.org/2727913005/ > -- You received this message because you are subscribed to the Google Groups "Blink Reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-reviews+unsubscribe@chromium.org.
I've changed my mind about ContainerNode, it is a different Widget. So 18 more to change. On Mon, Mar 6, 2017 at 1:30 PM, <joelhockey@chromium.org> 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/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: > > > > > > This sounds a bit too verbose. setNeedsUpdateGeometries? > > > > > > > > > > done > > > > > > > > > > > > > > https://codereview.chromium.org/2727913005/diff/40001/ > third_party/WebKit/Source/core/frame/FrameView.h#newcode272 > > > > > 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/Source/core/frame/FrameView.h#newcode658 > > > > > 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 > > core/dom/ContainerNode: > - suspendWidgetHierarychyUpdates -> suspendFrameViewBaseHierarchyUpdates > > core/dom/Document: > - widgetForElement -> frameViewBaseForElement > > 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 > > > > https://codereview.chromium.org/2727913005/ > -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
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
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Rename FrameView fields and methods *Widget* to ...FrameViewBase... BUG=697351 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== to ========== Rename FrameView fields and methods *Widget* to ...FrameViewBase... BUG=697351 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 ========== |
