[CSS Shapes] StyleResolver::loadPendingShapeImage() should check its ShapeValue parameter more carefully
[CSS Shapes] StyleResolver::loadPendingShapeImage() should check its ShapeValue parameter more carefully

In https://chromiumcodereview.appspot.com/17092005 I incorrectly refactored the StyleResolver::loadPendingImages() cases for CSSPropertyWebkitShapeInside and CSSPropertyWebkitShapeOutside. The new StyleResolver::loadPendingShapeImage() method check that its argument is non-null and that the argument's image is a pending image.

I've restored the missing checks.

I also changed the way loadPendingShapeImage() specifies its ResourceLoaderOptions as Adam suggested in the review of the original change:
https://codereview.chromium.org/17092005/diff/8001/Source/core/css/resolver/StyleResolver.cpp#newcode3575

BUG=253057

Review URL: https://chromiumcodereview.appspot.com/17321013

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@153014 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,nwjs/blink,nwjs/blink,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,ondra-novak/blink,hgl888/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,jtg-gg/blink,nwjs/blink,PeterWangIntel/blink-crosswalk,hgl888/blink-crosswalk-efl,nwjs/blink,kurli/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,jtg-gg/blink,Pluto-tv/blink-crosswalk,modulexcite/blink,hgl888/blink-crosswalk-efl,nwjs/blink,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,jtg-gg/blink,Bysmyyr/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,smishenk/blink-crosswalk,jtg-gg/blink,jtg-gg/blink,nwjs/blink,Bysmyyr/blink-crosswalk,nwjs/blink,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,nwjs/blink,crosswalk-project/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,ondra-novak/blink,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,modulexcite/blink,ondra-novak/blink,ondra-novak/blink,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,ondra-novak/blink,nwjs/blink,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,kurli/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,modulexcite/blink,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,nwjs/blink,jtg-gg/blink,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,jtg-gg/blink,ondra-novak/blink,smishenk/blink-crosswalk,kurli/blink-crosswalk,ondra-novak/blink,Bysmyyr/blink-crosswalk,jtg-gg/blink,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,jtg-gg/blink,smishenk/blink-crosswalk,kurli/blink-crosswalk,kurli/blink-crosswalk,smishenk/blink-crosswalk,jtg-gg/blink,Bysmyyr/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,ondra-novak/blink,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,ondra-novak/blink,PeterWangIntel/blink-crosswalk,modulexcite/blink,modulexcite/blink,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk