diff options
Diffstat (limited to 'WebCore/html/CanvasGradient.cpp')
-rw-r--r-- | WebCore/html/CanvasGradient.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/html/CanvasGradient.cpp b/WebCore/html/CanvasGradient.cpp index 693d8f7..fd48194 100644 --- a/WebCore/html/CanvasGradient.cpp +++ b/WebCore/html/CanvasGradient.cpp @@ -34,11 +34,13 @@ namespace WebCore { CanvasGradient::CanvasGradient(const FloatPoint& p0, const FloatPoint& p1) : m_gradient(Gradient::create(p0, p1)) + , m_dashbardCompatibilityMode(false) { } CanvasGradient::CanvasGradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1) : m_gradient(Gradient::create(p0, r0, p1, r1)) + , m_dashbardCompatibilityMode(false) { } @@ -51,7 +53,8 @@ void CanvasGradient::addColorStop(float value, const String& color, ExceptionCod RGBA32 rgba = 0; if (!CSSParser::parseColor(rgba, color)) { - ec = SYNTAX_ERR; + if (!m_dashbardCompatibilityMode) + ec = SYNTAX_ERR; return; } |