[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
kbr at google.com
kbr at google.com
Wed Dec 22 12:37:12 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit a2b34e065bf4dd514d074a481052e2c88c4be44a
Author: kbr at google.com <kbr at google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Aug 26 01:00:25 2010 +0000
2010-08-25 Kenneth Russell <kbr at google.com>
Reviewed by Simon Fraser.
Source data passed to TypedArray creators should be const
https://bugs.webkit.org/show_bug.cgi?id=44649
Compiled and ran existing WebGL tests to verify.
* html/canvas/Float32Array.cpp:
(WebCore::Float32Array::create):
* html/canvas/Float32Array.h:
* html/canvas/TypedArrayBase.h:
(WebCore::TypedArrayBase::create):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 7f8709f..adcf3bc 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,18 @@
+2010-08-25 Kenneth Russell <kbr at google.com>
+
+ Reviewed by Simon Fraser.
+
+ Source data passed to TypedArray creators should be const
+ https://bugs.webkit.org/show_bug.cgi?id=44649
+
+ Compiled and ran existing WebGL tests to verify.
+
+ * html/canvas/Float32Array.cpp:
+ (WebCore::Float32Array::create):
+ * html/canvas/Float32Array.h:
+ * html/canvas/TypedArrayBase.h:
+ (WebCore::TypedArrayBase::create):
+
2010-08-25 Eric Seidel <eric at webkit.org>
Unreviewed, just removing a dead enum.
diff --git a/WebCore/html/canvas/Float32Array.cpp b/WebCore/html/canvas/Float32Array.cpp
index c95fb48..e6e8439 100644
--- a/WebCore/html/canvas/Float32Array.cpp
+++ b/WebCore/html/canvas/Float32Array.cpp
@@ -37,7 +37,7 @@ PassRefPtr<Float32Array> Float32Array::create(unsigned length)
return TypedArrayBase<float>::create<Float32Array>(length);
}
-PassRefPtr<Float32Array> Float32Array::create(float* array, unsigned length)
+PassRefPtr<Float32Array> Float32Array::create(const float* array, unsigned length)
{
return TypedArrayBase<float>::create<Float32Array>(array, length);
}
diff --git a/WebCore/html/canvas/Float32Array.h b/WebCore/html/canvas/Float32Array.h
index 8112264..ab57087 100644
--- a/WebCore/html/canvas/Float32Array.h
+++ b/WebCore/html/canvas/Float32Array.h
@@ -35,7 +35,7 @@ namespace WebCore {
class Float32Array : public TypedArrayBase<float> {
public:
static PassRefPtr<Float32Array> create(unsigned length);
- static PassRefPtr<Float32Array> create(float* array, unsigned length);
+ static PassRefPtr<Float32Array> create(const float* array, unsigned length);
static PassRefPtr<Float32Array> create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length);
using TypedArrayBase<float>::set;
diff --git a/WebCore/html/canvas/TypedArrayBase.h b/WebCore/html/canvas/TypedArrayBase.h
index c55896b..e69c2b5 100644
--- a/WebCore/html/canvas/TypedArrayBase.h
+++ b/WebCore/html/canvas/TypedArrayBase.h
@@ -67,7 +67,7 @@ class TypedArrayBase : public ArrayBufferView {
}
template <class Subclass>
- static PassRefPtr<Subclass> create(T* array, unsigned length)
+ static PassRefPtr<Subclass> create(const T* array, unsigned length)
{
RefPtr<Subclass> a = create<Subclass>(length);
if (a)
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list