Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: Source/WebCore/html/canvas/CanvasStyle.cpp

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/html/canvas/CanvasStyle.cpp
diff --git a/Source/WebCore/html/canvas/CanvasStyle.cpp b/Source/WebCore/html/canvas/CanvasStyle.cpp
index 9309ec61544933a3effde462e26fe39e15d7d756..1b272076593e57ab316a1edbdb0ea9bfa1f03f81 100644
--- a/Source/WebCore/html/canvas/CanvasStyle.cpp
+++ b/Source/WebCore/html/canvas/CanvasStyle.cpp
@@ -43,13 +43,6 @@
#include <CoreGraphics/CGContext.h>
#endif
-#if PLATFORM(QT)
-#include <QPainter>
-#include <QBrush>
-#include <QPen>
-#include <QColor>
-#endif
-
namespace WebCore {
enum ColorParseResult { ParsedRGBA, ParsedCurrentColor, ParsedSystemColor, ParseFailed };
@@ -241,12 +234,6 @@ void CanvasStyle::applyStrokeColor(GraphicsContext* context)
// We'll need a fancier Color abstraction to support CMYKA correctly
#if USE(CG)
CGContextSetCMYKStrokeColor(context->platformContext(), m_cmyka.c, m_cmyka.m, m_cmyka.y, m_cmyka.k, m_cmyka.a);
-#elif PLATFORM(QT)
- QPen currentPen = context->platformContext()->pen();
- QColor clr;
- clr.setCmykF(m_cmyka.c, m_cmyka.m, m_cmyka.y, m_cmyka.k, m_cmyka.a);
- currentPen.setColor(clr);
- context->platformContext()->setPen(currentPen);
#else
context->setStrokeColor(m_rgba, ColorSpaceDeviceRGB);
#endif
@@ -278,12 +265,6 @@ void CanvasStyle::applyFillColor(GraphicsContext* context)
// We'll need a fancier Color abstraction to support CMYKA correctly
#if USE(CG)
CGContextSetCMYKFillColor(context->platformContext(), m_cmyka.c, m_cmyka.m, m_cmyka.y, m_cmyka.k, m_cmyka.a);
-#elif PLATFORM(QT)
- QBrush currentBrush = context->platformContext()->brush();
- QColor clr;
- clr.setCmykF(m_cmyka.c, m_cmyka.m, m_cmyka.y, m_cmyka.k, m_cmyka.a);
- currentBrush.setColor(clr);
- context->platformContext()->setBrush(currentBrush);
#else
context->setFillColor(m_rgba, ColorSpaceDeviceRGB);
#endif
« no previous file with comments | « Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/WebCore/html/canvas/WebGLContextGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698