summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2009-11-26 15:50:24 +0000
committerSteve Block <steveblock@google.com>2009-11-26 22:58:32 +0000
commitc1b3453d5e30a3faf5e9e2465718730250c9fb4b (patch)
treee9d0e629b6bea0c0531745ee9a9bb4d7ea62ec37 /WebCore
parent5b4f81709e8df8d953e2ad8496996fb0112b6186 (diff)
downloadexternal_webkit-c1b3453d5e30a3faf5e9e2465718730250c9fb4b.zip
external_webkit-c1b3453d5e30a3faf5e9e2465718730250c9fb4b.tar.gz
external_webkit-c1b3453d5e30a3faf5e9e2465718730250c9fb4b.tar.bz2
Remove the Android-specific setCMYKXXXColor methods, which are not used.
Change-Id: Ie9bc2064b10c01579d60e31f62ea6996974f8f4a
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/graphics/GraphicsContext.h5
-rw-r--r--WebCore/platform/graphics/android/GraphicsContextAndroid.cpp16
2 files changed, 0 insertions, 21 deletions
diff --git a/WebCore/platform/graphics/GraphicsContext.h b/WebCore/platform/graphics/GraphicsContext.h
index 5b62b2c..3ffc211 100644
--- a/WebCore/platform/graphics/GraphicsContext.h
+++ b/WebCore/platform/graphics/GraphicsContext.h
@@ -204,10 +204,6 @@ namespace WebCore {
#endif
#if PLATFORM(SGL)
- /* these should be pused to apple. needed for CanvasStyle.cpp */
- void setCMYKAFillColor(float c, float m, float y, float k, float a);
- void setCMYKAStrokeColor(float c, float m, float y, float k, float a);
-
// initialize a paint for bitmaps
void setupBitmapPaint(SkPaint*);
// initialize a paint for filling
@@ -469,4 +465,3 @@ namespace WebCore {
} // namespace WebCore
#endif // GraphicsContext_h
-
diff --git a/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp b/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp
index 3acc3fa..b480e2c 100644
--- a/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp
+++ b/WebCore/platform/graphics/android/GraphicsContextAndroid.cpp
@@ -858,22 +858,6 @@ void GraphicsContext::endTransparencyLayer()
bool GraphicsContext::setupShadowPaint(SkPaint* paint, SkPoint* offset) {
return m_data->mState->setupShadowPaint(paint, offset);
}
-
- // referenced from CanvasStyle.cpp
- void GraphicsContext::setCMYKAFillColor(float c, float m, float y, float k, float a) {
- float r = 1 - (c + k);
- float g = 1 - (m + k);
- float b = 1 - (y + k);
- return this->setFillColor(Color(r, g, b, a));
- }
-
- // referenced from CanvasStyle.cpp
- void GraphicsContext::setCMYKAStrokeColor(float c, float m, float y, float k, float a) {
- float r = 1 - (c + k);
- float g = 1 - (m + k);
- float b = 1 - (y + k);
- return this->setStrokeColor(Color(r, g, b, a));
- }
void GraphicsContext::setPlatformStrokeColor(const Color& c) {
m_data->setStrokeColor(c);