WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
37353
[RenderStyle Cleanup] Clean up CursorData, CursorList
https://bugs.webkit.org/show_bug.cgi?id=37353
Summary
[RenderStyle Cleanup] Clean up CursorData, CursorList
Dave Hyatt
Reported
2010-04-09 13:29:58 PDT
Style cleanup on the cursor classes used by RenderStyle.
Attachments
Patch
(4.35 KB, patch)
2010-04-09 13:37 PDT
,
Dave Hyatt
aroben
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dave Hyatt
Comment 1
2010-04-09 13:37:45 PDT
Created
attachment 52986
[details]
Patch
Adam Roben (:aroben)
Comment 2
2010-04-09 13:40:15 PDT
Comment on
attachment 52986
[details]
Patch
> void RenderStyle::addCursor(CachedImage* image, const IntPoint& hotSpot) > { > - CursorData data; > - data.cursorImage = image; > - data.hotSpot = hotSpot; > + CursorData data(image, hotSpot); > if (!inherited.access()->cursorData) > inherited.access()->cursorData = CursorList::create(); > inherited.access()->cursorData->append(data);
I don't think you need a local variable here at all. r=me
Dave Hyatt
Comment 3
2010-04-09 13:44:25 PDT
Fixed in
r57358
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug