[Webkit-unassigned] [Bug 36113] Optimize painting for HTMLProgressElement

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 16 13:19:23 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=36113


Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com




--- Comment #4 from Darin Adler <darin at apple.com>  2010-03-16 13:19:23 PST ---
(In reply to comment #3)
> I am not sure I can store the number of pixels to draw in a platform
> independent way. For example, in the Qt port on different operating systems, we
> have different border widths and different paddings for the different progress
> bars.

I think this is actually a Qt-specific problem. Qt only gives you a way to
paint the progress indicator, and doesn't let you find out how much of a
progress change is needed to see the difference. So I agree that this is indeed
impossible for Qt.

> In order to not lose precision, I replaced the previous 100 with 65536, I hope
> this is good enough precision for all platforms.

I don't see any reason to convert the floating point number to an integer in
the cross platform code. You'll need to do that in the Qt theme layer because
integers is how Qt interfaces to the progress indicator painting code, but that
may not be true on other platforms.

-- 
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