diff options
author | Cary Clark <cary@android.com> | 2009-04-16 09:43:44 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2009-04-16 10:11:16 -0400 |
commit | 781eb1e80ed736b825aec967c3cc711f01516200 (patch) | |
tree | 7c2bfbcb6c4d3c1785d1c6c0f9f7a7da28861a6e /WebKit/android/WebCoreSupport | |
parent | bb29c0f2f85d4f4bba314b554f572f762c0a412d (diff) | |
download | external_webkit-781eb1e80ed736b825aec967c3cc711f01516200.zip external_webkit-781eb1e80ed736b825aec967c3cc711f01516200.tar.gz external_webkit-781eb1e80ed736b825aec967c3cc711f01516200.tar.bz2 |
fix svg linear gradients and embed
only add embed support if SVG is enabled
Diffstat (limited to 'WebKit/android/WebCoreSupport')
-rw-r--r-- | WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp index ffbff0f..795d18d 100644 --- a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp +++ b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp @@ -973,10 +973,12 @@ ObjectContentType FrameLoaderClientAndroid::objectContentType(const KURL& url, } return ObjectContentFrame; } - if (equalIgnoringCase(mimeType, "image/svg+xml") || - equalIgnoringCase(mimeType, "text/html") || + if (equalIgnoringCase(mimeType, "text/html") || equalIgnoringCase(mimeType, "text/xml") || equalIgnoringCase(mimeType, "text/") || +#if ENABLE(SVG) + equalIgnoringCase(mimeType, "image/svg+xml") || +#endif equalIgnoringCase(mimeType, "application/xml") || equalIgnoringCase(mimeType, "application/xhtml+xml") || equalIgnoringCase(mimeType, "application/x-javascript")) |