WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
93541
[chromium] Move scrollbar pointer into WebScrollbarThemePainter
https://bugs.webkit.org/show_bug.cgi?id=93541
Summary
[chromium] Move scrollbar pointer into WebScrollbarThemePainter
Adrienne Walker
Reported
2012-08-08 15:53:34 PDT
[chromium] Move scrollbar pointer into WebScrollbarThemePainter
Attachments
Patch
(19.69 KB, patch)
2012-08-08 15:59 PDT
,
Adrienne Walker
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Adrienne Walker
Comment 1
2012-08-08 15:59:31 PDT
Created
attachment 157316
[details]
Patch
Adrienne Walker
Comment 2
2012-08-08 16:01:17 PDT
I realize that the ownership model of the painter to the scrollbar is a little bit dodgy. The painter needs a scrollbar but doesn't take a ref to it (largely because I couldn't put a RefPtr in the Platform API). I can refactor this so that WebScrollbarThemePainter is an interface and then the WebScrollbarThemePainterImpl could hold onto a RefPtr<Scrollbar> if you think that's better.
WebKit Review Bot
Comment 3
2012-08-08 16:03:04 PDT
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
James Robinson
Comment 4
2012-08-08 17:08:13 PDT
(In reply to
comment #2
)
> I realize that the ownership model of the painter to the scrollbar is a little bit dodgy. The painter needs a scrollbar but doesn't take a ref to it (largely because I couldn't put a RefPtr in the Platform API).
WebPrivatePtr is the normal way we deal with this - it lets you take an opaque RefPtr, effectively.
> > I can refactor this so that WebScrollbarThemePainter is an interface and then the WebScrollbarThemePainterImpl could hold onto a RefPtr<Scrollbar> if you think that's better.
James Robinson
Comment 5
2012-08-08 17:09:33 PDT
Comment on
attachment 157316
[details]
Patch To do the WebPrivatePtr thing you'd have to add an exported out-of-line destroy() function to drop the ref. I think the ownership situation here is OK, though.
WebKit Review Bot
Comment 6
2012-08-08 18:04:47 PDT
Comment on
attachment 157316
[details]
Patch Clearing flags on attachment: 157316 Committed
r125130
: <
http://trac.webkit.org/changeset/125130
>
WebKit Review Bot
Comment 7
2012-08-08 18:04:52 PDT
All reviewed patches have been landed. Closing bug.
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