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

Issue 2427773002: Fixing superscript and subscript baseline for tiny fonts in SVG

Created:
4 years, 2 months ago by zakerinasab
Modified:
3 years, 10 months ago
CC:
chromium-reviews, blink-reviews-platform-graphics_chromium.org, dshwang, eae+blinkwatch, fs, kouhei+svg_chromium.org, rwlbuis, krit, drott+blinkwatch_chromium.org, szager+layoutwatch_chromium.org, Justin Novosad, Rik, jchaffraix+rendering, blink-reviews, gyuyoung2, pdr+svgwatchlist_chromium.org, ajuma+watch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, jbroman, pdr+graphicswatchlist_chromium.org, danakj+watch_chromium.org, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, f(malita), Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing superscript and subscript baseline for tiny fonts in SVG When the font size is small (<1), superscript and subscript tags (baseline-shift="super" and baseline-shift="sub") do not make any difference in the baseline. BUG=656638

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressing comments. #

Patch Set 3 : Addressing comments. #

Total comments: 1

Patch Set 4 : Rebaseline CL. #

Patch Set 5 : Investingating inconsisitency between try-bots and local results. #

Patch Set 6 : Minor fix. #

Patch Set 7 : Addressing Windows try-bot inconsistent results #

Patch Set 8 : Continue... #

Patch Set 9 : Rebaselining layout tests. #

Patch Set 10 : Clean up FontPlatformDataWin.cpp. #

Patch Set 11 : Revert changes in FontPlatformDataWin.cpp #

Patch Set 12 : Rebaseline layout tests. #

Total comments: 4

Patch Set 13 : Addressing comments. #

Patch Set 14 : Rebaselining layout tests. #

Patch Set 15 : Rebaseline #

Patch Set 16 : Rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -15 lines) Patch
M third_party/WebKit/LayoutTests/platform/linux/svg/batik/text/smallFonts-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/svg/batik/text/svg-text-super-sub-tiny-fonts-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/svg/batik/text/svg-text-super-sub-tiny-fonts-expected.txt View 1 2 3 4 5 6 7 8 11 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/canvas/canvas-text-baseline-tiny-fonts-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/batik/text/smallFonts-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/svg/batik/text/svg-text-super-sub-tiny-fonts-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/svg/batik/text/svg-text-super-sub-tiny-fonts-expected.txt View 1 2 3 4 5 6 7 8 11 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/display_list_2d_canvas/fast/canvas/canvas-text-baseline-tiny-fonts-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/gpu/fast/canvas/canvas-text-baseline-tiny-fonts-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/svg/batik/text/svg-text-super-sub-tiny-fonts-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/svg/batik/text/svg-text-super-sub-tiny-fonts-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/batik/text/svg-text-super-sub-tiny-fonts.svg View 1 2 3 4 5 6 7 1 chunk +49 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextLayoutEngineBaseline.cpp View 1 2 3 4 5 6 7 2 chunks +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontDescription.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/SimpleFontData.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +25 lines, -14 lines 0 comments Download

Messages

