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

Issue 707013004: Fix clipping RenderTextHarfBuzz text on Windows 8. (Closed)

Created:
6 years, 1 month ago by msw
Modified:
6 years, 1 month ago
CC:
chromium-reviews, Daniel Erat
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix clipping RenderTextHarfBuzz text on Windows 8. Round run widths on Windows without subpixel positioning. (same as the Linux fix for the similar Issue 402374, etc.) This fixes all clipped Win8 text seen in Issue 424484. I see no visible effect on already-correct Win7/8 text. See comparison screenshots at http://crbug.com/424484#c12 BUG=424484 TEST=Win7/8 text looks good with and without ClearType. R=pkasting@chromium.org,ckocagil@chromium.org,asvitkine@chromium.org Committed: https://crrev.com/7bdf3eb7cce5411af3b2703f33dcef1e1307af20 Cr-Commit-Position: refs/heads/master@{#303726}

Patch Set 1 #

Patch Set 2 : Refactoring. #

Total comments: 2

Patch Set 3 : Add a hacky temporary OmniboxResultView fix. #

Patch Set 4 : Simplify the hack to width+1 in RenderTextHarfBuzz::GetStringSizeF. #

Patch Set 5 : Round run widths without subpixel positioning on Windows too. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -3 lines) Patch
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
Peter Kasting
https://codereview.chromium.org/707013004/diff/20001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/707013004/diff/20001/ui/gfx/render_text.cc#newcode1098 ui/gfx/render_text.cc:1098: offset.set_x((offset.x() + kLeftOfCenterPadding) / 2); I don't understand why ...
6 years, 1 month ago (2014-11-06 23:14:48 UTC) #2
msw
Please take a fresh look; thanks! https://codereview.chromium.org/707013004/diff/20001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/707013004/diff/20001/ui/gfx/render_text.cc#newcode1098 ui/gfx/render_text.cc:1098: offset.set_x((offset.x() + kLeftOfCenterPadding) ...
6 years, 1 month ago (2014-11-06 23:48:44 UTC) #4
Peter Kasting
It would be nice to at least understand what's going on that causes this problem, ...
6 years, 1 month ago (2014-11-06 23:51:26 UTC) #5
msw
On 2014/11/06 23:51:26, Peter Kasting wrote: > It would be nice to at least understand ...
6 years, 1 month ago (2014-11-06 23:57:43 UTC) #6
Peter Kasting
On 2014/11/06 23:57:43, msw wrote: > I don't have oodles of time for this... The ...
6 years, 1 month ago (2014-11-07 00:02:09 UTC) #7
msw
On 2014/11/07 00:02:09, Peter Kasting wrote: > On 2014/11/06 23:57:43, msw wrote: > > I ...
6 years, 1 month ago (2014-11-07 00:31:54 UTC) #8
msw
I tried a number of other changes locally (ceil'ing GetStringSizeF/GetContentWidth, using enclosing bounds on GetGraphemeBounds, ...
6 years, 1 month ago (2014-11-11 03:34:09 UTC) #11
ckocagil
On 2014/11/11 03:34:09, msw wrote: > I tried a number of other changes locally (ceil'ing ...
6 years, 1 month ago (2014-11-11 15:49:49 UTC) #12
Alexei Svitkine (slow)
code change looks good - the fewer ifdefs between platforms the better - but as ...
6 years, 1 month ago (2014-11-11 16:10:17 UTC) #13
msw
I posted screenshots at http://crbug.com/424484#c12 The fix shifts all defective text over one pixel, and ...
6 years, 1 month ago (2014-11-11 20:16:30 UTC) #14
ckocagil
On 2014/11/11 20:16:30, msw wrote: > I posted screenshots at http://crbug.com/424484#c12 > The fix shifts ...
6 years, 1 month ago (2014-11-11 20:19:27 UTC) #15
Alexei Svitkine (slow)
lgtm
6 years, 1 month ago (2014-11-11 20:31:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/707013004/80001
6 years, 1 month ago (2014-11-11 20:45:44 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-11-11 21:48:22 UTC) #19
commit-bot: I haz the power
6 years, 1 month ago (2014-11-11 21:48:53 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7bdf3eb7cce5411af3b2703f33dcef1e1307af20
Cr-Commit-Position: refs/heads/master@{#303726}

Powered by Google App Engine
This is Rietveld 408576698