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

Issue 18693: Rebaseline tests where sizes are off by 1 due to font differences.... (Closed)

Created:
11 years, 11 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Rebaseline tests where sizes are off by 1 due to font differences. For fast/forms/input-baseline.html, RenderTextControl::calcHeight() uses the value from m_innerText->renderer()->lineHeight(true, true), but RenderFlow::lineHeight() returns s->font().lineSpacing(), which is off by 1. For fast/forms/textfield-outline.html, it comes down to RenderTextControlSingleLine::preferredContentWidth() calling style()->font().primaryFont()->maxCharWidth() which returns a value that's off by 1. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8519

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2 lines) Patch
A webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/forms/input-baseline-expected.txt View 1 chunk +21 lines, -0 lines 0 comments Download
A webkit/data/layout_tests/platform/chromium-linux/LayoutTests/fast/forms/textfield-outline-expected.txt View 1 chunk +17 lines, -0 lines 0 comments Download
M webkit/tools/layout_tests/test_lists/tests_fixable.txt View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
Lei Zhang
11 years, 11 months ago (2009-01-22 23:12:35 UTC) #1

Powered by Google App Engine
This is Rietveld 408576698