Fixes <http://webkit.org/b/31260>.
commit77196cc199f1a3ed5b9475bc6954c5fad6a7aaec
authorbweinstein@apple.com <bweinstein@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Nov 2009 22:24:26 +0000 (12 22:24 +0000)
committerbweinstein@apple.com <bweinstein@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Nov 2009 22:24:26 +0000 (12 22:24 +0000)
treed3e7b9ed9fdf427d9a3b483262c7cf271edcdd61
parent2c6f4aa39b79f9d7e647cda9844963d4cc1e1910
Fixes <http://webkit.org/b/31260>.
Web Inspector: Main Resources Other than HTML are mis-detected.

Reviewed by Tim Hatcher.

Even if the resource is a main resource, look at its CachedResource type,
because it might be an image, stylesheet, or JavaScript file, and we
want to show them all correctly.

* inspector/InspectorResource.cpp:
(WebCore::InspectorResource::cachedResourceType): Move this method out so it can be called in multiple places.
(WebCore::InspectorResource::type):
* inspector/InspectorResource.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/inspector/InspectorResource.cpp
WebCore/inspector/InspectorResource.h