|
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
Total comments: 2
|
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
|
Total messages: 28 (11 generated)
|