WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52701
Refcount Images used in rendering code
https://bugs.webkit.org/show_bug.cgi?id=52701
Summary
Refcount Images used in rendering code
Simon Fraser (smfr)
Reported
2011-01-18 22:41:17 PST
We can't always assume that Images returned by StyleImage::image(RenderObject*, const IntSize&) will be kept alive by StyleImage or the CSSValue code. For example, for CSS gradients, we may need to create a new, uncached Image each time (see
bug 51845
). For this reason we need to ref-count these Images which are passed back to rendering code.
Attachments
Patch
(24.49 KB, patch)
2011-01-18 23:04 PST
,
Simon Fraser (smfr)
eric
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2011-01-18 23:04:26 PST
Created
attachment 79392
[details]
Patch
Eric Seidel (no email)
Comment 2
2011-01-24 15:37:17 PST
Comment on
attachment 79392
[details]
Patch Looks sane. It's always saddened me that on most platforms Image is double-refcounted, because the buffer behind the Image itself is often ref-counted.
Eric Seidel (no email)
Comment 3
2011-01-24 15:38:16 PST
ap was fixing style-ownership issues recently and might be curious to see this go by.
Simon Fraser (smfr)
Comment 4
2011-01-24 21:53:18 PST
http://trac.webkit.org/changeset/76571
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