JavaScript resources have low priority when SVG is enabled
authorpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jun 2012 06:05:25 +0000 (06:05 +0000)
committerpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Jun 2012 06:05:25 +0000 (06:05 +0000)
commit368dcbe00de1ad6a72c61afafe9f0e8eb905660f
tree05ee4df43dbd5cd5bc8a61931c8880799262add7
parenta60dca4c50be0cbb9c071e3c414352b7b73a7b8b
JavaScript resources have low priority when SVG is enabled
https://bugs.webkit.org/show_bug.cgi?id=89932
<rdar://problem/11741325>

Reviewed by Adele Peterson.

r108785 inadvertently lowered the priority of JavaScript resources. Fix the code so we set
the correct priority for scripts. Also, move the code so that all ifdefs are together at the
bottom to make it a bit easier to read..

* loader/cache/CachedResource.cpp:
(WebCore::defaultPriorityForResourceType):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/loader/cache/CachedResource.cpp