[Webkit-unassigned] [Bug 53836] Webkit is ignoring fractional point values when using pixel

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 4 20:25:28 PST 2011


--- Comment #3 from Rik Cabanier <cabanier at gmail.com>  2011-02-04 20:25:29 PST ---
(In reply to comment #0)
> The webkit parser casts units to integer instead of keeping them as double or float.
> This causes imprecise placing of objects if they use webkit-transforms with transform(px, px) notation.
> In order to fix this, I think we need to fix CSSStyleSelector.cpp line 3051-3052 
> from:
>         } else if (CSSPrimitiveValue::isUnitTypeLength(type))
>             l = Length(primitiveValue->computeLengthIntForLength(style, rootStyle, multiplier), Fixed);
> to:
>         } else if (CSSPrimitiveValue::isUnitTypeLength(type))
>             l = Length(primitiveValue->computeLengthFloat(style, rootStyle, multiplier, false), Fixed);
> Attached is a iip file that contains a page that uses transforms with px notation.

My proposal doesn't work because length always wants to be an integer.
It seems that it needs to be expanded to accept a float...

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list