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

Issue 1761003003: Use a union typdef for the return type of canvas.getContext (Closed)

Created:
4 years, 9 months ago by Justin Novosad
Modified:
4 years, 9 months ago
CC:
chromium-reviews, dshwang, ajuma+watch-canvas_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, Rik, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use a union typdef for the return type of canvas.getContext This CL changes the IDL of getContext to match the specification BUG=592091 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/11260a2fbc93d4ac6d6bb328b9c66c5fe1432fe8 Cr-Commit-Position: refs/heads/master@{#380482}

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : added missing new files #

Patch Set 4 : make the return value nullable #

Patch Set 5 : Fix oilpan -ahem- non-oilpan build #

Total comments: 2

Patch Set 6 : *Pass*RefPtrWillBeRawPtr #

Total comments: 5

Patch Set 7 : moar *Pass*RefPtr #

Total comments: 2

Patch Set 8 : final touches #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -27 lines) Patch
M third_party/WebKit/Source/core/html/HTMLCanvasElement.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.idl View 1 chunk +3 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.h View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.idl View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 29 (11 generated)
Justin Novosad
@kbr: This undoes part of this change you submitted over a year ago: https://codereview.chromium.org/795833004 We ...
4 years, 9 months ago (2016-03-04 05:59:17 UTC) #3
Justin Novosad
FWIW, in case anyone would like to suggest better names, I am not particularly proud ...
4 years, 9 months ago (2016-03-04 06:16:31 UTC) #4
Ken Russell (switch to Gerrit)
Please file a bug, block it on Issue 436217, and reference it from the CL. ...
4 years, 9 months ago (2016-03-04 18:36:30 UTC) #5
Justin Novosad
On 2016/03/04 18:36:30, Ken Russell wrote: > Please file a bug, block it on Issue ...
4 years, 9 months ago (2016-03-04 20:41:41 UTC) #6
Justin Novosad
Forgot to mention: new patch!
4 years, 9 months ago (2016-03-07 22:08:02 UTC) #8
Ken Russell (switch to Gerrit)
Thanks for filing the bug. LGTM overall; would like to ask the Oilpan folks to ...
4 years, 9 months ago (2016-03-09 19:59:38 UTC) #10
Justin Novosad
On 2016/03/09 19:59:38, Ken Russell wrote: > https://codereview.chromium.org/1761003003/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp#newcode132 > third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp:132: > result.setCanvasRenderingContext2D(RefPtrWillBeRawPtr<CanvasRenderingContext2D>(this)); > Here and ...
4 years, 9 months ago (2016-03-09 20:31:36 UTC) #11
sof
https://codereview.chromium.org/1761003003/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/1761003003/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp#newcode132 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp:132: result.setCanvasRenderingContext2D(RefPtrWillBeRawPtr<CanvasRenderingContext2D>(this)); On 2016/03/09 19:59:38, Ken Russell wrote: > Here ...
4 years, 9 months ago (2016-03-09 20:46:30 UTC) #12
Justin Novosad
On 2016/03/09 20:46:30, sof wrote: > But shouldn't it be PassRefPtrWillBeRawPtr<>? Indeed. Good catch.
4 years, 9 months ago (2016-03-09 20:53:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1761003003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1761003003/100001
4 years, 9 months ago (2016-03-09 21:26:23 UTC) #16
sof
https://codereview.chromium.org/1761003003/diff/100001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h (right): https://codereview.chromium.org/1761003003/diff/100001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h#newcode86 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h:86: void setCanvasGetContextResult(RenderingContext&) final; "final" on a "final" class - ...
4 years, 9 months ago (2016-03-09 22:05:26 UTC) #18
Justin Novosad
https://codereview.chromium.org/1761003003/diff/100001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h (right): https://codereview.chromium.org/1761003003/diff/100001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h#newcode86 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h:86: void setCanvasGetContextResult(RenderingContext&) final; On 2016/03/09 22:05:26, sof wrote: > ...
4 years, 9 months ago (2016-03-09 22:31:00 UTC) #19
Justin Novosad
new patch
4 years, 9 months ago (2016-03-09 22:37:32 UTC) #20
haraken
LGTM https://codereview.chromium.org/1761003003/diff/120001/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.h File third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.h (right): https://codereview.chromium.org/1761003003/diff/120001/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.h#newcode17 third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.h:17: class HTMLCanvasElementModule { Add STATIC_ONLY. https://codereview.chromium.org/1761003003/diff/120001/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.idl File third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.idl ...
4 years, 9 months ago (2016-03-10 01:24:59 UTC) #21
Justin Novosad
On 2016/03/10 01:24:59, haraken wrote: > https://codereview.chromium.org/1761003003/diff/120001/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.idl#newcode17 > third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.idl:17: // (and > is not undefined ...
4 years, 9 months ago (2016-03-10 17:35:44 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1761003003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1761003003/140001
4 years, 9 months ago (2016-03-10 17:52:46 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 9 months ago (2016-03-10 22:56:59 UTC) #27
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 22:58:26 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/11260a2fbc93d4ac6d6bb328b9c66c5fe1432fe8
Cr-Commit-Position: refs/heads/master@{#380482}

Powered by Google App Engine
This is Rietveld 408576698