Chromium Code Reviews
DescriptionMake sure line widths in the range of 0px and 1px are rounded up to 1px for visibility.
Currently if a border/outline computes to less than 1px, convertLineWidth
casts the value to unsigned int or short and hence returns a 0. This is
inconsistent with FF and IE. This patch fixes that issue by performing
all computation on a double and returning a 1 if computeLength returns a
value between 0 and 1. Otherwise it returns a type casted result of
computeLength. It fixes this in both StyleBuilder and
AnimatableStyleBuilder. It also rebaselines the relevant tests.
BUG=229428, 382483
Committed: https://crrev.com/f73426be35a4b02a6d029407db459a87bc5e4688
Cr-Commit-Position: refs/heads/master@{#357305}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #
Total comments: 6
Patch Set 7 : #
Total comments: 2
Patch Set 8 : #Patch Set 9 : #
Total comments: 1
Patch Set 10 : #
Total comments: 2
Patch Set 11 : #
Messages
Total messages: 23 (9 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||