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

Issue 463263002: Mac: Fix rounded corners on browser windows on retina display. (Closed)

Created:
6 years, 4 months ago by erikchen
Modified:
6 years, 4 months ago
CC:
chromium-reviews, ccameron
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Mac: Fix rounded corners on browser windows on retina display. When a window's bottom corner is covered by a layer on a retina display, the corner is incorrectly rounded. I added a layer mask to do the corner rounding ourselves. BUG=396264 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289811

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Comments from andresantoso. #

Total comments: 2

Patch Set 3 : Comments from andresantoso, round 2. #

Patch Set 4 : Replace 10.7+ CGPath function with 10.2+ equivalent function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -0 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller_private.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/fast_resize_view.h View 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/fast_resize_view.mm View 1 2 3 6 chunks +88 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
erikchen
andresantoso: Please review.
6 years, 4 months ago (2014-08-12 21:45:30 UTC) #1
Andre
Looks OK to me, but I don't know how adding a mask layer affect compositing. ...
6 years, 4 months ago (2014-08-12 22:53:28 UTC) #2
erikchen
https://codereview.chromium.org/463263002/diff/20001/chrome/browser/ui/cocoa/fast_resize_view.mm File chrome/browser/ui/cocoa/fast_resize_view.mm (right): https://codereview.chromium.org/463263002/diff/20001/chrome/browser/ui/cocoa/fast_resize_view.mm#newcode172 chrome/browser/ui/cocoa/fast_resize_view.mm:172: path = CGPathCreateWithRect(NSRectToCGRect(self.bounds), NULL); On 2014/08/12 22:53:28, Andre wrote: ...
6 years, 4 months ago (2014-08-12 23:01:32 UTC) #3
Andre
lgtm https://codereview.chromium.org/463263002/diff/40001/chrome/browser/ui/cocoa/fast_resize_view.mm File chrome/browser/ui/cocoa/fast_resize_view.mm (right): https://codereview.chromium.org/463263002/diff/40001/chrome/browser/ui/cocoa/fast_resize_view.mm#newcode165 chrome/browser/ui/cocoa/fast_resize_view.mm:165: layerMask_ = maskLayer; optional nit: can do away ...
6 years, 4 months ago (2014-08-12 23:06:16 UTC) #4
erikchen
https://codereview.chromium.org/463263002/diff/40001/chrome/browser/ui/cocoa/fast_resize_view.mm File chrome/browser/ui/cocoa/fast_resize_view.mm (right): https://codereview.chromium.org/463263002/diff/40001/chrome/browser/ui/cocoa/fast_resize_view.mm#newcode165 chrome/browser/ui/cocoa/fast_resize_view.mm:165: layerMask_ = maskLayer; On 2014/08/12 23:06:16, Andre wrote: > ...
6 years, 4 months ago (2014-08-12 23:09:25 UTC) #5
erikchen
ccameron: If you care, you should respond. Otherwise I'm just going to forward this to ...
6 years, 4 months ago (2014-08-14 08:16:56 UTC) #6
ccameron
This LGTM as well. You can feel free to nuke the non-CoreAnimation code from FastResizeView ...
6 years, 4 months ago (2014-08-14 15:36:37 UTC) #7
erikchen
I'd prefer to remove the non-CoreAnimation in a different pass.
6 years, 4 months ago (2014-08-14 17:39:04 UTC) #8
erikchen
shess: Looking for an OWNER review of chrome/browser/ui/cocoa
6 years, 4 months ago (2014-08-14 17:39:22 UTC) #9
Scott Hess - ex-Googler
lgtm
6 years, 4 months ago (2014-08-14 18:18:37 UTC) #10
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 4 months ago (2014-08-14 21:41:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/463263002/80001
6 years, 4 months ago (2014-08-14 21:45:24 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-15 03:49:17 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (80001) as 289811
6 years, 4 months ago (2014-08-15 05:45:53 UTC) #14
erikchen
6 years, 3 months ago (2014-09-10 20:29:15 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:80001) has been created in
https://codereview.chromium.org/560913004/ by erikchen@chromium.org.

The reason for reverting is: When the download bar is present, the rounded
corners are on the wrong view.

https://code.google.com/p/chromium/issues/detail?id=412580.

Powered by Google App Engine
This is Rietveld 408576698