| Index: Source/core/html/canvas/CanvasGradient.cpp
|
| diff --git a/Source/core/html/canvas/CanvasGradient.cpp b/Source/core/html/canvas/CanvasGradient.cpp
|
| index 394ebf0f2a4f79cfeb8aecd0e28d2e5c7419b2ab..a54df397a0f6b63895d5eba62aceb57167ad4291 100644
|
| --- a/Source/core/html/canvas/CanvasGradient.cpp
|
| +++ b/Source/core/html/canvas/CanvasGradient.cpp
|
| @@ -49,13 +49,13 @@ CanvasGradient::CanvasGradient(const FloatPoint& p0, float r0, const FloatPoint&
|
| void CanvasGradient::addColorStop(float value, const String& color, ExceptionState& es)
|
| {
|
| if (!(value >= 0 && value <= 1.0f)) {
|
| - es.throwDOMException(IndexSizeError);
|
| + es.throwUninformativeAndGenericDOMException(IndexSizeError);
|
| return;
|
| }
|
|
|
| RGBA32 rgba = 0;
|
| if (!parseColorOrCurrentColor(rgba, color, 0 /*canvas*/)) {
|
| - es.throwDOMException(SyntaxError);
|
| + es.throwUninformativeAndGenericDOMException(SyntaxError);
|
| return;
|
| }
|
|
|
|
|