diff options
Diffstat (limited to 'WebCore/html/canvas/CanvasGradient.cpp')
-rw-r--r-- | WebCore/html/canvas/CanvasGradient.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/WebCore/html/canvas/CanvasGradient.cpp b/WebCore/html/canvas/CanvasGradient.cpp index fd48194..7c98a82 100644 --- a/WebCore/html/canvas/CanvasGradient.cpp +++ b/WebCore/html/canvas/CanvasGradient.cpp @@ -27,6 +27,8 @@ #include "config.h" #include "CanvasGradient.h" +#include "CanvasPattern.h" +#include "CanvasStyle.h" #include "CSSParser.h" #include "ExceptionCode.h" @@ -52,7 +54,7 @@ void CanvasGradient::addColorStop(float value, const String& color, ExceptionCod } RGBA32 rgba = 0; - if (!CSSParser::parseColor(rgba, color)) { + if (!parseColorOrCurrentColor(rgba, color, 0 /*canvas*/)) { if (!m_dashbardCompatibilityMode) ec = SYNTAX_ERR; return; |