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

Issue 1242213002: Add tab characters support in complex path (Closed)

Created:
5 years, 5 months ago by kojii
Modified:
5 years, 4 months ago
Reviewers:
drott, ebraminio, eae
CC:
blink-reviews, Rik, danakj, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add tab characters support in complex path This patch adds Tab characters support in complex path. Tab characters have different advances depends on the tab-size CSS property and the current position, which is not suitable for Harfbuzz to handle. This patch lets CachingWordShapeIterator to split tab characters into separate runs before passing to HarffBuzzShaper. Two layout tests are copies of existing tests with "text-rendering: optimizeLegibility" added. These tests can be removed when simple path is unified with complex path (crbug.com/404597). BUG=422670 TEST=css3/tab-size-complex-path.html TEST=fast/css/tab-size-complex-path.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200331

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : Minor cleanup #

Patch Set 9 : CachingWordShapeIterator separates tab runs #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase #

Total comments: 6

Patch Set 12 : eae's review #

Patch Set 13 : Enable word cache when allowTabs #

Patch Set 14 : fast/text/drawBidiText.html NeedsRebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -31 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
A + LayoutTests/css3/tab-size-complex-path.html View 1 2 3 chunks +5 lines, -1 line 0 comments Download
A + LayoutTests/css3/tab-size-complex-path-expected.txt View 1 2 3 4 1 chunk +1 line, -8 lines 0 comments Download
A + LayoutTests/fast/css/tab-size-complex-path.html View 1 2 1 chunk +4 lines, -1 line 0 comments Download
A + LayoutTests/fast/css/tab-size-complex-path-expected.html View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/platform/fonts/shaping/CachingWordShapeIterator.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +69 lines, -22 lines 0 comments Download
M Source/platform/fonts/shaping/HarfBuzzShaper.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/fonts/shaping/HarfBuzzShaper.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (4 generated)
kojii
PTAL. The diff gets a little larger than expected. The other possibility is to split ...
5 years, 5 months ago (2015-07-20 07:41:19 UTC) #2
eae
Seems reasonable but is a little weird given that tabs are handled outside of harfbuzz. ...
5 years, 5 months ago (2015-07-20 17:39:24 UTC) #3
kojii
On 2015/07/20 17:39:24, eae wrote: > Seems reasonable but is a little weird given that ...
5 years, 5 months ago (2015-07-21 01:11:48 UTC) #4
eae
On Mon, Jul 20, 2015 at 6:11 PM, <kojii@chromium.org> wrote: > Thank you for the ...
5 years, 5 months ago (2015-07-21 01:59:12 UTC) #5
kojii
PTAL. Moved to CachingWordShapeIterator, and this looks promising. Notes on landing: * This CL is ...
5 years, 4 months ago (2015-07-31 04:16:44 UTC) #8
kojii
Rebase
5 years, 4 months ago (2015-08-10 02:39:52 UTC) #9
kojii
PTAL.
5 years, 4 months ago (2015-08-10 14:08:32 UTC) #10
eae
Nice! https://codereview.chromium.org/1242213002/diff/240001/Source/platform/fonts/shaping/CachingWordShapeIterator.h File Source/platform/fonts/shaping/CachingWordShapeIterator.h (right): https://codereview.chromium.org/1242213002/diff/240001/Source/platform/fonts/shaping/CachingWordShapeIterator.h#newcode83 Source/platform/fonts/shaping/CachingWordShapeIterator.h:83: return true; Shouldn't this be "return *wordResult != ...
5 years, 4 months ago (2015-08-10 17:24:08 UTC) #11
kojii
PTAL. Please see inline for more: https://codereview.chromium.org/1242213002/diff/240001/Source/platform/fonts/shaping/CachingWordShapeIterator.h File Source/platform/fonts/shaping/CachingWordShapeIterator.h (right): https://codereview.chromium.org/1242213002/diff/240001/Source/platform/fonts/shaping/CachingWordShapeIterator.h#newcode83 Source/platform/fonts/shaping/CachingWordShapeIterator.h:83: return true; On ...
5 years, 4 months ago (2015-08-11 07:22:21 UTC) #12
eae
LGTM I think this is fine. If there is a performance regression we could always ...
5 years, 4 months ago (2015-08-11 16:32:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1242213002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1242213002/300001
5 years, 4 months ago (2015-08-11 16:32:58 UTC) #15
commit-bot: I haz the power
Committed patchset #14 (id:300001) as https://src.chromium.org/viewvc/blink?view=rev&revision=200331
5 years, 4 months ago (2015-08-11 16:39:05 UTC) #16
ebraminio
Thank you for fixing this :) > Good point, we need to do that if ...
5 years, 4 months ago (2015-08-11 17:50:09 UTC) #17
kojii
On 2015/08/11 17:50:09, ebraminio wrote: > Thank you for fixing this :) Thank you for ...
5 years, 4 months ago (2015-08-12 00:50:23 UTC) #18
ebraminio
> The landed patch does enable the word cache for allowTabs, so it should be ...
5 years, 4 months ago (2015-08-12 07:16:50 UTC) #19
cbiesinger
I think this is causing crashes on Mac: Assertion failed: (bool (status_or & kCTRunStatusRightToLeft) == ...
5 years, 4 months ago (2015-08-13 21:11:16 UTC) #20
ebraminio
On 2015/08/13 21:11:16, cbiesinger wrote: > I think this is causing crashes on Mac: > ...
5 years, 4 months ago (2015-08-13 21:15:12 UTC) #21
cbiesinger
Filed crbug.com/520685 on that
5 years, 4 months ago (2015-08-13 21:15:46 UTC) #22
ebraminio
> not related/specific to this AFAIK
5 years, 4 months ago (2015-08-13 21:17:48 UTC) #23
kojii
5 years, 4 months ago (2015-08-14 02:25:47 UTC) #24
Message was sent while issue was closed.
On 2015/08/13 at 21:17:48, ebraminio wrote:
> > not related/specific to this
> 
> AFAIK

Thank you cbiesinger and ebraminio, yeah, I've seen this assertion failure in
other bugs. I'll have a look.

Powered by Google App Engine
This is Rietveld 408576698