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

Issue 879913003: Use IntRect instead of FloatRect for window positions and sizes (Closed)

Created:
5 years, 10 months ago by Jens Widell
Modified:
5 years, 10 months ago
Reviewers:
Mike West
CC:
blink-reviews, tyoshino+watch_chromium.org, arv+blink, dcheng, Inactive, Nate Chapin, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Use IntRect instead of FloatRect for window positions and sizes Effectively, a window's position and size was narrowed to an integer rectangle (WebRect) anyway in Blink's public API (WebWidgetClient) so the floating point processing in the middle made no sense. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189165

Patch Set 1 #

Total comments: 12

Patch Set 2 : added FIXME comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -161 lines) Patch
M LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html View 2 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/fast/dom/Window/window-resize-and-move-arguments-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/frame/DOMWindow.h View 1 chunk +9 lines, -5 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.h View 3 chunks +6 lines, -6 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 11 chunks +27 lines, -48 lines 0 comments Download
M Source/core/frame/RemoteDOMWindow.h View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/frame/RemoteDOMWindow.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/frame/Screen.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/frame/Window.idl View 1 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/loader/EmptyClients.h View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/page/Chrome.h View 2 chunks +3 lines, -4 lines 0 comments Download
M Source/core/page/Chrome.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/page/ChromeClient.h View 3 chunks +4 lines, -5 lines 0 comments Download
M Source/core/page/CreateWindow.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/page/DragController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/WindowFeatures.h View 3 chunks +11 lines, -11 lines 0 comments Download
M Source/core/page/WindowFeatures.cpp View 4 chunks +10 lines, -13 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/PlatformScreen.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/PlatformScreen.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/web/ChromeClientImpl.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/web/ChromeClientImpl.cpp View 3 chunks +5 lines, -6 lines 0 comments Download
M Source/web/PopupContainer.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/PopupContainer.cpp View 4 chunks +5 lines, -6 lines 0 comments Download
M Source/web/PopupContainerTest.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M Source/web/WebPagePopupImpl.cpp View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Jens Widell
PTAL Added some comments explaining parts of the patch. https://codereview.chromium.org/879913003/diff/1/LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html File LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html (right): https://codereview.chromium.org/879913003/diff/1/LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html#newcode20 LayoutTests/fast/dom/Window/window-resize-and-move-arguments.html:20: ...
5 years, 10 months ago (2015-01-28 12:29:55 UTC) #2
Mike West
Thanks for the explanation, that was very helpful. I don't entirely understand the boolean weirdness ...
5 years, 10 months ago (2015-01-28 13:33:18 UTC) #3
Jens Widell
On 2015/01/28 13:33:18, Mike West wrote: > I don't entirely understand the boolean weirdness in ...
5 years, 10 months ago (2015-01-28 14:09:23 UTC) #4
Mike West
I'd be fine with either of the solutions you propose, I think. Though I'd personally ...
5 years, 10 months ago (2015-01-28 14:48:35 UTC) #5
Jens Widell
On 2015/01/28 14:48:35, Mike West wrote: > I'd be fine with either of the solutions ...
5 years, 10 months ago (2015-01-28 14:54:42 UTC) #6
Mike West
I guess so, but do break it one way or another, please. :) LGTM.
5 years, 10 months ago (2015-01-28 14:55:56 UTC) #7
Jens Widell
On 2015/01/28 14:55:56, Mike West wrote: > I guess so, but do break it one ...
5 years, 10 months ago (2015-01-28 14:57:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/879913003/20001
5 years, 10 months ago (2015-01-29 06:16:32 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 06:19:26 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189165

Powered by Google App Engine
This is Rietveld 408576698