diff options
author | Ben Murdoch <benm@google.com> | 2009-08-17 12:07:22 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2009-08-17 12:07:22 +0100 |
commit | 0bb9b5e0e9c736593741f15859b612c4294b790b (patch) | |
tree | 99ec41a2f6629d93b42766905232029bb48b6d89 /WebCore | |
parent | aab18b041d866fb1f13900ce28aef8fb17af9b4f (diff) | |
download | external_webkit-0bb9b5e0e9c736593741f15859b612c4294b790b.zip external_webkit-0bb9b5e0e9c736593741f15859b612c4294b790b.tar.gz external_webkit-0bb9b5e0e9c736593741f15859b612c4294b790b.tar.bz2 |
Fix some errors in platform/graphics/android.
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/page/android/EventHandlerAndroid.cpp | 2 | ||||
-rw-r--r-- | WebCore/platform/PlatformKeyboardEvent.h | 3 | ||||
-rw-r--r-- | WebCore/platform/android/GeolocationServiceAndroid.cpp | 2 | ||||
-rw-r--r-- | WebCore/platform/graphics/FloatPoint.h | 2 | ||||
-rw-r--r-- | WebCore/platform/graphics/android/GraphicsContextAndroid.cpp | 2 | ||||
-rw-r--r-- | WebCore/platform/graphics/android/ImageAndroid.cpp | 4 | ||||
-rw-r--r-- | WebCore/platform/graphics/skia/SkiaUtils.cpp | 2 |
7 files changed, 8 insertions, 9 deletions
diff --git a/WebCore/page/android/EventHandlerAndroid.cpp b/WebCore/page/android/EventHandlerAndroid.cpp index ddbcdf0..48f35c3 100644 --- a/WebCore/page/android/EventHandlerAndroid.cpp +++ b/WebCore/page/android/EventHandlerAndroid.cpp @@ -39,8 +39,6 @@ namespace WebCore { -unsigned EventHandler::s_accessKeyModifiers = PlatformKeyboardEvent::AltKey; - bool EventHandler::tabsToAllControls(KeyboardEvent*) const { return true; diff --git a/WebCore/platform/PlatformKeyboardEvent.h b/WebCore/platform/PlatformKeyboardEvent.h index 75922fa..248f399 100644 --- a/WebCore/platform/PlatformKeyboardEvent.h +++ b/WebCore/platform/PlatformKeyboardEvent.h @@ -140,8 +140,7 @@ namespace WebCore { #endif #if PLATFORM(ANDROID) - PlatformKeyboardEvent(int keyCode, UChar32 unichar, int repeatCount, - bool down, bool cap, bool alt, bool sym); + PlatformKeyboardEvent(int keyCode, UChar32 unichar, Type type, int repeatCount, ModifierKey modifier); UChar32 unichar() const { return m_unichar; } int repeatCount() const { return m_repeatCount; } #endif diff --git a/WebCore/platform/android/GeolocationServiceAndroid.cpp b/WebCore/platform/android/GeolocationServiceAndroid.cpp index 9c6cb81..cd33bc6 100644 --- a/WebCore/platform/android/GeolocationServiceAndroid.cpp +++ b/WebCore/platform/android/GeolocationServiceAndroid.cpp @@ -23,6 +23,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" + #include "GeolocationService.h" namespace WebCore { diff --git a/WebCore/platform/graphics/FloatPoint.h b/WebCore/platform/graphics/FloatPoint.h index 157c1e7..0c97c49 100644 --- a/WebCore/platform/graphics/FloatPoint.h +++ b/WebCore/platform/graphics/FloatPoint.h @@ -90,7 +90,7 @@ public: operator QPointF() const; #endif -#if PLATFORM(SKIA) +#if (PLATFORM(SKIA) || PLATFORM(SGL)) operator SkPoint() const; FloatPoint(const SkPoint&); #endif diff --git a/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp b/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp index b112230..c1a94b9 100644 --- a/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp +++ b/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp @@ -898,7 +898,7 @@ void GraphicsContext::setAlpha(float alpha) void GraphicsContext::setCompositeOperation(CompositeOperator op) { - m_data->mState->mMode = WebCoreCompositeToSkiaMode(op); + m_data->mState->mMode = WebCoreCompositeToSkiaComposite(op); } void GraphicsContext::clearRect(const FloatRect& rect) diff --git a/WebCore/platform/graphics/android/ImageAndroid.cpp b/WebCore/platform/graphics/android/ImageAndroid.cpp index 3561796..93aacbc 100644 --- a/WebCore/platform/graphics/android/ImageAndroid.cpp +++ b/WebCore/platform/graphics/android/ImageAndroid.cpp @@ -213,7 +213,7 @@ void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, ctxt->setupFillPaint(&paint); // need global alpha among other things paint.setFilterBitmap(true); - paint.setXfermodeMode(WebCoreCompositeToSkiaMode(compositeOp)); + paint.setXfermodeMode(WebCoreCompositeToSkiaComposite(compositeOp)); canvas->drawBitmapRect(bitmap, &srcR, dstR, &paint); #ifdef TRACE_SUBSAMPLED_BITMAPS @@ -285,7 +285,7 @@ void Image::drawPattern(GraphicsContext* ctxt, const FloatRect& srcRect, SkShader::kRepeat_TileMode); paint.setShader(shader)->unref(); // now paint is the only owner of shader - paint.setXfermodeMode(WebCoreCompositeToSkiaMode(compositeOp)); + paint.setXfermodeMode(WebCoreCompositeToSkiaComposite(compositeOp)); paint.setFilterBitmap(true); SkMatrix matrix(patternTransform); diff --git a/WebCore/platform/graphics/skia/SkiaUtils.cpp b/WebCore/platform/graphics/skia/SkiaUtils.cpp index acb3669..662ea5c 100644 --- a/WebCore/platform/graphics/skia/SkiaUtils.cpp +++ b/WebCore/platform/graphics/skia/SkiaUtils.cpp @@ -64,7 +64,7 @@ static const struct CompositOpToSkiaMode { { CompositePlusLighter, SkXfermode::kPlus_Mode } }; -SkXfermode::Mode WebCoreCompositeToSkiaMode(CompositeOperator op) +SkXfermode::Mode WebCoreCompositeToSkiaCOmposite(CompositeOperator op) { const CompositOpToSkiaMode* table = gMapCompositOpsToSkiaModes; |