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

Issue 1882063002: Add OpenTypeCapsSupport class (Closed)

Created:
4 years, 8 months ago by drott
Modified:
4 years, 8 months ago
Reviewers:
Dirk Pranke, kojii, eae, behdad
CC:
blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@caseMapHbBufferFillerLand
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add OpenTypeCapsSupport class As preparation for implementing correct font-variant-caps we need to be able to check font files for their ability to support caps related OpenType features, such as 'smcp', 'c2sc' etc. The implementation files are split in two, one part Chromium-side implementation, one part Mozilla Public License'd code adapted from Firefox. BUG=587094 TEST=OpenTypeCapsSupportTest.cpp TBR=dpranke Committed: https://crrev.com/530c73184ff5fed64d9dae5ff1d452d1a75d3a99 Cr-Commit-Position: refs/heads/master@{#387085}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adding used font files to .isolate recipe #

Patch Set 3 : Adding used font files to .isolate recipe, now with trailing slashes #

Messages

Total messages: 30 (11 generated)
drott
4 years, 8 months ago (2016-04-12 12:57:28 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882063002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882063002/1
4 years, 8 months ago (2016-04-12 12:57:41 UTC) #4
eae
LGTM https://codereview.chromium.org/1882063002/diff/1/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupport.cpp File third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupport.cpp (right): https://codereview.chromium.org/1882063002/diff/1/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupport.cpp#newcode1 third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupport.cpp:1: // Copyright 2015 The Chromium Authors. All rights ...
4 years, 8 months ago (2016-04-12 15:20:12 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/144483)
4 years, 8 months ago (2016-04-12 15:33:51 UTC) #7
behdad
lgtm https://codereview.chromium.org/1882063002/diff/1/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp File third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp (right): https://codereview.chromium.org/1882063002/diff/1/third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp#newcode65 third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportMPL.cpp:65: if (hb_ot_layout_table_find_script(face, Using hb_ot_layout_table_choose_script instead of hb_ot_layout_table_find_script simplifies ...
4 years, 8 months ago (2016-04-13 05:32:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882063002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882063002/1
4 years, 8 months ago (2016-04-13 15:13:33 UTC) #10
drott
I can't reproduce the ASAN failures :-( even with a gn build for asan and ...
4 years, 8 months ago (2016-04-13 15:15:12 UTC) #11
drott
Adding used font files to .isolate recipe
4 years, 8 months ago (2016-04-13 16:56:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882063002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882063002/20001
4 years, 8 months ago (2016-04-13 16:58:45 UTC) #16
drott
Dirk, I am committing this, with TBR=dpranke@ for the change in the .isolate file.
4 years, 8 months ago (2016-04-13 16:59:30 UTC) #17
drott
Adding used font files to .isolate recipe, now with trailing slashes
4 years, 8 months ago (2016-04-13 17:55:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882063002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882063002/40001
4 years, 8 months ago (2016-04-13 17:56:46 UTC) #22
Dirk Pranke
lgtm. Sorry, I must've missed this earlier.
4 years, 8 months ago (2016-04-13 19:25:16 UTC) #23
drott
On 2016/04/13 at 19:25:16, dpranke wrote: > lgtm. Sorry, I must've missed this earlier. Thanks ...
4 years, 8 months ago (2016-04-13 19:37:58 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-13 21:06:36 UTC) #25
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/530c73184ff5fed64d9dae5ff1d452d1a75d3a99 Cr-Commit-Position: refs/heads/master@{#387085}
4 years, 8 months ago (2016-04-13 21:07:41 UTC) #27
rjkroege
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1891613002/ by rjkroege@chromium.org. ...
4 years, 8 months ago (2016-04-13 22:14:32 UTC) #28
Dirk Pranke
On 2016/04/13 22:14:32, rjkroege wrote: > A revert of this CL (patchset #3 id:40001) has ...
4 years, 8 months ago (2016-04-13 22:17:58 UTC) #29
drott
4 years, 8 months ago (2016-04-14 05:53:58 UTC) #30
Message was sent while issue was closed.
On 2016/04/13 at 22:17:58, dpranke wrote:
> On 2016/04/13 22:14:32, rjkroege wrote:
> > A revert of this CL (patchset #3 id:40001) has been created in
> > https://codereview.chromium.org/1891613002/ by mailto:rjkroege@chromium.org.
> > 
> > The reason for reverting is: breaks layout tests on Linux
> > 
> > 6 tests crashed:
> >     OpenTypeCapsSupportTest.LibertineAllPetiteSynthesis
> >
(../../third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportTest.cpp:53)
> >     OpenTypeCapsSupportTest.LibertineIgnoreMissingTitling
> >
(../../third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportTest.cpp:38)
> >     OpenTypeCapsSupportTest.LibertineSmcpC2scSupported
> >
(../../third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportTest.cpp:23)
> >     OpenTypeCapsSupportTest.LibertineUnicaseFallback
> >
(../../third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportTest.cpp:98)
> >     OpenTypeCapsSupportTest.MEgalopolisSmallCapsSynthetic
> >
(../../third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportTest.cpp:68)
> >     OpenTypeCapsSupportTest.MEgalopolisUnicaseSynthetic
> >
(../../third_party/WebKit/Source/platform/fonts/opentype/OpenTypeCapsSupportTest.cpp:83)
> > .
> 
> Actually, this broke blink_platform_unittests, not the layout tests:
> 
>
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux/builds/6...
> 
> That said, I don't know how/why this got past the CQ but failed on the bot ...

This looks like the exactly same failure that I initially encountered on the
ASAN bots, which was missing font files in the isolate step. I am going to split
out landing the tests into a separate CL to make it easier to analyse this
issue, without reverting the whole CL. I intend to make progress on landing the
two subsequent CLs and investigate this test case issue separately.

Powered by Google App Engine
This is Rietveld 408576698