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

Issue 177983005: Remove CanvasRenderingContext from the web exposed objects (Closed)

Created:
6 years, 9 months ago by arv (Not doing code reviews)
Modified:
6 years, 9 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, rwlbuis, sof, eae+blinkwatch, aandrey+blink_chromium.org, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, watchdog-blink-watchlist_google.com, Inactive, bajones
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove CanvasRenderingContext from the web exposed objects We used have a shared super class called CanvasRenderingContext for CanvasRenderingContext2D and WebGLRenderingContext. This does not match the spec and it does not match Firefox or IE. This removes the web exposed idl file for CanvasRenderingContext. The method that used to return a CanvasRenderingContext now return a (CanvasRenderingContext2D or WebGLRenderingContext) instead. This also allows us to remove the custom bindings that was needed for CanvasRenderingContext This is a web exposed visible change. CanvasRenderingContext was discoverable by walking the prototype chain. It was never exposed as a named property of Window. BUG=348012 R=ch.dumez@samsung.com, kbr@chromium.org, tkent@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=2cda866 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168488

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -97 lines) Patch
A LayoutTests/fast/canvas/CanvasRendering2D-prototype-chain.html View 1 chunk +16 lines, -0 lines 0 comments Download
M Source/bindings/bindings.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
D Source/bindings/v8/custom/V8CanvasRenderingContextCustom.cpp View 1 chunk +0 lines, -51 lines 0 comments Download
M Source/core/core.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/dom/Document.h View 3 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 chunks +15 lines, -2 lines 0 comments Download
M Source/core/dom/Document.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext.h View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
D Source/core/html/canvas/CanvasRenderingContext.idl View 1 chunk +0 lines, -32 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.idl View 1 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.idl View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
arv (Not doing code reviews)
6 years, 9 months ago (2014-02-28 22:38:39 UTC) #1
arv (Not doing code reviews)
PTAL https://codereview.chromium.org/177983005/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.idl File Source/core/html/canvas/CanvasRenderingContext2D.idl (right): https://codereview.chromium.org/177983005/diff/1/Source/core/html/canvas/CanvasRenderingContext2D.idl#newcode30 Source/core/html/canvas/CanvasRenderingContext2D.idl:30: readonly attribute HTMLCanvasElement canvas; The spec puts this ...
6 years, 9 months ago (2014-02-28 22:41:32 UTC) #2
Inactive
https://codereview.chromium.org/177983005/diff/1/Source/core/html/canvas/CanvasRenderingContext.cpp File Source/core/html/canvas/CanvasRenderingContext.cpp (left): https://codereview.chromium.org/177983005/diff/1/Source/core/html/canvas/CanvasRenderingContext.cpp#oldcode40 Source/core/html/canvas/CanvasRenderingContext.cpp:40: ScriptWrappable::init(this); I believe this should be moved to the ...
6 years, 9 months ago (2014-02-28 23:27:09 UTC) #3
Inactive
lgtm. I do believe the compatibility risk is low but an API OWNER needs to ...
6 years, 9 months ago (2014-02-28 23:32:15 UTC) #4
Stephen White
Seems reasonable to me (spec willing); leaving for Justin. https://codereview.chromium.org/177983005/diff/1/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/177983005/diff/1/Source/core/dom/Document.cpp#newcode4726 Source/core/dom/Document.cpp:4726: ...
6 years, 9 months ago (2014-02-28 23:36:40 UTC) #5
Rik
On 2014/02/28 23:36:40, Stephen White wrote: > Seems reasonable to me (spec willing); leaving for ...
6 years, 9 months ago (2014-02-28 23:59:36 UTC) #6
arv (Not doing code reviews)
There is an alternative proposal (element). Once we have that we should look into removing ...
6 years, 9 months ago (2014-03-01 02:16:49 UTC) #7
abarth-chromium
On 2014/02/28 23:32:15, Chris Dumez wrote: > lgtm. I do believe the compatibility risk is ...
6 years, 9 months ago (2014-03-01 07:06:40 UTC) #8
tkent
public API change LGTM
6 years, 9 months ago (2014-03-03 01:35:42 UTC) #9
arv (Not doing code reviews)
The CQ bit was checked by arv@chromium.org
6 years, 9 months ago (2014-03-03 15:00:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/177983005/1
6 years, 9 months ago (2014-03-03 15:00:56 UTC) #11
Justin Novosad
On 2014/02/28 23:36:40, Stephen White wrote: > Seems reasonable to me (spec willing); leaving for ...
6 years, 9 months ago (2014-03-03 16:12:45 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-03 20:01:56 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=24780
6 years, 9 months ago (2014-03-03 20:01:56 UTC) #14
arv (Not doing code reviews)
The CQ bit was checked by arv@chromium.org
6 years, 9 months ago (2014-03-03 23:27:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/177983005/50001
6 years, 9 months ago (2014-03-03 23:28:16 UTC) #16
Ken Russell (switch to Gerrit)
LGTM FWIW
6 years, 9 months ago (2014-03-04 03:47:46 UTC) #17
arv (Not doing code reviews)
Committed patchset #4 manually as r2cda866 (presubmit successful).
6 years, 9 months ago (2014-03-04 22:46:36 UTC) #18
arv (Not doing code reviews)
On 2014/03/04 22:46:36, arv wrote: > Committed patchset #4 manually as r2cda866 (presubmit successful). This ...
6 years, 9 months ago (2014-03-05 15:32:23 UTC) #19
arv (Not doing code reviews)
The CQ bit was checked by arv@chromium.org
6 years, 9 months ago (2014-03-05 15:34:45 UTC) #20
arv (Not doing code reviews)
The CQ bit was unchecked by arv@chromium.org
6 years, 9 months ago (2014-03-05 15:34:46 UTC) #21
arv (Not doing code reviews)
6 years, 9 months ago (2014-03-05 15:44:55 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 manually as r168488 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698