From bb29c0f2f85d4f4bba314b554f572f762c0a412d Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Wed, 15 Apr 2009 17:34:20 -0400 Subject: fix svg bugs fix svg make; (feng's recent webkit merge included a file that no longer exists) draw stroked paths add support for image/svg+xml --- WebCore/Android.mk | 5 +---- WebCore/platform/graphics/android/GraphicsContextAndroid.cpp | 8 +------- WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp | 3 ++- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/WebCore/Android.mk b/WebCore/Android.mk index af0a31c..50b9a91 100644 --- a/WebCore/Android.mk +++ b/WebCore/Android.mk @@ -112,7 +112,6 @@ # dom/Touch*.cpp \ # platform/graphics/skia/NativeImageSkia.cpp \ # platform/image-decoders/skia/GIFImage*.cpp \ -# svg/graphics/skia/SVGResourceMaskerSkia.cpp \ # The remainder of the file is read by tools/webkitsync/diff.cpp # If you edit it, keep it in alphabetical order @@ -1083,9 +1082,7 @@ LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \ svg/graphics/filters/SVGFETile.cpp \ svg/graphics/filters/SVGFETurbulence.cpp \ svg/graphics/filters/SVGFilterEffect.cpp \ - svg/graphics/filters/SVGLightSource.cpp \ - \ - svg/graphics/skia/SVGResourceMaskerSkia.cpp + svg/graphics/filters/SVGLightSource.cpp endif LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \ diff --git a/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp b/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp index 7571926..8800699 100644 --- a/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp +++ b/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp @@ -1100,12 +1100,6 @@ void GraphicsContext::addPath(const Path& p) m_data->addPath(*p.platformPath()); } -void GraphicsContext::drawPath() -{ - this->fillPath(); - this->strokePath(); -} - void GraphicsContext::fillPath() { SkPath* path = m_data->getPath(); @@ -1134,7 +1128,7 @@ void GraphicsContext::fillPath() void GraphicsContext::strokePath() { const SkPath* path = m_data->getPath(); - if (paintingDisabled() || !path || strokeStyle() == NoStroke) + if (paintingDisabled() || !path) return; SkPaint paint; diff --git a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp index 3e821cc..ffbff0f 100644 --- a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp +++ b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp @@ -973,7 +973,8 @@ ObjectContentType FrameLoaderClientAndroid::objectContentType(const KURL& url, } return ObjectContentFrame; } - if (equalIgnoringCase(mimeType, "text/html") || + if (equalIgnoringCase(mimeType, "image/svg+xml") || + equalIgnoringCase(mimeType, "text/html") || equalIgnoringCase(mimeType, "text/xml") || equalIgnoringCase(mimeType, "text/") || equalIgnoringCase(mimeType, "application/xml") || -- cgit v1.1