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.
Created attachment 245501 [details] Patch
Comment on attachment 245501 [details] Patch r=me This is some tasty stuff!
Comment on attachment 245501 [details] Patch Clearing flags on attachment: 245501 Committed r179242: <http://trac.webkit.org/changeset/179242>
All reviewed patches have been landed. Closing bug.