Chromium Code Reviews
DescriptionFix 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 #
Messages
Total messages: 11 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||