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

Issue 1404853003: Add SVG Text to support the CSS 'text-orientation' property (Closed)

Created:
5 years, 2 months ago by kojii
Modified:
5 years, 2 months ago
Reviewers:
drott, fs, eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), gyuyoung2, jbroman, jchaffraix+rendering, Justin Novosad, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add SVG Text to support the CSS 'text-orientation' property This patch changes SVGTextLayoutEngine to rely on fonts to orient glyphs in vertical flow. As the result, this patch changes: 1. SVG text uses the CSS 'text-orientation' property to orient glyphs in vertical flow. This is defined in the CSS spec[1] and will give consistent authoring for CSS and SVG. 2. Vertical alternate forms of glyphs are enabled as defined in the CSS/SVG specs. 3. The SVG 'glyph-orientation-vertical/glyph-orientation-horizontal' properties are no longer honored. Removal of these properties will be in a following patch. [1] https://drafts.csswg.org/css-writing-modes-3/#glyph-orientation BUG=540782, 543397 Committed: https://crrev.com/a5703876c2ba95f3cd5684edeaf91314b0cbd627 Cr-Commit-Position: refs/heads/master@{#354970}

Patch Set 1 #

Patch Set 2 : Add maps to tests #

Patch Set 3 : TestExpectations #

Total comments: 3

Patch Set 4 : fs review #

Total comments: 2

Patch Set 5 : drott review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -115 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/text-align-05-b.svg View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/text-align-06-b.svg View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/text-intro-03-b.svg View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/batik/text/textGlyphOrientationHorizontal.svg View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/batik/text/verticalText.svg View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/batik/text/verticalTextOnPath.svg View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/text/resources/glyph-orientation-vertical.css View 1 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/text/text-selection-align-05-b.svg View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/text/text-selection-align-06-b.svg View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp View 1 chunk +0 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngine.cpp View 1 2 3 4 7 chunks +20 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngineBaseline.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp View 1 chunk +0 lines, -83 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.cpp View 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontOrientation.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
kojii
PTAL. bots failures are conflicting NeedsRebaseline as rebaseline bots are not working for a few ...
5 years, 2 months ago (2015-10-16 07:52:13 UTC) #2
fs
This looks great! LGTM w/ a few nits and a question. On 2015/10/16 at 07:52:13, ...
5 years, 2 months ago (2015-10-16 10:54:50 UTC) #3
kojii
On 2015/10/16 10:54:50, fs wrote: > > That's good to hear. I CC'd you on ...
5 years, 2 months ago (2015-10-18 14:02:27 UTC) #6
kojii
drott@, eae@, PTAL for one file in platform/fonts.
5 years, 2 months ago (2015-10-18 14:03:46 UTC) #8
fs
On 2015/10/18 at 14:02:27, kojii wrote: > On 2015/10/16 10:54:50, fs wrote: > > > ...
5 years, 2 months ago (2015-10-18 20:46:02 UTC) #9
drott
LGTM for platform/fonts/* with just a naming suggestion and please file a bug report for ...
5 years, 2 months ago (2015-10-19 07:00:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1404853003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1404853003/120001
5 years, 2 months ago (2015-10-20 03:15:32 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years, 2 months ago (2015-10-20 03:20:26 UTC) #14
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/a5703876c2ba95f3cd5684edeaf91314b0cbd627 Cr-Commit-Position: refs/heads/master@{#354970}
5 years, 2 months ago (2015-10-20 03:21:18 UTC) #15
kojii
5 years, 2 months ago (2015-10-20 03:43:56 UTC) #16
Message was sent while issue was closed.
On 2015/10/19 07:00:04, drott wrote:
> LGTM for platform/fonts/* with just a naming suggestion and please file a bug
> report for TODOs.
> 
> Nice work, great to see this unification of vertical handling.
> 
>
https://codereview.chromium.org/1404853003/diff/100001/third_party/WebKit/Sou...
> File third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.h (right):
> 
>
https://codereview.chromium.org/1404853003/diff/100001/third_party/WebKit/Sou...
> third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.h:52: // TODO(kojii):
> We should store logical width (advance) and height instead
> Could you add a bug report and reference it from here?

Done.

>
https://codereview.chromium.org/1404853003/diff/100001/third_party/WebKit/Sou...
> File third_party/WebKit/Source/platform/fonts/FontOrientation.h (right):
> 
>
https://codereview.chromium.org/1404853003/diff/100001/third_party/WebKit/Sou...
> third_party/WebKit/Source/platform/fonts/FontOrientation.h:58: inline
> FontOrientation resolveMixedFontOrientation(FontOrientation orientation,
UChar32
> character)
> How about adjustOrientationForCharacterInMixedVertical()?

Done, thank you for the review.

Powered by Google App Engine
This is Rietveld 408576698