Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(204)

Issue 368003002: Check if drawFocusRingMaskWithFrame:inView: exists when drawing focus ring (Closed)

Created:
5 years, 10 months ago by keishi
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Check if drawFocusRingMaskWithFrame:inView: exists when drawing focus ring drawFocusRingMaskWithFrame:inView: only exists for Mac OS X 10.7 and later. BUG=328814, 425274 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196915 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197740

Patch Set 1 #

Total comments: 3

Patch Set 2 : Check before calling setShowsFirstResponder #

Total comments: 2

Patch Set 3 : Removed BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING #

Total comments: 3

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Use NSInvocation #

Patch Set 6 : added forward declaration #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : changed to _cr_drawFocusRingWithFrame #

Patch Set 9 : changed to cr_drawFocusRingWithFrame #

Patch Set 10 : avoid drawing focus ring twice #

Patch Set 11 : #

Patch Set 12 : New #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : changed to C++ method #

Total comments: 4

Patch Set 16 : #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -53 lines) Patch
M Source/core/layout/LayoutThemeMac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -3 lines 0 comments Download
M Source/core/paint/ThemePainterMac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -4 lines 0 comments Download
M Source/platform/mac/ThemeMac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -1 line 0 comments Download
M Source/platform/mac/ThemeMac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +37 lines, -33 lines 0 comments Download
M Source/platform/mac/WebCoreNSCellExtras.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -8 lines 0 comments Download
M Source/platform/mac/WebCoreNSCellExtras.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 58 (16 generated)
keishi
drawFocusRingMaskWithFrame:inView: is only available for 10.7 and later so check if it exists.
5 years, 10 months ago (2014-07-02 14:17:28 UTC) #1
Robert Sesek
https://codereview.chromium.org/368003002/diff/1/Source/platform/mac/ThemeMac.mm File Source/platform/mac/ThemeMac.mm (left): https://codereview.chromium.org/368003002/diff/1/Source/platform/mac/ThemeMac.mm#oldcode171 Source/platform/mac/ThemeMac.mm:171: #if BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING Why is it safe to remove this?
5 years, 10 months ago (2014-07-02 14:45:42 UTC) #2
keishi
https://codereview.chromium.org/368003002/diff/1/Source/platform/mac/ThemeMac.mm File Source/platform/mac/ThemeMac.mm (left): https://codereview.chromium.org/368003002/diff/1/Source/platform/mac/ThemeMac.mm#oldcode171 Source/platform/mac/ThemeMac.mm:171: #if BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING On 2014/07/02 14:45:42, rsesek wrote: > Why ...
5 years, 10 months ago (2014-07-02 15:54:05 UTC) #3
Jiang Jiang
On 2014/07/02 15:54:05, keishi wrote: > https://codereview.chromium.org/368003002/diff/1/Source/platform/mac/ThemeMac.mm > File Source/platform/mac/ThemeMac.mm (left): > > https://codereview.chromium.org/368003002/diff/1/Source/platform/mac/ThemeMac.mm#oldcode171 > ...
5 years, 10 months ago (2014-07-04 15:39:39 UTC) #4
keishi
https://codereview.chromium.org/368003002/diff/1/Source/platform/mac/ThemeMac.mm File Source/platform/mac/ThemeMac.mm (left): https://codereview.chromium.org/368003002/diff/1/Source/platform/mac/ThemeMac.mm#oldcode171 Source/platform/mac/ThemeMac.mm:171: #if BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING On 2014/07/02 15:54:05, keishi wrote: > On ...
5 years, 9 months ago (2014-07-07 09:16:07 UTC) #5
keishi
On 2014/07/07 09:16:07, keishi wrote: > https://codereview.chromium.org/368003002/diff/1/Source/platform/mac/ThemeMac.mm > File Source/platform/mac/ThemeMac.mm (left): > > https://codereview.chromium.org/368003002/diff/1/Source/platform/mac/ThemeMac.mm#oldcode171 > ...
5 years, 9 months ago (2014-07-17 08:18:41 UTC) #6
Robert Sesek
I apologize. I didn't realize you were waiting on me. On 2014/07/04 15:39:39, Jiang wrote: ...
5 years, 9 months ago (2014-07-17 15:12:32 UTC) #7
keishi
Opera's already known to be working patch would be better but I've updated the patch ...
5 years, 9 months ago (2014-07-18 13:26:55 UTC) #8
Robert Sesek
https://codereview.chromium.org/368003002/diff/40001/Source/core/rendering/RenderThemeChromiumMac.mm File Source/core/rendering/RenderThemeChromiumMac.mm (right): https://codereview.chromium.org/368003002/diff/40001/Source/core/rendering/RenderThemeChromiumMac.mm#newcode629 Source/core/rendering/RenderThemeChromiumMac.mm:629: if ([cell respondsToSelector:@selector(drawFocusRingMaskWithFrame:inView:)]) Add a comment as to why ...
5 years, 9 months ago (2014-07-21 21:14:38 UTC) #9
tkent
I confirmed this CL resolved crbug.com/425274, Yosemite focus ring issue. Keishi, can you proceed this? ...
4 years, 11 months ago (2015-06-04 09:06:56 UTC) #10
Robert Sesek
https://codereview.chromium.org/368003002/diff/60001/Source/platform/mac/WebCoreNSCellExtras.mm File Source/platform/mac/WebCoreNSCellExtras.mm (right): https://codereview.chromium.org/368003002/diff/60001/Source/platform/mac/WebCoreNSCellExtras.mm#newcode39 Source/platform/mac/WebCoreNSCellExtras.mm:39: [self drawFocusRingMaskWithFrame:cellFrame inView:controlView]; On 2015/06/04 09:06:56, tkent wrote: > ...
4 years, 11 months ago (2015-06-04 11:21:04 UTC) #11
keishi
https://codereview.chromium.org/368003002/diff/60001/Source/platform/mac/WebCoreNSCellExtras.mm File Source/platform/mac/WebCoreNSCellExtras.mm (right): https://codereview.chromium.org/368003002/diff/60001/Source/platform/mac/WebCoreNSCellExtras.mm#newcode39 Source/platform/mac/WebCoreNSCellExtras.mm:39: [self drawFocusRingMaskWithFrame:cellFrame inView:controlView]; On 2015/06/04 11:21:04, Robert Sesek wrote: ...
4 years, 10 months ago (2015-06-08 01:38:13 UTC) #12
tkent
https://codereview.chromium.org/368003002/diff/60001/Source/platform/mac/WebCoreNSCellExtras.mm File Source/platform/mac/WebCoreNSCellExtras.mm (right): https://codereview.chromium.org/368003002/diff/60001/Source/platform/mac/WebCoreNSCellExtras.mm#newcode39 Source/platform/mac/WebCoreNSCellExtras.mm:39: [self drawFocusRingMaskWithFrame:cellFrame inView:controlView]; On 2015/06/08 01:38:12, keishi wrote: > ...
4 years, 10 months ago (2015-06-08 06:07:41 UTC) #13
keishi
On 2015/06/08 06:07:41, tkent wrote: > https://codereview.chromium.org/368003002/diff/60001/Source/platform/mac/WebCoreNSCellExtras.mm > File Source/platform/mac/WebCoreNSCellExtras.mm (right): > > https://codereview.chromium.org/368003002/diff/60001/Source/platform/mac/WebCoreNSCellExtras.mm#newcode39 > ...
4 years, 10 months ago (2015-06-08 10:40:18 UTC) #14
Robert Sesek
Overall LG. Only one more comment, which just occurred to me. https://codereview.chromium.org/368003002/diff/120001/Source/platform/mac/WebCoreNSCellExtras.mm File Source/platform/mac/WebCoreNSCellExtras.mm (right): ...
4 years, 10 months ago (2015-06-08 18:54:28 UTC) #15
keishi
On 2015/06/08 18:54:28, Robert Sesek wrote: > Overall LG. Only one more comment, which just ...
4 years, 10 months ago (2015-06-09 11:34:17 UTC) #16
Robert Sesek
LGTM
4 years, 10 months ago (2015-06-09 13:14:35 UTC) #17
keishi
Wrapped setting focus on the NSCell with respondsToSelector so we don't draw the focus ring ...
4 years, 10 months ago (2015-06-11 00:44:36 UTC) #18
tkent
lgtm
4 years, 10 months ago (2015-06-11 00:50:24 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/368003002/200001
4 years, 10 months ago (2015-06-11 00:53:00 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/66081)
4 years, 10 months ago (2015-06-11 01:43:10 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/368003002/200001
4 years, 10 months ago (2015-06-11 04:43:17 UTC) #26
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196915
4 years, 10 months ago (2015-06-11 05:54:28 UTC) #27
keishi
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/1184073004/ by keishi@chromium.org. ...
4 years, 10 months ago (2015-06-15 20:51:05 UTC) #28
keishi
After trying many builds I think this is what's happening: We only need to support ...
4 years, 10 months ago (2015-06-16 07:33:43 UTC) #29
keishi
Removed use of macros.
4 years, 10 months ago (2015-06-16 08:44:59 UTC) #30
tkent
lgtm
4 years, 10 months ago (2015-06-16 08:49:14 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/368003002/260001
4 years, 10 months ago (2015-06-16 10:12:30 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59060)
4 years, 10 months ago (2015-06-16 11:59:36 UTC) #36
Robert Sesek
On 2015/06/16 07:33:43, keishi wrote: > The new problem is that building with 10.6 sdk ...
4 years, 10 months ago (2015-06-16 23:58:33 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/368003002/260001
4 years, 10 months ago (2015-06-19 03:44:16 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59690)
4 years, 10 months ago (2015-06-19 05:19:33 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/368003002/260001
4 years, 10 months ago (2015-06-22 14:20:33 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/60083)
4 years, 10 months ago (2015-06-22 15:53:49 UTC) #45
Robert Sesek
This isn't ready for commit yet, look at the crahses from the tryjobs: 2015-06-22 08:12:37.792 ...
4 years, 10 months ago (2015-06-22 16:02:23 UTC) #46
keishi
On 2015/06/22 16:02:23, Robert Sesek wrote: > This isn't ready for commit yet, look at ...
4 years, 10 months ago (2015-06-23 11:05:22 UTC) #47
Robert Sesek
LGTM https://codereview.chromium.org/368003002/diff/280001/Source/platform/mac/WebCoreNSCellExtras.h File Source/platform/mac/WebCoreNSCellExtras.h (right): https://codereview.chromium.org/368003002/diff/280001/Source/platform/mac/WebCoreNSCellExtras.h#newcode27 Source/platform/mac/WebCoreNSCellExtras.h:27: #include "platform/PlatformExport.h" Unused? https://codereview.chromium.org/368003002/diff/280001/Source/platform/mac/WebCoreNSCellExtras.h#newcode29 Source/platform/mac/WebCoreNSCellExtras.h:29: @interface NSCell (LionSDKDeclarations) ...
4 years, 10 months ago (2015-06-23 15:11:01 UTC) #48
keishi
https://codereview.chromium.org/368003002/diff/280001/Source/platform/mac/WebCoreNSCellExtras.h File Source/platform/mac/WebCoreNSCellExtras.h (right): https://codereview.chromium.org/368003002/diff/280001/Source/platform/mac/WebCoreNSCellExtras.h#newcode27 Source/platform/mac/WebCoreNSCellExtras.h:27: #include "platform/PlatformExport.h" On 2015/06/23 15:11:01, Robert Sesek wrote: > ...
4 years, 10 months ago (2015-06-24 02:36:00 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/368003002/300001
4 years, 10 months ago (2015-06-24 02:36:22 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/48541)
4 years, 10 months ago (2015-06-24 02:47:38 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/368003002/320001
4 years, 10 months ago (2015-06-24 11:34:34 UTC) #57
commit-bot: I haz the power
4 years, 10 months ago (2015-06-24 13:55:13 UTC) #58
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197740

Powered by Google App Engine
This is Rietveld 408576698