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

Issue 290143007: canvas.getContext with alpha:undefined should behave like alpha:true (Closed)

Created:
6 years, 7 months ago by zino
Modified:
6 years, 7 months ago
Reviewers:
haraken, Justin Novosad
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

canvas.getContext with alpha:undefined should behave like alpha:true WebIDL dictionary spec says that setting a dictionary value to null or undefined should result in the attribute retaining its default value. So, if alpha is undefined or null, it should be converted as true. BUG=371089 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174508

Patch Set 1 #

Patch Set 2 : test expectations #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -8 lines) Patch
A LayoutTests/fast/canvas/canvas-context-attributes-default-value.html View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-context-attributes-default-value-expected.txt View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/webgl/webgl-context-attributes-default-value.html View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/webgl/webgl-context-attributes-default-value-expected.txt View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp View 1 2 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
zino
Please take a look. Thank you.
6 years, 7 months ago (2014-05-18 05:09:29 UTC) #1
Justin Novosad
https://codereview.chromium.org/290143007/diff/20001/Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp File Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp (right): https://codereview.chromium.org/290143007/diff/20001/Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp#newcode50 Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:50: static bool determineAlpha(v8::Handle<v8::Value> alphaValue) We are going to need ...
6 years, 7 months ago (2014-05-20 19:28:39 UTC) #2
zino
On 2014/05/20 19:28:39, junov wrote: > https://codereview.chromium.org/290143007/diff/20001/Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp > File Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp (right): > > https://codereview.chromium.org/290143007/diff/20001/Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp#newcode50 > ...
6 years, 7 months ago (2014-05-21 10:29:50 UTC) #3
Justin Novosad
lgtm
6 years, 7 months ago (2014-05-21 14:09:19 UTC) #4
haraken
LGTM for bindings/
6 years, 7 months ago (2014-05-21 14:39:43 UTC) #5
zino
Thanks to everyone :)
6 years, 7 months ago (2014-05-21 15:09:58 UTC) #6
zino
The CQ bit was checked by jinho.bang@samsung.com
6 years, 7 months ago (2014-05-21 15:10:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinho.bang@samsung.com/290143007/40001
6 years, 7 months ago (2014-05-21 17:50:39 UTC) #8
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 02:13:46 UTC) #9
Message was sent while issue was closed.
Change committed as 174508

Powered by Google App Engine
This is Rietveld 408576698