summaryrefslogtreecommitdiffstats
path: root/webkit/port/bindings/v8/v8_custom.cpp
diff options
context:
space:
mode:
authordimich@google.com <dimich@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-07 21:44:36 +0000
committerdimich@google.com <dimich@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-07 21:44:36 +0000
commit4bab3b214e92e0884af87c4ae9287da3daff5f3d (patch)
treea45c0da83e8aa43e94eedf796b923ebbcf3509b9 /webkit/port/bindings/v8/v8_custom.cpp
parent5bcdb31304d676b38ce605180b7d8816e9a8b745 (diff)
downloadchromium_src-4bab3b214e92e0884af87c4ae9287da3daff5f3d.zip
chromium_src-4bab3b214e92e0884af87c4ae9287da3daff5f3d.tar.gz
chromium_src-4bab3b214e92e0884af87c4ae9287da3daff5f3d.tar.bz2
WebKit merge 39606:39660
Review URL: http://codereview.chromium.org/17239 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8/v8_custom.cpp')
-rw-r--r--webkit/port/bindings/v8/v8_custom.cpp45
1 files changed, 8 insertions, 37 deletions
diff --git a/webkit/port/bindings/v8/v8_custom.cpp b/webkit/port/bindings/v8/v8_custom.cpp
index 30dbf2e..5c75ea7 100644
--- a/webkit/port/bindings/v8/v8_custom.cpp
+++ b/webkit/port/bindings/v8/v8_custom.cpp
@@ -49,7 +49,6 @@
#include "Base64.h"
#include "CanvasGradient.h"
#include "CanvasPattern.h"
-#include "CanvasPixelArray.h"
#include "CanvasRenderingContext2D.h"
#include "CanvasStyle.h"
#include "Clipboard.h"
@@ -686,34 +685,6 @@ NAMED_PROPERTY_GETTER(HTMLCollection) {
return HTMLCollectionGetNamedItems(imp, key);
}
-INDEXED_PROPERTY_GETTER(CanvasPixelArray) {
- INC_STATS("DOM.CanvasPixelArray.IndexedPropertyGetter");
- CanvasPixelArray* pixelArray =
- V8Proxy::ToNativeObject<CanvasPixelArray>(V8ClassIndex::CANVASPIXELARRAY,
- info.Holder());
-
- // TODO(eroman): This performance will not be good when looping through
- // many pixels. See: http://code.google.com/p/chromium/issues/detail?id=3473
-
- unsigned char result;
- if (!pixelArray->get(index, result))
- return v8::Undefined();
- return v8::Number::New(result);
-}
-
-INDEXED_PROPERTY_SETTER(CanvasPixelArray) {
- INC_STATS("DOM.CanvasPixelArray.IndexedPropertySetter");
- CanvasPixelArray* pixelArray =
- V8Proxy::ToNativeObject<CanvasPixelArray>(V8ClassIndex::CANVASPIXELARRAY,
- info.Holder());
-
- double pixelValue = value->NumberValue();
- pixelArray->set(index, pixelValue);
-
- // TODO(eroman): what to return?
- return v8::Undefined();
-}
-
CALLBACK_FUNC_DECL(HTMLCollectionItem) {
INC_STATS("DOM.HTMLCollection.item()");
HTMLCollection* imp = V8Proxy::ToNativeObject<HTMLCollection>(
@@ -3290,11 +3261,11 @@ CALLBACK_FUNC_DECL(SVGLengthConvertToSpecifiedUnits) {
CALLBACK_FUNC_DECL(SVGMatrixInverse) {
INC_STATS("DOM.SVGMatrix.inverse()");
- AffineTransform imp =
- *V8Proxy::ToNativeObject<V8SVGPODTypeWrapper<AffineTransform> >(
+ TransformationMatrix imp =
+ *V8Proxy::ToNativeObject<V8SVGPODTypeWrapper<TransformationMatrix> >(
V8ClassIndex::SVGMATRIX, args.Holder());
ExceptionCode ec = 0;
- AffineTransform result = imp.inverse();
+ TransformationMatrix result = imp.inverse();
if (!imp.isInvertible()) {
ec = SVGException::SVG_MATRIX_NOT_INVERTABLE;
}
@@ -3304,18 +3275,18 @@ CALLBACK_FUNC_DECL(SVGMatrixInverse) {
}
return V8Proxy::ToV8Object(V8ClassIndex::SVGMATRIX,
- new V8SVGStaticPODTypeWrapper<AffineTransform>(result));
+ new V8SVGStaticPODTypeWrapper<TransformationMatrix>(result));
}
CALLBACK_FUNC_DECL(SVGMatrixRotateFromVector) {
INC_STATS("DOM.SVGMatrix.rotateFromVector()");
- AffineTransform imp =
- *V8Proxy::ToNativeObject<V8SVGPODTypeWrapper<AffineTransform> >(
+ TransformationMatrix imp =
+ *V8Proxy::ToNativeObject<V8SVGPODTypeWrapper<TransformationMatrix> >(
V8ClassIndex::SVGMATRIX, args.Holder());
ExceptionCode ec = 0;
float x = TO_FLOAT(args[0]);
float y = TO_FLOAT(args[1]);
- AffineTransform result = imp;
+ TransformationMatrix result = imp;
result.rotateFromVector(x, y);
if (x == 0.0 || y == 0.0) {
ec = SVGException::SVG_INVALID_VALUE_ERR;
@@ -3326,7 +3297,7 @@ CALLBACK_FUNC_DECL(SVGMatrixRotateFromVector) {
}
return V8Proxy::ToV8Object(V8ClassIndex::SVGMATRIX,
- new V8SVGStaticPODTypeWrapper<AffineTransform>(result));
+ new V8SVGStaticPODTypeWrapper<TransformationMatrix>(result));
}
CALLBACK_FUNC_DECL(SVGElementInstanceAddEventListener) {