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

Issue 1966703002: Support includePartialGlyphs=false in Font::offsetForPositionForComplexText (Closed)

Created:
4 years, 7 months ago by kojii
Modified:
4 years, 7 months ago
Reviewers:
tapted, eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, 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

Support includePartialGlyphs=false in Font::offsetForPositionForComplexText This patch supports includePartialGlyphs=false in Font::offsetForPositionForComplexText(). This flag was supported in offsetForPositionForSimpleText(), but was assumed to be always true in offsetForPositionForComplexText(). Over 70 existing tests fail by the DCHECK added in this CL without this fix when the hack in rewindToMidWordBreak() was removed. BUG=610791 Committed: https://crrev.com/ad66862296c227c1b74a15f96632a67d941b6643 Cr-Commit-Position: refs/heads/master@{#393300}

Patch Set 1 #

Patch Set 2 : Fix #

Patch Set 3 : Remove old hack #

Patch Set 4 : fix #

Patch Set 5 : fix #

Patch Set 6 : fix #

Patch Set 7 : TestExpectations #

Patch Set 8 : TestExpectations #

Patch Set 9 : Use wordMeasurement.width instead of font.width() #

Total comments: 2

Patch Set 10 : Add comment as per eae review #

Total comments: 1

Messages

Total messages: 19 (10 generated)
kojii
PTAL.
4 years, 7 months ago (2016-05-12 16:07:04 UTC) #7
eae
This is great! LGTM https://codereview.chromium.org/1966703002/diff/160001/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp File third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp (right): https://codereview.chromium.org/1966703002/diff/160001/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp#newcode108 third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp:108: if (includePartialGlyphs) { Could you ...
4 years, 7 months ago (2016-05-12 16:12:46 UTC) #8
kojii
https://codereview.chromium.org/1966703002/diff/160001/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp File third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp (right): https://codereview.chromium.org/1966703002/diff/160001/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp#newcode108 third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp:108: if (includePartialGlyphs) { On 2016/05/12 at 16:12:45, eae wrote: ...
4 years, 7 months ago (2016-05-12 16:35:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1966703002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1966703002/180001
4 years, 7 months ago (2016-05-12 16:36:25 UTC) #12
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 7 months ago (2016-05-12 18:06:49 UTC) #13
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/ad66862296c227c1b74a15f96632a67d941b6643 Cr-Commit-Position: refs/heads/master@{#393300}
4 years, 7 months ago (2016-05-12 18:07:57 UTC) #15
tapted
Should this be reverted? - see below https://codereview.chromium.org/1966703002/diff/180001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/1966703002/diff/180001/third_party/WebKit/LayoutTests/TestExpectations#newcode1297 third_party/WebKit/LayoutTests/TestExpectations:1297: crbug.com/610791 virtual/spv2/fast/overflow/line-clamp.html ...
4 years, 7 months ago (2016-05-13 00:26:14 UTC) #17
kojii
On 2016/05/13 at 00:26:14, tapted wrote: > Should this be reverted? - see below > ...
4 years, 7 months ago (2016-05-13 00:29:49 UTC) #18
drott
4 years, 7 months ago (2016-05-23 07:30:44 UTC) #19
Message was sent while issue was closed.
Thanks for fixing this!

Powered by Google App Engine
This is Rietveld 408576698