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

Issue 1847763002: Only synthesize grapheme widths once for surrogate pair characters (Closed)

Created:
4 years, 8 months ago by pdr.
Modified:
4 years, 8 months ago
Reviewers:
fs
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_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

Only synthesize grapheme widths once for surrogate pair characters This patch updates the grapheme width synthesis code to not set surrogate pairs to be half-width. With this change our rendering more closely matches Gecko. There are no pixel differences in svg/text layouttests as a result of this codechange. This patch does unify the multiple copies of highlight code which resulted in a small pixel difference in combining-character-queries.html due to the height of the highlight text. BUG=597311 Committed: https://crrev.com/ec8e7dc866c0edc91cb9c79cd82ea40d2b5e5b58 Cr-Commit-Position: refs/heads/master@{#384412}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1097 lines, -752 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/bidi-text-query-expected.txt View 1 chunk +221 lines, -222 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/combining-character-queries-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/combining-character-queries-expected.txt View 1 chunk +304 lines, -304 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/text/ligature-queries-expected.txt View 1 chunk +49 lines, -49 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/text/bidi-text-query.svg View 1 chunk +21 lines, -40 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/text/combining-character-queries.html View 1 chunk +25 lines, -60 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/text/ligature-queries.html View 1 chunk +17 lines, -50 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/text/resources/highlightGlyphs.js View 1 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/text/surrogate-pair-queries.html View 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/text/surrogate-pair-queries-expected.png View Binary file 0 comments Download
A third_party/WebKit/LayoutTests/svg/text/surrogate-pair-queries-expected.txt View 1 chunk +334 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGTextMetricsBuilder.cpp View 1 4 chunks +48 lines, -27 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847763002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847763002/1
4 years, 8 months ago (2016-03-31 03:27:15 UTC) #3
pdr.
4 years, 8 months ago (2016-03-31 03:29:29 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-31 07:00:58 UTC) #7
fs
LGTM (but also somewhat mindboggling) https://codereview.chromium.org/1847763002/diff/1/third_party/WebKit/LayoutTests/svg/text/resources/highlightGlyphs.js File third_party/WebKit/LayoutTests/svg/text/resources/highlightGlyphs.js (right): https://codereview.chromium.org/1847763002/diff/1/third_party/WebKit/LayoutTests/svg/text/resources/highlightGlyphs.js#newcode7 third_party/WebKit/LayoutTests/svg/text/resources/highlightGlyphs.js:7: var textElements = document.querySelectorAll(".testTextRun"); ...
4 years, 8 months ago (2016-03-31 09:01:42 UTC) #8
pdr.
On 2016/03/31 at 09:01:42, fs wrote: > LGTM (but also somewhat mindboggling) Hmm, I don't ...
4 years, 8 months ago (2016-03-31 18:49:03 UTC) #9
fs
On 2016/03/31 at 18:49:03, pdr wrote: > On 2016/03/31 at 09:01:42, fs wrote: > > ...
4 years, 8 months ago (2016-03-31 18:53:46 UTC) #10
fs
On 2016/03/31 at 18:53:46, fs wrote: > On 2016/03/31 at 18:49:03, pdr wrote: > > ...
4 years, 8 months ago (2016-03-31 18:56:02 UTC) #11
pdr.
On 2016/03/31 at 18:56:02, fs wrote: > On 2016/03/31 at 18:53:46, fs wrote: > > ...
4 years, 8 months ago (2016-03-31 20:13:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847763002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847763002/20001
4 years, 8 months ago (2016-03-31 20:14:25 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-03-31 22:04:07 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 22:05:09 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ec8e7dc866c0edc91cb9c79cd82ea40d2b5e5b58
Cr-Commit-Position: refs/heads/master@{#384412}

Powered by Google App Engine
This is Rietveld 408576698