 Chromium Code Reviews
 Chromium Code Reviews Issue 
            799123003:
    text-combine should scale rather than fall back to none when wide  (Closed)
    
  
    Issue 
            799123003:
    text-combine should scale rather than fall back to none when wide  (Closed) 
  | Descriptiontext-combine should scale rather than fall back to none when wide
This patch follows the two spec change in 2014 CR:
1. Compress rather than fallback when width > ~1em.
   Old WD said to fallback to none.
2. For line breaking before and after the composition, it is treated as a
   regular inline with its actual contents.
   Old WD said it should be treated as U+FFFC.
CR: http://www.w3.org/TR/css-writing-modes-3/#text-combine
ED: http://dev.w3.org/csswg/css-writing-modes/#text-combine
In addition to the changes to RenderCombineText, this spec change has a
small but pleasant side effect to our implementation. The
RenderCombinedText delays the width calculation until it's needed. But the
old spec said that it has to be treated as an U+FFFC OBJECT REPLACEMENT
CHARACTER to line breakers when combined.
From these two, line breakers used be aware of RenderCombinedText and
updated it (combineText()) when needed. Also, the fact that combineText()
could change the length of text brought additional complexity. We had a
few calls to combineText() in line breakers, and still has some flakiness
such as bug 312606. The new spec eliminates this complexity, so our line
breakers are a bit cleaner, faster, and less flaky.
fast/text/font-variant-width.html had to be rewritten because it relied on
the behavior of text-combine to fallback when wide.
BUG=433176, 312606
TEST=fast/writing-mode/text-combine-compress.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189382
   Patch Set 1 : #Patch Set 2 : rebase-update #
      Total comments: 4
      
     Patch Set 3 : comments fixed #
      Total comments: 10
      
     Patch Set 4 : All comments fixed #
      Total comments: 1
      
     Patch Set 5 : link to the spec added #Patch Set 6 : rebase-update #Patch Set 7 : Support spec change #2 for better stability #Patch Set 8 : TestExpectations #Patch Set 9 : TestExpectations #Patch Set 10 : Remove one expected.txt and rebase-update (there was a directory rename) #Messages
    Total messages: 33 (11 generated)
     |