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

Issue 18178: Fix for bug 6100:... (Closed)

Created:
11 years, 11 months ago by iposva
Modified:
9 years, 3 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix for bug 6100: - Introduce a CanvasPixelArray to serve as the holder for the ImageData pixel array of a canvas element. This is the third_party/WebKit change. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8326

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M third_party/WebKit/WebCore/DerivedSources.make View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/WebCore/html/ImageData.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/WebCore/html/ImageData.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/WebCore/html/ImageData.idl View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
iposva
11 years, 11 months ago (2009-01-16 22:28:39 UTC) #1
darin (slow to review)
you should create a ScriptPixelBuffer.{h,cpp} (or ScriptByteArray.{h,cpp}) in WebCore/bindings/js to preserve the JSC bindings. http://codereview.chromium.org/18178/diff/1/3 ...
11 years, 11 months ago (2009-01-16 22:33:39 UTC) #2
Feng Qian
http://codereview.chromium.org/18178/diff/1/3 File third_party/WebKit/WebCore/html/ImageData.h (right): http://codereview.chromium.org/18178/diff/1/3#newcode32 Line 32: #include <ScriptPixelBuffer.h> I feel the same way as ...
11 years, 11 months ago (2009-01-16 22:36:35 UTC) #3
iposva
http://codereview.chromium.org/18178/diff/1/3 File third_party/WebKit/WebCore/html/ImageData.h (right): http://codereview.chromium.org/18178/diff/1/3#newcode32 Line 32: #include <ScriptPixelBuffer.h> Here is a question for both ...
11 years, 11 months ago (2009-01-16 22:55:05 UTC) #4
darin (slow to review)
So, at the end of the day, you don't have to convince me or feng. ...
11 years, 11 months ago (2009-01-16 23:04:06 UTC) #5
iposva
Renamed ScriptPixelBuffer -> CanvasPixelArray.
11 years, 11 months ago (2009-01-17 00:49:12 UTC) #6
darin (slow to review)
LGTM http://codereview.chromium.org/18178/diff/17/19 File third_party/WebKit/WebCore/html/ImageData.h (right): http://codereview.chromium.org/18178/diff/17/19#newcode32 Line 32: #include "CanvasPixelArray.h" i guess when we upstream ...
11 years, 11 months ago (2009-01-20 18:26:20 UTC) #7
iposva
11 years, 11 months ago (2009-01-20 19:49:51 UTC) #8
http://codereview.chromium.org/18178/diff/17/19
File third_party/WebKit/WebCore/html/ImageData.h (right):

http://codereview.chromium.org/18178/diff/17/19#newcode32
Line 32: #include "CanvasPixelArray.h"
On 2009/01/20 18:26:21, darin wrote:
> i guess when we upstream this change, we'll need to create this file in
> WebCore/bindings/js to contain a typedef ByteArray CanvasPixelArray

Correct, but this will be part of the upstream change and then will come down
with the next merge.

http://codereview.chromium.org/18178/diff/17/20
File third_party/WebKit/WebCore/html/ImageData.idl (right):

http://codereview.chromium.org/18178/diff/17/20#newcode37
Line 37: #if defined(LANGUAGE_JAVASCRIPT) && defined(V8_BINDING)
On 2009/01/20 18:26:21, darin wrote:
> I believe olliej's suggestion was to make this !JSC instead, presumably to
cover
> all other bindings.  However, I don't think we have a way to express that in
IDL
> :(
Exactly, have not found a way to express it either.

http://codereview.chromium.org/18178/diff/17/20#newcode39
Line 39: #endif // defined(LANGUAGE_JAVASCRIPT) && defined(V8_BINDING)
On 2009/01/20 18:26:21, darin wrote:
> nit: it doesn't appear to be webkit style to comment the #endif like this

Done.

Powered by Google App Engine
This is Rietveld 408576698