Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(9)

Issue 1153173011: Force glyph overflow calculation (Closed)

Created:
4 years, 11 months ago by Xianzhu
Modified:
4 years, 10 months ago
Reviewers:
chrishtr, eae
CC:
blink-reviews, pdr+renderingwatchlist_chromium.org, zoltan1, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, blink-reviews-rendering, jchaffraix+rendering, f(malita), jbroman, wkorman
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Force glyph overflow calculation Currently we ignore horizontal glyph overflow in most cases, causing overhang part of glyphs not included into overflow rect of line boxes. This causes incorrect visual overflow of layout objects, and incorrect cull rect. Now always calculate glyph overflow. BUG=496317 TEST=fast/text/glyph-overflow.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196730

Patch Set 1 #

Patch Set 2 : Try strict cull rect #

Patch Set 3 : Try strict cull rect (two unit tests temporarily disabled -- to be investigated) #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Float to fix extra bottom overflow #

Patch Set 7 : Update test expectations #

Total comments: 4

Patch Set 8 : Add comments; Update test expectations #

Patch Set 9 : Update test expectations #

Patch Set 10 : More rebaselines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -133 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 3 chunks +107 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/Element/getBoundingClientRect.html View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/text/fractional-word-and-letter-spacing-with-kerning.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/text/fractional-word-and-letter-spacing-with-kerning-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/text/glyph-overflow.html View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/fast/text/glyph-overflow-expected.html View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutBlockFlowLine.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -65 lines 0 comments Download
M Source/core/layout/line/BreakingContextInlineHeaders.h View 1 2 3 4 5 6 1 chunk +7 lines, -4 lines 0 comments Download
M Source/platform/fonts/Character.cpp View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M Source/platform/fonts/Font.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download
M Source/platform/fonts/Font.cpp View 1 2 3 4 5 6 7 6 chunks +18 lines, -24 lines 0 comments Download
M Source/platform/fonts/FontTest.cpp View 1 2 3 2 chunks +6 lines, -18 lines 0 comments Download
M Source/platform/fonts/WidthCache.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/text/TextPath.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/data/rgm_column_test.html View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Xianzhu
This CL works on Linux for the 'f' issue (https://code.google.com/p/chromium/issues/detail?id=496317#c5), but degrades performance of line ...
4 years, 11 months ago (2015-06-06 00:50:17 UTC) #2
eae
I think this is fine. I'm working on reducing the cost of the overflow calculation ...
4 years, 11 months ago (2015-06-06 05:42:47 UTC) #6
Xianzhu
On 2015/06/06 05:42:47, eae wrote: > I think this is fine. I'm working on reducing ...
4 years, 10 months ago (2015-06-08 18:00:35 UTC) #7
Xianzhu
Some notes https://codereview.chromium.org/1153173011/diff/160001/Source/platform/fonts/Font.cpp File Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/1153173011/diff/160001/Source/platform/fonts/Font.cpp#newcode222 Source/platform/fonts/Font.cpp:222: glyphOverflow->right = ceilf(glyphBounds.right()); This change (along with ...
4 years, 10 months ago (2015-06-08 18:07:21 UTC) #9
eae
LGTM w/nit. Feel free to commit once addressed. https://codereview.chromium.org/1153173011/diff/160001/Source/platform/fonts/Font.cpp File Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/1153173011/diff/160001/Source/platform/fonts/Font.cpp#newcode222 Source/platform/fonts/Font.cpp:222: glyphOverflow->right ...
4 years, 10 months ago (2015-06-08 18:58:55 UTC) #10
Xianzhu
https://codereview.chromium.org/1153173011/diff/160001/Source/platform/fonts/Font.cpp File Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/1153173011/diff/160001/Source/platform/fonts/Font.cpp#newcode222 Source/platform/fonts/Font.cpp:222: glyphOverflow->right = ceilf(glyphBounds.right()); On 2015/06/08 18:58:55, eae wrote: > ...
4 years, 10 months ago (2015-06-08 23:55:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1153173011/200001
4 years, 10 months ago (2015-06-08 23:56:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1153173011/220001
4 years, 10 months ago (2015-06-09 01:32:13 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2015-06-09 03:03:35 UTC) #18
Message was sent while issue was closed.
Committed patchset #10 (id:220001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196730

Powered by Google App Engine
This is Rietveld 408576698