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

Issue 932033002: Re-enable vertical flow in SimplePath (Closed)

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

Description

Re-enable vertical flow in SimplePath This patch changes the default code path of vertical flow text back to the simple code path. This was changed to complex path in crbug.com/408992, but it turned out that it degrades the performance by 100-150%. The performance work for the complex path is under progress in crbug.com/446011, but in order to ship better code, this patch makes a temporary switch before the stable release. The complex path will be re-enabled once we're back to work-mode. BUG=445589 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190462

Patch Set 1 : Merge and cleanup without TestExpectations #

Patch Set 2 : TestExpectations #

Patch Set 3 : TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -21 lines) Patch
M LayoutTests/TestExpectations View 1 2 2 chunks +89 lines, -2 lines 0 comments Download
M Source/platform/fonts/Font.cpp View 3 chunks +32 lines, -18 lines 0 comments Download
M Source/platform/fonts/GlyphPageTreeNode.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/fonts/SimpleFontData.h View 1 chunk +4 lines, -1 line 0 comments Download
M Source/platform/fonts/opentype/OpenTypeVerticalData.h View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/platform/fonts/opentype/OpenTypeVerticalData.cpp View 4 chunks +311 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
kojii
eae@, PTAL. linux_blink_dbg is failing for worker, I'll re-run the test tomorrow. Note that I ...
5 years, 10 months ago (2015-02-18 19:40:34 UTC) #3
eae
On 2015/02/18 19:40:34, koji wrote: > eae@, PTAL. > > linux_blink_dbg is failing for worker, ...
5 years, 10 months ago (2015-02-18 20:30:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/932033002/60001
5 years, 10 months ago (2015-02-19 03:25:53 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=190462
5 years, 10 months ago (2015-02-19 12:31:35 UTC) #9
bungeman-skia
Not sure where to point this out, but fewer and fewer of the installed fonts ...
5 years, 10 months ago (2015-02-19 18:49:51 UTC) #10
kojii
5 years, 10 months ago (2015-02-21 12:35:39 UTC) #11
Message was sent while issue was closed.
On 2015/02/19 18:49:51, bungeman1 wrote:
> Not sure where to point this out, but fewer and fewer of the installed fonts
on
> Mac use the 'GSUB' table 'vert' feature for vertical substitutions. Instead,
> they're using AAT tables ('mort'/'morx') or other shaping mechanisms. As a
> result, most 'simple' vertical shaping is broken on Mac by this (and has been
> since M40). It doesn't matter how fast it draws if the wrong thing is drawn.
(In
> other words, I'm sad to see 'simple' vertical text on Mac is going to continue
> to be broken in M42.)

Thank you for the feedback! Not many people talks about non-OpenType
technologies in CSS WG, so feedback like this is greatly appreciated.

Mostly from my curiosity, but could you tell me which scripts they are?

If they are one of horizontal-only scripts as defined in CSS:
http://dev.w3.org/csswg/css-writing-modes-3/#script-orientations
I strongly recommend to use "-webkit-text-orientation: sideways-right".

Currently, Blink is NOT comformant to the spec in terms of inline alignment in
vertical flow, and I'm hearing requests to fix this from vertical scripts
people. If we fix this, however, it will have unpleasant side effects for
horizontal-only scripts, and this property will protect you from such fix. See
the wiki below.
https://wiki.csswg.org/spec/css3-writing-modes/author-css#horizontal-only-scr...

And if I understand correctly, when it's specified, Blink can render AAT
correctly.

I'd like to make Blink good for as much people as possible in all combinations,
but it'll take time. There are reasons why vertical scripts people needs
performance, and I don't want to pick one by sacrificing the other. I appreciate
your patience.

Note that, if things don't work even with "-webkit-text-orientation:
sideways-right", I understand it's higher priority than when not specified.
Please do let me know if that's the case.

Powered by Google App Engine
This is Rietveld 408576698