Bug 64405 - Switch GraphicsContext to operate on floating point coordinates
Summary: Switch GraphicsContext to operate on floating point coordinates
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Levi Weintraub
URL:
Keywords:
Depends on: 64413 65484
Blocks: 63567 64301
  Show dependency treegraph
 
Reported: 2011-07-12 16:05 PDT by Levi Weintraub
Modified: 2011-11-01 17:04 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Levi Weintraub 2011-07-12 16:05:28 PDT
I'll be attempting to change GraphicsContext functions that take rects, points, and sizes to use floating point versions of these spacial objects.
Comment 1 Simon Fraser (smfr) 2011-07-12 16:13:39 PDT
On Mac we probably want to use CGFloat, which is a double in 64-bit builds.
Comment 2 Levi Weintraub 2011-07-12 16:15:49 PDT
Of course, though it then seems that we should really be changing the underlying structure of FloatPoint/FloatRect/FloatSize to an abstraction. The interface needs to be generic.
Comment 3 Simon Fraser (smfr) 2011-07-12 16:17:38 PDT
Yeah. Time for RenderSize, RenderRect etc? :)
Comment 4 Levi Weintraub 2011-07-12 16:32:43 PDT
Sounds super ugly, but no time like the present. Any suggestions for the scalar name? RenderScalar? RenderUnit?

The fun never ends :p
Comment 5 Levi Weintraub 2011-11-01 17:04:53 PDT
Testing with this showed this isn't really necessary. We still want to setup painting on integer bounds to paint cleanly.