Summary: | JSC bindings should use an auto-bound RGBColor class instead of hand-rolled JSRGBColor | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> | ||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | sam | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | OS X 10.5 | ||||||
Bug Depends on: | 27133 | ||||||
Bug Blocks: | 27088 | ||||||
Attachments: |
|
Description
Eric Seidel (no email)
2009-07-13 17:55:04 PDT
Created attachment 33235 [details]
patch
Comment on attachment 33235 [details]
patch
646 RGBColor* CSSPrimitiveValue::getRGBColorValue(ExceptionCode& ec) const
and
+RGBColor* SVGColor::rgbColor() const
Look like they're leaking, no?
They're returning raw pointers to RGBColor object which have a ref count of 1.
It seems we eventually want RGBColor to be a wrapper around Color instead of unsigned. That way the red/green/blue/alpha accessors are already written for us (instead of having to re-write the << code. I'm very glad you did this though. I tried and ran into Obj-C issues which I didn't really want to deal with. ;) |