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

Unified Diff: sky/engine/core/html/canvas/CanvasGradient.cpp

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/html/canvas/CanvasGradient.h ('k') | sky/engine/core/html/canvas/CanvasPathMethods.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/canvas/CanvasGradient.cpp
diff --git a/sky/engine/core/html/canvas/CanvasGradient.cpp b/sky/engine/core/html/canvas/CanvasGradient.cpp
index 31d7ed84b16130a0a86e4564143cba56ae39ec30..a0b537129870115a6745a38bfca8543bd697b518 100644
--- a/sky/engine/core/html/canvas/CanvasGradient.cpp
+++ b/sky/engine/core/html/canvas/CanvasGradient.cpp
@@ -27,7 +27,7 @@
#include "sky/engine/config.h"
#include "sky/engine/core/html/canvas/CanvasGradient.h"
-#include "sky/engine/bindings/core/v8/ExceptionState.h"
+#include "sky/engine/bindings2/exception_state.h"
#include "sky/engine/core/dom/ExceptionCode.h"
#include "sky/engine/core/html/canvas/CanvasPattern.h"
#include "sky/engine/core/html/canvas/CanvasStyle.h"
@@ -47,13 +47,13 @@ CanvasGradient::CanvasGradient(const FloatPoint& p0, float r0, const FloatPoint&
void CanvasGradient::addColorStop(float value, const String& color, ExceptionState& exceptionState)
{
if (!(value >= 0 && value <= 1.0f)) {
- exceptionState.throwDOMException(IndexSizeError, "The provided value (" + String::number(value) + ") is outside the range (0.0, 1.0).");
+ exceptionState.ThrowDOMException(IndexSizeError, "The provided value (" + String::number(value) + ") is outside the range (0.0, 1.0).");
return;
}
RGBA32 rgba = 0;
if (!parseColorOrCurrentColor(rgba, color, 0 /*canvas*/)) {
- exceptionState.throwDOMException(SyntaxError, "The value provided ('" + color + "') could not be parsed as a color.");
+ exceptionState.ThrowDOMException(SyntaxError, "The value provided ('" + color + "') could not be parsed as a color.");
return;
}
« no previous file with comments | « sky/engine/core/html/canvas/CanvasGradient.h ('k') | sky/engine/core/html/canvas/CanvasPathMethods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698