Total messages: 62 (36 generated)
zakerinasab
New patch submitted.
4 years, 2 months ago (2016-10-17 19:02:01 UTC) #3
eae
Thanks for your patience, this code is suprt old and quite messy :( https://codereview.chromium.org/2427773002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp File ...
4 years, 2 months ago (2016-10-17 20:14:23 UTC) #4
zakerinasab
https://codereview.chromium.org/2427773002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp (right): https://codereview.chromium.org/2427773002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp#newcode405 third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.cpp:405: scaledFont.getFontDescription().setSubpixelAscentDescent(true); On 2016/10/17 20:14:23, eae wrote: > It's not ...
4 years, 2 months ago (2016-10-18 15:51:16 UTC) #5
zakerinasab
New patch submitted. PTAL. IMHO this one is better as it is focused on baseline ...
4 years, 2 months ago (2016-10-18 19:15:15 UTC) #6
eae
This looks great, thank you! https://codereview.chromium.org/2427773002/diff/60001/third_party/WebKit/Source/platform/fonts/FontDescription.h File third_party/WebKit/Source/platform/fonts/FontDescription.h (right): https://codereview.chromium.org/2427773002/diff/60001/third_party/WebKit/Source/platform/fonts/FontDescription.h#newcode20 third_party/WebKit/Source/platform/fonts/FontDescription.h:20: * along with this ...
4 years, 2 months ago (2016-10-18 22:12:04 UTC) #8
zakerinasab
New patch uploaded after rebaseline-cl. - It seems that this CL has affected other layout ...
4 years, 2 months ago (2016-10-19 14:14:41 UTC) #10
zakerinasab
On my Windows desktop the patch works fine, still doesn't generate the proper output on ...
4 years, 2 months ago (2016-10-19 14:45:43 UTC) #11
zakerinasab
The CL also works fine on my Mac Retina.
4 years, 2 months ago (2016-10-19 15:18:36 UTC) #12
zakerinasab
New patch submitted. The issue with Mac Retina try-bots is resolved. The issue with Windows ...
4 years, 1 month ago (2016-10-31 16:57:05 UTC) #29
eae
LGTM
4 years, 1 month ago (2016-10-31 17:04:14 UTC) #30
zakerinasab
New patch submitted. Cleaning up FontPlatformDataWin.cpp after removing the check for subpixel text rendering. @eae ...
4 years, 1 month ago (2016-10-31 17:57:31 UTC) #31
eae
On 2016/10/31 17:57:31, zakerinasab wrote: > New patch submitted. Cleaning up FontPlatformDataWin.cpp after removing the ...
4 years, 1 month ago (2016-10-31 18:01:42 UTC) #32
zakerinasab
On 2016/10/31 18:01:42, eae wrote: > On 2016/10/31 17:57:31, zakerinasab wrote: > > New patch ...
4 years, 1 month ago (2016-10-31 18:16:12 UTC) #33
eae
You are removing a set of functionality that is unrelated to your change. If you ...
4 years, 1 month ago (2016-10-31 18:23:01 UTC) #34
zakerinasab
On 2016/10/31 18:23:01, eae wrote: > You are removing a set of functionality that is ...
4 years, 1 month ago (2016-10-31 19:06:04 UTC) #35
eae
On 2016/10/31 19:06:04, zakerinasab wrote: > On 2016/10/31 18:23:01, eae wrote: > > You are ...
4 years, 1 month ago (2016-10-31 19:11:27 UTC) #36
zakerinasab
On 2016/10/31 19:11:27, eae wrote: > On 2016/10/31 19:06:04, zakerinasab wrote: > > On 2016/10/31 ...
4 years, 1 month ago (2016-10-31 19:28:20 UTC) #37
zakerinasab
New patch submitted. Changes in FontPlatformDataWin.cpp reverted. This fix doesn't solve the problem for tiny ...
4 years, 1 month ago (2016-11-01 15:52:39 UTC) #40
eae
Much better, thank you. LGTM w/suggestions https://codereview.chromium.org/2427773002/diff/580001/third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp File third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp (right): https://codereview.chromium.org/2427773002/diff/580001/third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp#newcode89 third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp:89: void SimpleFontData::platformInit(bool subpixelAscentDescent) ...
4 years, 1 month ago (2016-11-04 18:25:28 UTC) #41
zakerinasab
New patch submitted. Comments addressed. I'll try to land the CL if try-bots were green. ...
4 years, 1 month ago (2016-11-07 18:40:26 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2427773002/740001
4 years, 1 month ago (2016-11-08 19:44:16 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/258624)
4 years, 1 month ago (2016-11-08 21:46:55 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2427773002/740001
4 years, 1 month ago (2016-11-09 14:41:29 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/334053)
4 years, 1 month ago (2016-11-09 16:03:31 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2427773002/760001
4 years ago (2016-12-21 18:15:49 UTC) #60
commit-bot: I haz the power
4 years ago (2016-12-21 19:44:41 UTC) #62
Try jobs failed on following builders:
  linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)

Powered by Google App Engine
This is Rietveld 408576698