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

Issue 919423002: Audited and renamed uses of methods and variables named RootView (Closed)

Created:
5 years, 10 months ago by bokan
Modified:
5 years, 10 months ago
CC:
aandrey+blink_chromium.org, darktears, apavlov+blink_chromium.org, arv+blink, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-events_chromium.org, blink-reviews-html_chromium.org, caseq+blink_chromium.org, Inactive, devtools-reviews_chromium.org, dglazkov+blink, dstockwell, eae+blinkwatch, Eric Willigers, eustas+blink_chromium.org, gavinp+loader_chromium.org, Nate Chapin, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, Mike Lawther (Google), paulirish+reviews_chromium.org, pfeldman+blink_chromium.org, rjwright, rwlbuis, sergeyv+blink_chromium.org, shans, sof, Steve Block, Timothy Loh, tyoshino+watch_chromium.org, yurys+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Audited and renamed uses of methods and variables named RootView This is the first in a series of coordinate transformation cleanups. Chiefly, I'd like to include pinch coordinate transforms in the FrameView contentsToWindow type methods. In this patch I've looked just at "RootView" There shouldn't be any functional change, this is all disambiguation and renaming. I looked at all callers of FrameView's: IntPoint rootViewToContents(const IntPoint&) const; IntPoint contentsToRootView(const IntPoint&) const; IntRect rootViewToContents(const IntRect&) const; IntRect contentsToRootView(const IntRect&) const; Currently these methods for converting to/from RootView and Window in FrameView do the same transformation, so it seems they've been used interchangeably. They no longer mean the same thing, RootView is the root FrameView which doesn't include scale and the pinch viewport offset. Window (which I'll be renaming to viewport shortly) is the visible viewport so it should include the pinch transformation. I've changed the rootView version to window where the caller really means "viewport". Also renamed "view" in coordinate cases to "frame" as I think it is less ambiguous. e.g a call to contentsToRootView that actually wants coordinates in the viewport space (i.e. DIP screen coordinates on Android, DIP window coordinates on desktops) is now contentsToWindow and will soon be contentsToViewport. A call to contentsToRootView that actually wants coordinates in page coordinates (i.e. CSS pixels relative to the root document) is now contentsToRootFrame. There were external APIs that got or set coordinates in the RootView. Again, these sometimes really meant viewport so I've renamed those as appropriate as well. I've also made a few other coordinate related cleanups along the way: openPagePopup wasn't using the element rect param so I removed it. I've renamed parameters like 'rect' and 'point' as I see them to make clear what their coordinate space is. BUG=371902 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190693

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : remove scrollIntoView #

Patch Set 6 : Build fix #

Total comments: 2

Patch Set 7 : Confirmed inspector changes with dgozman@ #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -158 lines) Patch
M LayoutTests/fast/dom/scroll-element-in-iframe-to-rect.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/html/navigation-transition.html View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Element.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 2 3 4 5 6 7 8 9 6 chunks +21 lines, -8 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 7 chunks +65 lines, -47 lines 0 comments Download
M Source/core/frame/PinchViewport.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/frame/PinchViewport.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -2 lines 0 comments Download
M Source/core/html/HTMLInputElement.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/forms/ColorChooserClient.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/forms/ColorInputType.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/forms/ColorInputType.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/forms/DateTimeChooser.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/forms/PopupMenuClient.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorInputAgent.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorOverlay.cpp View 1 2 3 4 5 6 7 8 9 10 6 chunks +13 lines, -13 lines 0 comments Download
M Source/core/inspector/InspectorTraceEvents.cpp View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/loader/EmptyClients.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/Chrome.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/Chrome.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/ChromeClient.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/DragController.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -9 lines 0 comments Download
M Source/core/rendering/RenderMenuList.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderMenuList.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderView.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/testing/Internals.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/HostWindow.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/ChromeClientImpl.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M Source/web/ColorChooserPopupUIController.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/DateTimeChooserImpl.cpp View 1 2 4 chunks +3 lines, -4 lines 0 comments Download
M Source/web/ExternalDateTimeChooser.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/web/ExternalPopupMenuTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/PopupContainer.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/web/PopupMenuImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/PopupMenuTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/web/ValidationMessageClientImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -10 lines 0 comments Download
M Source/web/WebElement.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPagePopupImpl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPagePopupImpl.cpp View 1 10 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebPopupMenuImpl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPopupMenuImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M public/web/WebView.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M public/web/WebViewClient.h View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
bokan
ptal at when you have a chance.
5 years, 10 months ago (2015-02-13 21:38:38 UTC) #2
bokan
Hey Zeeshan, I've removed the scrollIntoView refactor which didn't really belong here. What's left should ...
5 years, 10 months ago (2015-02-17 21:18:57 UTC) #3
bokan
Hi Dmitry, Could you please confirm the bits in Source/core/inspector are right? I've renamed contentsToRootView ...
5 years, 10 months ago (2015-02-17 21:21:42 UTC) #5
dgozman
See below for InspectorOverlay. The rest of inspector looks good. https://codereview.chromium.org/919423002/diff/100001/Source/core/inspector/InspectorOverlay.cpp File Source/core/inspector/InspectorOverlay.cpp (right): https://codereview.chromium.org/919423002/diff/100001/Source/core/inspector/InspectorOverlay.cpp#newcode242 ...
5 years, 10 months ago (2015-02-18 14:05:58 UTC) #6
bokan
https://codereview.chromium.org/919423002/diff/100001/Source/core/inspector/InspectorOverlay.cpp File Source/core/inspector/InspectorOverlay.cpp (right): https://codereview.chromium.org/919423002/diff/100001/Source/core/inspector/InspectorOverlay.cpp#newcode242 Source/core/inspector/InspectorOverlay.cpp:242: // TODO: These look like they should be RootFrame, ...
5 years, 10 months ago (2015-02-18 14:10:45 UTC) #7
bokan
Oystein, could you please confirm the change in Document.cpp related to transition elements? transitionElement.rect = ...
5 years, 10 months ago (2015-02-18 15:42:51 UTC) #9
bokan
Rick, could you PTAL (or find help find someone who might be more appropriate)? It's ...
5 years, 10 months ago (2015-02-18 20:12:31 UTC) #11
oystein (OOO til 10th of July)
On 2015/02/18 15:42:51, bokan wrote: > Oystein, could you please confirm the change in Document.cpp ...
5 years, 10 months ago (2015-02-18 20:25:39 UTC) #12
Rick Byers
Sorry for the delay. LGTM. +aelias for source/web (I know he previously suggested we should ...
5 years, 10 months ago (2015-02-20 20:29:24 UTC) #14
aelias_OOO_until_Jul13
Source/web lgtm
5 years, 10 months ago (2015-02-20 20:48:43 UTC) #15
bokan
+vollick@ for Source/platform/HostWindow
5 years, 10 months ago (2015-02-23 15:01:05 UTC) #17
Ian Vollick
On 2015/02/23 15:01:05, bokan wrote: > +vollick@ for Source/platform/HostWindow Source/platform lgtm
5 years, 10 months ago (2015-02-23 15:05:36 UTC) #18
bokan
On 2015/02/20 20:29:24, Rick Byers (Out until 3-3) wrote: > Does this completely replace the ...
5 years, 10 months ago (2015-02-23 16:25:56 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/919423002/180001
5 years, 10 months ago (2015-02-23 16:26:46 UTC) #22
commit-bot: I haz the power
Failed to apply patch for Source/core/inspector/InspectorOverlay.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
5 years, 10 months ago (2015-02-23 18:15:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/919423002/200001
5 years, 10 months ago (2015-02-23 19:00:59 UTC) #27
commit-bot: I haz the power
5 years, 10 months ago (2015-02-23 22:07:51 UTC) #28
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190693

Powered by Google App Engine
This is Rietveld 408576698