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

Issue 1834703002: Fix preferred width calculation for 8bit ltr runs in rtl blocks (Closed)

Created:
4 years, 9 months ago by eae
Modified:
4 years, 9 months ago
Reviewers:
szager1
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix preferred width calculation for 8bit ltr runs in rtl blocks Fix trigger criteria in LayoutText::computePreferredLogicalWidths for 8- bit runs. Before all 8-bit runs without explciit directionality override was assumed to have the same fixed direction. This failed in cases where the text direction had been specified for the parent block (direction:). This caused RTL font metrics to be used to determine the preferred width but LTR metrics to compute line breaking, resulting in incorrect breaks. TEST=fast/text/ltr-text-in-rtl-8bit-block.html, fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks.html BUG=589525 R=szager@chromium.org Committed: https://crrev.com/5ba3aaa03c4a14575babc54240831d713975d8ca Cr-Commit-Position: refs/heads/master@{#383175}

Patch Set 1 #

Patch Set 2 : w/TestExpectations #

Patch Set 3 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -1 line) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/ltr-text-in-rtl-8bit-block.html View 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/ltr-text-in-rtl-8bit-block-expected.html View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (5 generated)
eae
4 years, 9 months ago (2016-03-24 17:59:00 UTC) #1
szager1
lgtm
4 years, 9 months ago (2016-03-24 18:01:47 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834703002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834703002/20001
4 years, 9 months ago (2016-03-24 19:24:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834703002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834703002/40001
4 years, 9 months ago (2016-03-24 21:36:56 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-24 22:54:52 UTC) #9
commit-bot: I haz the power
4 years, 9 months ago (2016-03-24 22:56:24 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5ba3aaa03c4a14575babc54240831d713975d8ca
Cr-Commit-Position: refs/heads/master@{#383175}

Powered by Google App Engine
This is Rietveld 408576698