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

Issue 231763003: Support sideloaded fonts via command line option for blink layout_tests (Closed)

Created:
6 years, 8 months ago by scottmg
Modified:
6 years, 8 months ago
Reviewers:
jschuh, jam, eae
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Support sideloaded fonts via command line option for blink layout_tests Blink side is: https://codereview.chromium.org/235553003/ which must land and roll first. Adds support for --register-font-files which adds the given file(s) to the sandbox policy (readonly), creates and warms up the font, and passes it to blink. Also, modify the setup code for layout tests so "Ahem" will be found correctly. R=jschuh@chromium.org,eae@chromium.org BUG=333029 TEST=out\debug\content_shell d:\src\tmp\a.html --enable-direct-write --register-font-files=D:\src\cr3\src\content\shell\renderer\test_runner\resources\fonts\AHEM____.TTF TEST=ninja -C out\Debug blink_tests && webkit\tools\layout_tests\run_webkit_tests fast/parser/fonts.html --debug --nocheck-sys-deps (with directwrite forced on) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263842 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264126

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 10

Patch Set 7 : fixes #

Patch Set 8 : wip; move to content/shell #

Patch Set 9 : move to content/shell #

Total comments: 2

Patch Set 10 : remove blank line #

Patch Set 11 : guard for xp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -25 lines) Patch
M content/common/sandbox_win.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A content/public/renderer/render_font_warmup_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -0 lines 0 comments Download
A content/public/renderer/render_font_warmup_win.cc View 1 2 3 4 5 6 7 8 1 chunk +54 lines, -0 lines 0 comments Download
M content/renderer/renderer_main_platform_delegate_win.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -23 lines 0 comments Download
M content/shell/app/webkit_test_platform_support_win.cc View 1 2 3 4 5 6 7 3 chunks +14 lines, -0 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +29 lines, -0 lines 0 comments Download
M content/shell/common/shell_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/common/shell_switches.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M content/shell/common/webkit_test_helpers.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/shell/common/webkit_test_helpers.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 0 comments Download
M content/shell/renderer/shell_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
scottmg
6 years, 8 months ago (2014-04-11 18:03:19 UTC) #1
jschuh
Clever. lgtm
6 years, 8 months ago (2014-04-11 20:28:40 UTC) #2
scottmg
+jam OWNERS (for non-sandbox plumbing parts)
6 years, 8 months ago (2014-04-12 16:39:09 UTC) #3
jam
https://codereview.chromium.org/231763003/diff/120001/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/231763003/diff/120001/content/common/sandbox_win.cc#newcode587 content/common/sandbox_win.cc:587: files->clear(); nit: no need for return value and out ...
6 years, 8 months ago (2014-04-14 05:40:01 UTC) #4
scottmg
Thanks https://codereview.chromium.org/231763003/diff/120001/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/231763003/diff/120001/content/common/sandbox_win.cc#newcode587 content/common/sandbox_win.cc:587: files->clear(); On 2014/04/14 05:40:02, jam wrote: > nit: ...
6 years, 8 months ago (2014-04-14 15:48:58 UTC) #5
jschuh
https://codereview.chromium.org/231763003/diff/120001/content/renderer/renderer_main_platform_delegate_win.cc File content/renderer/renderer_main_platform_delegate_win.cc (right): https://codereview.chromium.org/231763003/diff/120001/content/renderer/renderer_main_platform_delegate_win.cc#newcode102 content/renderer/renderer_main_platform_delegate_win.cc:102: // Blink layout tests. On 2014/04/14 15:48:58, scottmg wrote: ...
6 years, 8 months ago (2014-04-14 15:58:51 UTC) #6
jam
https://codereview.chromium.org/231763003/diff/120001/content/renderer/renderer_main_platform_delegate_win.cc File content/renderer/renderer_main_platform_delegate_win.cc (right): https://codereview.chromium.org/231763003/diff/120001/content/renderer/renderer_main_platform_delegate_win.cc#newcode102 content/renderer/renderer_main_platform_delegate_win.cc:102: // Blink layout tests. On 2014/04/14 15:58:51, Justin Schuh ...
6 years, 8 months ago (2014-04-14 16:20:59 UTC) #7
scottmg
On 2014/04/14 16:20:59, jam wrote: > https://codereview.chromium.org/231763003/diff/120001/content/renderer/renderer_main_platform_delegate_win.cc > File content/renderer/renderer_main_platform_delegate_win.cc (right): > > https://codereview.chromium.org/231763003/diff/120001/content/renderer/renderer_main_platform_delegate_win.cc#newcode102 > ...
6 years, 8 months ago (2014-04-14 17:22:00 UTC) #8
jam
On 2014/04/14 17:22:00, scottmg wrote: > On 2014/04/14 16:20:59, jam wrote: > > > https://codereview.chromium.org/231763003/diff/120001/content/renderer/renderer_main_platform_delegate_win.cc ...
6 years, 8 months ago (2014-04-14 18:27:59 UTC) #9
scottmg
On 2014/04/14 18:27:59, jam wrote: > On 2014/04/14 17:22:00, scottmg wrote: > > On 2014/04/14 ...
6 years, 8 months ago (2014-04-14 20:19:09 UTC) #10
jam
lgtm https://codereview.chromium.org/231763003/diff/190001/content/public/renderer/render_font_warmup_win.h File content/public/renderer/render_font_warmup_win.h (right): https://codereview.chromium.org/231763003/diff/190001/content/public/renderer/render_font_warmup_win.h#newcode25 content/public/renderer/render_font_warmup_win.h:25: nit: extra line
6 years, 8 months ago (2014-04-14 22:48:18 UTC) #11
scottmg
https://codereview.chromium.org/231763003/diff/190001/content/public/renderer/render_font_warmup_win.h File content/public/renderer/render_font_warmup_win.h (right): https://codereview.chromium.org/231763003/diff/190001/content/public/renderer/render_font_warmup_win.h#newcode25 content/public/renderer/render_font_warmup_win.h:25: On 2014/04/14 22:48:18, jam wrote: > nit: extra line ...
6 years, 8 months ago (2014-04-14 22:50:20 UTC) #12
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 8 months ago (2014-04-14 22:50:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/231763003/210001
6 years, 8 months ago (2014-04-14 22:52:09 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-14 23:52:45 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-14 23:52:46 UTC) #16
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 8 months ago (2014-04-14 23:55:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/231763003/210001
6 years, 8 months ago (2014-04-14 23:56:27 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-15 08:44:01 UTC) #19
eae
The CQ bit was checked by eae@chromium.org
6 years, 8 months ago (2014-04-15 09:21:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/231763003/210001
6 years, 8 months ago (2014-04-15 09:22:16 UTC) #22
commit-bot: I haz the power
Change committed as 263842
6 years, 8 months ago (2014-04-15 14:30:41 UTC) #23
leviw_travelin_and_unemployed
Was this expected to change layout test results? It seems to have caused quite a ...
6 years, 8 months ago (2014-04-15 16:07:11 UTC) #24
scottmg
On 2014/04/15 16:07:11, Levi wrote: > Was this expected to change layout test results? It ...
6 years, 8 months ago (2014-04-15 16:13:22 UTC) #25
scottmg
On 2014/04/15 16:13:22, scottmg wrote: > On 2014/04/15 16:07:11, Levi wrote: > > Was this ...
6 years, 8 months ago (2014-04-15 16:42:20 UTC) #26
scottmg
Relanding with guard (for XP), diff is: https://codereview.chromium.org/231763003/diff2/210001:230001/content/shell/renderer/shell_content_renderer_client.cc
6 years, 8 months ago (2014-04-15 22:54:29 UTC) #27
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 8 months ago (2014-04-15 22:55:29 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/231763003/230001
6 years, 8 months ago (2014-04-15 22:56:48 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/231763003/230001
6 years, 8 months ago (2014-04-16 01:31:22 UTC) #30
commit-bot: I haz the power
6 years, 8 months ago (2014-04-16 05:40:44 UTC) #31
Message was sent while issue was closed.
Change committed as 264126

Powered by Google App Engine
This is Rietveld 408576698