diff options
author | Feng Qian <> | 2009-04-10 18:11:29 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-10 18:11:29 -0700 |
commit | 8f72e70a9fd78eec56623b3a62e68f16b7b27e28 (patch) | |
tree | 181bf9a400c30a1bf34ea6d72560e8d00111d549 /WebCore/html/CanvasStyle.cpp | |
parent | 7ed56f225e0ade046e1c2178977f72b2d896f196 (diff) | |
download | external_webkit-8f72e70a9fd78eec56623b3a62e68f16b7b27e28.zip external_webkit-8f72e70a9fd78eec56623b3a62e68f16b7b27e28.tar.gz external_webkit-8f72e70a9fd78eec56623b3a62e68f16b7b27e28.tar.bz2 |
AI 145796: Land the WebKit merge @r42026.
Automated import of CL 145796
Diffstat (limited to 'WebCore/html/CanvasStyle.cpp')
-rw-r--r-- | WebCore/html/CanvasStyle.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/WebCore/html/CanvasStyle.cpp b/WebCore/html/CanvasStyle.cpp index d82643f..0aaaab2 100644 --- a/WebCore/html/CanvasStyle.cpp +++ b/WebCore/html/CanvasStyle.cpp @@ -78,12 +78,21 @@ CanvasStyle::CanvasStyle(float grayLevel, float alpha) } CanvasStyle::CanvasStyle(float r, float g, float b, float a) - : m_type(RGBA), m_alpha(a), m_red(r), m_green(g), m_blue(b) + : m_type(RGBA) + , m_alpha(a) + , m_red(r) + , m_green(g) + , m_blue(b) { } CanvasStyle::CanvasStyle(float c, float m, float y, float k, float a) - : m_type(CMYKA), m_alpha(a), m_cyan(c), m_magenta(m), m_yellow(y), m_black(k) + : m_type(CMYKA) + , m_alpha(a) + , m_cyan(c) + , m_magenta(m) + , m_yellow(y) + , m_black(k) { } @@ -146,10 +155,10 @@ void CanvasStyle::applyStrokeColor(GraphicsContext* context) clr.setCmykF(m_cyan, m_magenta, m_yellow, m_black, m_alpha); currentPen.setColor(clr); context->platformContext()->setPen(currentPen); -#elif PLATFORM(CAIRO) - notImplemented(); #elif PLATFORM(SGL) context->setCMYKAStrokeColor(m_cyan, m_magenta, m_yellow, m_black, m_alpha); +#else + context->setStrokeColor(Color(m_cyan, m_magenta, m_yellow, m_black, m_alpha)); #endif break; } @@ -211,6 +220,8 @@ void CanvasStyle::applyFillColor(GraphicsContext* context) context->platformContext()->setBrush(currentBrush); #elif PLATFORM(SGL) context->setCMYKAFillColor(m_cyan, m_magenta, m_yellow, m_black, m_alpha); +#else + context->setFillColor(Color(m_cyan, m_magenta, m_yellow, m_black, m_alpha)); #endif break; } |