Bug 140971 - Use a Ref<CachedResourceLoader> in Document instead of a RefPtr
Summary: Use a Ref<CachedResourceLoader> in Document instead of a RefPtr
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-27 17:31 PST by Chris Dumez
Modified: 2015-01-27 21:55 PST (History)
4 users (show)

See Also:


Attachments
Patch (70.53 KB, patch)
2015-01-27 18:35 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2015-01-27 17:31:42 PST
Use a Ref<CachedResourceLoader> in Document instead of a RefPtr and it can never be null. This gets rid of a lot of unnecessary null checks.
Comment 1 Chris Dumez 2015-01-27 18:35:22 PST
Created attachment 245501 [details]
Patch
Comment 2 Andreas Kling 2015-01-27 21:09:02 PST
Comment on attachment 245501 [details]
Patch

r=me
This is some tasty stuff!
Comment 3 WebKit Commit Bot 2015-01-27 21:55:10 PST
Comment on attachment 245501 [details]
Patch

Clearing flags on attachment: 245501

Committed r179242: <http://trac.webkit.org/changeset/179242>
Comment 4 WebKit Commit Bot 2015-01-27 21:55:13 PST
All reviewed patches have been landed.  Closing bug.