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

Issue 10543057: Initial RenderTextMac implementation using CoreText. (Closed)

Created:
8 years, 6 months ago by Alexei Svitkine (slow)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org, msw
Visibility:
Public.

Description

Initial RenderTextMac implementation using CoreText. Has support for drawing and sizing the text, but not selection and cursor movement. BUG=125664 TEST=Existing RenderText unit tests and manual testing by enabling RenderText on Mac in print_web_view_helper.cc code.

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Total comments: 19

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+510 lines, -21 lines) Patch
M base/base.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M base/mac/foundation_util.h View 1 2 3 4 3 chunks +11 lines, -0 lines 0 comments Download
M base/mac/foundation_util.mm View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M skia/ext/skia_utils_mac.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A ui/gfx/render_text_mac.h View 1 2 3 1 chunk +96 lines, -0 lines 0 comments Download
A ui/gfx/render_text_mac.cc View 1 2 3 4 1 chunk +369 lines, -0 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 3 4 6 chunks +12 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 4 chunks +8 lines, -18 lines 0 comments Download
M ui/ui_unittests.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
Alexei Svitkine (slow)
thakis: review msw: fyi
8 years, 6 months ago (2012-06-18 15:02:49 UTC) #1
Nico
I haven't finished reading render_test_mac.cc. It says "pixels" in several places where it doesn't really ...
8 years, 6 months ago (2012-06-18 15:48:01 UTC) #2
Alexei Svitkine (slow)
On Mon, Jun 18, 2012 at 11:48 AM, <thakis@chromium.org> wrote: > I haven't finished reading ...
8 years, 6 months ago (2012-06-18 18:50:41 UTC) #3
msw
Driveby gyp nits. http://codereview.chromium.org/10543057/diff/23004/ui/ui.gyp File ui/ui.gyp (right): http://codereview.chromium.org/10543057/diff/23004/ui/ui.gyp#newcode670 ui/ui.gyp:670: ['toolkit_views==0 and use_canvas_skia==0 and OS!="mac"', { ...
8 years, 6 months ago (2012-06-18 21:18:59 UTC) #4
Alexei Svitkine (slow)
(Still waiting for a more in-depth review from Nico.) http://codereview.chromium.org/10543057/diff/23004/ui/ui.gyp File ui/ui.gyp (right): http://codereview.chromium.org/10543057/diff/23004/ui/ui.gyp#newcode670 ui/ui.gyp:670: ...
8 years, 6 months ago (2012-06-22 15:55:47 UTC) #5
msw
Remember to add GetBaseline when you land your other CL. http://codereview.chromium.org/10543057/diff/31001/base/mac/foundation_util.h File base/mac/foundation_util.h (right): http://codereview.chromium.org/10543057/diff/31001/base/mac/foundation_util.h#newcode10 ...
8 years, 6 months ago (2012-06-22 17:42:10 UTC) #6
Nico
Sorry, please ping me faster when I forget about a review. http://codereview.chromium.org/10543057/diff/31001/ui/gfx/render_text_mac.cc File ui/gfx/render_text_mac.cc (right): ...
8 years, 6 months ago (2012-06-22 18:04:10 UTC) #7
Alexei Svitkine (slow)
(I've also added several TODOs about some areas for improvement in the code.) http://codereview.chromium.org/10543057/diff/31001/base/mac/foundation_util.h File ...
8 years, 6 months ago (2012-06-22 19:35:29 UTC) #8
Nico
http://codereview.chromium.org/10543057/diff/31001/ui/gfx/render_text_mac.cc File ui/gfx/render_text_mac.cc (right): http://codereview.chromium.org/10543057/diff/31001/ui/gfx/render_text_mac.cc#newcode234 ui/gfx/render_text_mac.cc:234: CGColorRef foreground = gfx::SkColorToCGColorRef(style.foreground); On 2012/06/22 19:35:29, Alexei Svitkine ...
8 years, 6 months ago (2012-06-22 19:38:05 UTC) #9
Alexei Svitkine (slow)
I've updated the CL to rebase it on current TOT and also fix an issue ...
8 years, 5 months ago (2012-07-16 22:43:07 UTC) #10
Alexei Svitkine (slow)
ping?
8 years, 5 months ago (2012-07-21 02:43:31 UTC) #11
Alexei Svitkine (slow)
http://codereview.chromium.org/10543057/diff/31001/ui/gfx/render_text_mac.cc File ui/gfx/render_text_mac.cc (right): http://codereview.chromium.org/10543057/diff/31001/ui/gfx/render_text_mac.cc#newcode241 ui/gfx/render_text_mac.cc:241: CFNumberRef underline = CFNumberCreate(NULL, kCFNumberSInt32Type, &value); On 2012/07/16 22:43:08, ...
8 years, 5 months ago (2012-07-21 14:10:58 UTC) #12
Nico
You might want to mention in a comment why you use pixels instead of points. ...
8 years, 5 months ago (2012-07-21 16:17:23 UTC) #13
Alexei Svitkine (slow)
+mark for base/ OWNERS (thakis y u not in base/ OWNERS anymore?) +sky for ui/ ...
8 years, 5 months ago (2012-07-23 14:33:35 UTC) #14
Alexei Svitkine (slow)
+mark for base/ OWNERS (thakis y u not in base/ OWNERS anymore?) +sky for ui/ ...
8 years, 5 months ago (2012-07-23 14:33:51 UTC) #15
Mark Mentovai
LGTM for base OWNERS approval. I only reviewed in base.
8 years, 5 months ago (2012-07-23 15:20:39 UTC) #16
sky
LGTM
8 years, 5 months ago (2012-07-23 16:14:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10543057/90010
8 years, 5 months ago (2012-07-23 16:34:57 UTC) #18
commit-bot: I haz the power
Presubmit check for 10543057-90010 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 5 months ago (2012-07-23 16:35:06 UTC) #19
stuartmorgan
Could I convince you to move your foundation_util changes to another file? They aren't foundation, ...
8 years, 5 months ago (2012-07-24 10:55:47 UTC) #20
stuartmorgan
(And yes, we are working on getting our bot into CQ and main waterfall so ...
8 years, 5 months ago (2012-07-24 10:56:24 UTC) #21
Alexei Svitkine (slow)
On Tue, Jul 24, 2012 at 6:55 AM, <stuartmorgan@chromium.org> wrote: > Could I convince you ...
8 years, 4 months ago (2012-07-24 12:43:21 UTC) #22
stuartmorgan
2012/7/24 Alexei Svitkine <asvitkine@chromium.org> > > > On Tue, Jul 24, 2012 at 6:55 AM, ...
8 years, 4 months ago (2012-07-24 12:53:00 UTC) #23
stuartmorgan
Sorry, not sure what happened there. I haven't dug all the way in, but you ...
8 years, 4 months ago (2012-07-24 12:56:17 UTC) #24
stuartmorgan
8 years, 4 months ago (2012-07-24 13:02:59 UTC) #25
On 2012/07/24 12:43:21, Alexei Svitkine wrote:
> Perhaps we're just missing an include of CoreText/CoreText.h on iOS?

You're right, sorry for freaking out :) I'll follow up with a fix.

Powered by Google App Engine
This is Rietveld 408576698