diff options
author | Ben Murdoch <benm@google.com> | 2011-10-27 18:34:51 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-10-27 18:34:51 +0000 |
commit | 2174d541b5ae14b642f925b58f9a1c604deebd65 (patch) | |
tree | 2242922f8744221e86620baa4e9e7eb27aa8de14 /Source/WebCore/platform/graphics/android | |
parent | f2c391e9fd3e07bc64eb3b012e2b440079326c0b (diff) | |
parent | 0b8560dee52ce9d55cda03caa5f2a3e733b55ba3 (diff) | |
download | external_webkit-2174d541b5ae14b642f925b58f9a1c604deebd65.zip external_webkit-2174d541b5ae14b642f925b58f9a1c604deebd65.tar.gz external_webkit-2174d541b5ae14b642f925b58f9a1c604deebd65.tar.bz2 |
am 0b8560de: Add missing save/restore calls to GraphicsContext::fillRect
* commit '0b8560dee52ce9d55cda03caa5f2a3e733b55ba3':
Add missing save/restore calls to GraphicsContext::fillRect
Diffstat (limited to 'Source/WebCore/platform/graphics/android')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp b/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp index 86e1f63..f647673 100644 --- a/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp @@ -782,6 +782,7 @@ void GraphicsContext::fillRoundedRect(const IntRect& rect, const IntSize& topLef void GraphicsContext::fillRect(const FloatRect& rect) { + save(); SkPaint paint; m_data->setupPaintFill(&paint); @@ -791,6 +792,7 @@ void GraphicsContext::fillRect(const FloatRect& rect) m_state.fillGradient.get()); GC2CANVAS(this)->drawRect(rect, paint); + restore(); } void GraphicsContext::fillRect(const FloatRect& rect, const Color& color, ColorSpace) @@ -799,6 +801,7 @@ void GraphicsContext::fillRect(const FloatRect& rect, const Color& color, ColorS return; if (color.rgb() & 0xFF000000) { + save(); SkPaint paint; m_data->setupPaintCommon(&paint); @@ -828,6 +831,7 @@ void GraphicsContext::fillRect(const FloatRect& rect, const Color& color, ColorS paint.setAntiAlias(false); GC2CANVAS(this)->drawRect(rect, paint); + restore(); } } |