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

Issue 488353003: Specify clip rects when drawing Mac native widgets (Closed)

Created:
6 years, 4 months ago by ccameron
Modified:
6 years, 4 months ago
CC:
Avi (use Gerrit), blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, Nico, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Specify clip rects when drawing Mac native widgets Add the clip rect as an argument to LocalCurrentGraphicsContext, and specify the rect for all callers. Add the rect argument for the one direct caller to SkiaBitLocker (the argument will be made a requirement once this lands). De-duplicate a bunch of rectangle-inflating code and move it into ThemeMac. For the selected widgets that draw their own focus rings (most don't), simply specify the maximum inflation of the clip rect as 16 pixels on each side. This appears to be very generous. The correct API call to compute this, focusRingMaskBoundsForFrame, was introduced in the 10.7 API, and the widgets that draw their own focus rings wouldn't need to do so if written against the the 10.7 API. BUG=247716 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180822

Patch Set 1 #

Total comments: 2

Patch Set 2 : Incorporate review feedbac #

Total comments: 2

Patch Set 3 : Retry with AA #

Patch Set 4 : Rebase #

Patch Set 5 : Add test expectations update #

Patch Set 6 : More rebaselines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -73 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderThemeChromiumMac.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderThemeChromiumMac.mm View 15 chunks +14 lines, -46 lines 0 comments Download
M Source/platform/mac/LocalCurrentGraphicsContext.h View 2 chunks +3 lines, -1 line 0 comments Download
M Source/platform/mac/LocalCurrentGraphicsContext.mm View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M Source/platform/mac/ThemeMac.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M Source/platform/mac/ThemeMac.mm View 1 2 9 chunks +37 lines, -19 lines 0 comments Download
M Source/platform/scroll/ScrollbarThemeMacNonOverlayAPI.mm View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/platform/scroll/ScrollbarThemeMacOverlayAPI.mm View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
ccameron
This is to land on top of https://codereview.chromium.org/462423006/, which will make drawing native widgets with ...
6 years, 4 months ago (2014-08-21 05:08:39 UTC) #1
eseidel
This looks reasonable. Unclear if this works correctly with themed controls which have transforms or ...
6 years, 4 months ago (2014-08-21 05:13:05 UTC) #2
ccameron
On 2014/08/21 05:13:05, eseidel wrote: > This looks reasonable. Unclear if this works correctly with ...
6 years, 4 months ago (2014-08-21 08:50:38 UTC) #3
Ken Russell (switch to Gerrit)
LGTM as far as I can tell from examining the code. One question. https://codereview.chromium.org/488353003/diff/20001/Source/platform/mac/ThemeMac.mm File ...
6 years, 4 months ago (2014-08-21 20:43:52 UTC) #4
ccameron
Thanks! https://codereview.chromium.org/488353003/diff/20001/Source/platform/mac/ThemeMac.mm File Source/platform/mac/ThemeMac.mm (right): https://codereview.chromium.org/488353003/diff/20001/Source/platform/mac/ThemeMac.mm#newcode221 Source/platform/mac/ThemeMac.mm:221: #if BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING On 2014/08/21 20:43:52, Ken Russell wrote: ...
6 years, 4 months ago (2014-08-21 20:58:34 UTC) #5
ccameron
On 2014/08/21 20:58:34, ccameron1 wrote: > Thanks! > > https://codereview.chromium.org/488353003/diff/20001/Source/platform/mac/ThemeMac.mm > File Source/platform/mac/ThemeMac.mm (right): > ...
6 years, 4 months ago (2014-08-22 19:58:04 UTC) #6
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 4 months ago (2014-08-23 02:54:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/488353003/80001
6 years, 4 months ago (2014-08-23 02:55:19 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-23 03:50:12 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-23 04:25:40 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/20894)
6 years, 4 months ago (2014-08-23 04:25:41 UTC) #11
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 4 months ago (2014-08-23 04:55:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/488353003/90010
6 years, 4 months ago (2014-08-23 04:56:10 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-08-24 05:10:30 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (90010) as 180822

Powered by Google App Engine
This is Rietveld 408576698