DescriptionPrevent to measure the whole word when break-all
This patch applies the same heuristic fix as break-word to break-all.
Since the switch to the complex path, r385693 fixed the performance and
correctness issue of break-word and break-all in common cases. However,
it also introduced a performance regression when a word is really long,
such as minimized JS.
This can be fixed by taking over the ShapeResult to the next lines as
Gecko does, but it will require larger overhaul of the line breaker and
need more time to bake.
As an interim fix, r387974 introduced a heuristic fix for break-word.
This patch applies the same heuristic to break-all.
This patch also revealed that the fix for crbug.com/603679 was not
correct. MidWordBreak must be recomputed when floats pushed the line
down and available width changed. This patch includes the fix.
BUG=622810, 603679
Committed: https://crrev.com/d24d249700deef0ed63bf12ebb6af3b28f8225fb
Cr-Commit-Position: refs/heads/master@{#403830}
Patch Set 1 #Patch Set 2 : Fix and refactor #Patch Set 3 : Fix #
Total comments: 2
Messages
Total messages: 11 (5 generated)
|