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

Issue 779793006: MacViews: Use RenderTextHarfBuzz only for Textfields (Closed)

Created:
6 years ago by Andre
Modified:
6 years ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, penghuang+watch_chromium.org, nona+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

MacViews: Use RenderTextHarfBuzz only for Textfields Using RenderTextHarfBuzz for string sizing and eliding on Mac is problematic because it may not match when drawn by Cocoa, so we use RenderTextMac. But RenderTextMac does not have support for editing that is needed by views::Textfield, so use RenderTextHarfBuzz for MacViews textfields. Committed: https://crrev.com/62fd79bb7907a559887866bbdba869d25f72b011 Cr-Commit-Position: refs/heads/master@{#307396}

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : Fix for msw #

Patch Set 4 : Rename to CreateInstanceOfSameType #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -4 lines) Patch
M ui/gfx/render_text.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/render_text_mac.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_mac.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/render_text_pango.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_pango.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/render_text_win.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_win.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_model.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/examples/multiline_example.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (6 generated)
Andre
asvitkine, msw, PTAL.
6 years ago (2014-12-06 00:02:48 UTC) #3
Andre
6 years ago (2014-12-06 00:41:24 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (left): https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.cc#oldcode401 ui/gfx/render_text.cc:401: #if defined(OS_MACOSX) && !defined(TOOLKIT_VIEWS) Is this change needed anymore?
6 years ago (2014-12-08 15:53:10 UTC) #5
Andre
https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (left): https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.cc#oldcode401 ui/gfx/render_text.cc:401: #if defined(OS_MACOSX) && !defined(TOOLKIT_VIEWS) On 2014/12/08 15:53:10, Alexei Svitkine ...
6 years ago (2014-12-08 18:33:46 UTC) #6
Alexei Svitkine (slow)
lgtm
6 years ago (2014-12-08 18:43:14 UTC) #7
msw
https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.cc#newcode412 ui/gfx/render_text.cc:412: return new RenderTextHarfBuzz; Shouldn't this respect kDisableHarfBuzzRenderText? https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.h File ...
6 years ago (2014-12-08 19:27:50 UTC) #8
Andre
https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.cc#newcode412 ui/gfx/render_text.cc:412: return new RenderTextHarfBuzz; On 2014/12/08 19:27:50, msw wrote: > ...
6 years ago (2014-12-08 19:51:32 UTC) #9
msw
lgtm with CreateInstanceForClone rename nit. https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.h File ui/gfx/render_text.h (right): https://codereview.chromium.org/779793006/diff/40001/ui/gfx/render_text.h#newcode197 ui/gfx/render_text.h:197: virtual scoped_ptr<RenderText> NewInstance() const ...
6 years ago (2014-12-08 19:57:52 UTC) #10
Alexei Svitkine (slow)
I don't like using the word "clone" because it does imply copied properties, which as ...
6 years ago (2014-12-08 20:01:17 UTC) #11
Andre
On 2014/12/08 20:01:17, Alexei Svitkine wrote: > I don't like using the word "clone" because ...
6 years ago (2014-12-08 20:35:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/779793006/80001
6 years ago (2014-12-08 21:21:51 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/28933)
6 years ago (2014-12-08 21:28:21 UTC) #16
Andre
sky@ PTAL for views/examples.
6 years ago (2014-12-08 21:38:01 UTC) #18
sky
LGTM
6 years ago (2014-12-09 00:56:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/779793006/80001
6 years ago (2014-12-09 01:31:00 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:80001)
6 years ago (2014-12-09 01:34:09 UTC) #22
commit-bot: I haz the power
6 years ago (2014-12-09 01:35:06 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/62fd79bb7907a559887866bbdba869d25f72b011
Cr-Commit-Position: refs/heads/master@{#307396}

Powered by Google App Engine
This is Rietveld 408576698