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

Issue 699713003: IDL: ArrayBuffer and ArrayBufferView support for union types (Closed)

Created:
6 years, 1 month ago by bashi
Modified:
6 years, 1 month ago
CC:
blink-reviews, arv+blink, blink-reviews-css, dglazkov+blink, ed+blinkwatch_opera.com, blink-reviews-bindings_chromium.org, Inactive, darktears, apavlov+blink_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

IDL: ArrayBuffer and ArrayBufferView support for union types (ArrayBuffer or ArrayBufferView) is a common union type usage. For example, CSS font loading[1] and fetch API[2] use it. Implement and use them for FontFace constructor. Change for FontFace is covered by fast/css/fontface-arraybuffer.html This CL also fixed two minor bugs: - Collect union types from constructors (we didn't before) - We need to use 'implemented_as' for forward class declarations, instead of 'name'. [1] http://dev.w3.org/csswg/css-font-loading/#fontface-interface [2] https://fetch.spec.whatwg.org/#body-mixin BUG=240176 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184824

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -15 lines) Patch
M Source/bindings/scripts/compute_interfaces_info_individual.py View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_union.py View 4 chunks +14 lines, -2 lines 0 comments Download
M Source/bindings/templates/union.cpp View 1 2 2 chunks +19 lines, -5 lines 0 comments Download
M Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/core/UnionTypesCore.h View 2 chunks +48 lines, -1 line 0 comments Download
M Source/bindings/tests/results/core/UnionTypesCore.cpp View 2 chunks +90 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 2 chunks +24 lines, -0 lines 0 comments Download
M Source/core/css/FontFace.h View 3 chunks +6 lines, -3 lines 0 comments Download
M Source/core/css/FontFace.cpp View 2 chunks +13 lines, -0 lines 0 comments Download
M Source/core/css/FontFace.idl View 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
bashi
Haraken-san, Jens, Shiino-san: PTAL? Sakamoto-san: FYI https://codereview.chromium.org/699713003/diff/20001/Source/bindings/tests/results/core/UnionTypesCore.cpp File Source/bindings/tests/results/core/UnionTypesCore.cpp (right): https://codereview.chromium.org/699713003/diff/20001/Source/bindings/tests/results/core/UnionTypesCore.cpp#newcode233 Source/bindings/tests/results/core/UnionTypesCore.cpp:233: void V8StringOrArrayBufferOrArrayBufferView::toImpl(v8::Isolate* isolate, ...
6 years, 1 month ago (2014-11-04 01:17:03 UTC) #3
haraken
LGTM https://codereview.chromium.org/699713003/diff/20001/Source/bindings/templates/union.cpp File Source/bindings/templates/union.cpp (right): https://codereview.chromium.org/699713003/diff/20001/Source/bindings/templates/union.cpp#newcode10 Source/bindings/templates/union.cpp:10: {% macro install_hasinstance_check(member) %} "install_" sounds a bit ...
6 years, 1 month ago (2014-11-04 02:20:14 UTC) #4
bashi
Thank you for review! https://codereview.chromium.org/699713003/diff/20001/Source/bindings/templates/union.cpp File Source/bindings/templates/union.cpp (right): https://codereview.chromium.org/699713003/diff/20001/Source/bindings/templates/union.cpp#newcode10 Source/bindings/templates/union.cpp:10: {% macro install_hasinstance_check(member) %} On ...
6 years, 1 month ago (2014-11-04 02:30:32 UTC) #5
Yuki
lgtm with minor comments. https://codereview.chromium.org/699713003/diff/20001/Source/bindings/templates/union.cpp File Source/bindings/templates/union.cpp (right): https://codereview.chromium.org/699713003/diff/20001/Source/bindings/templates/union.cpp#newcode10 Source/bindings/templates/union.cpp:10: {% macro install_hasinstance_check(member) %} On ...
6 years, 1 month ago (2014-11-04 06:35:14 UTC) #6
Jens Widell
LGTM https://codereview.chromium.org/699713003/diff/20001/Source/bindings/templates/union.cpp File Source/bindings/templates/union.cpp (right): https://codereview.chromium.org/699713003/diff/20001/Source/bindings/templates/union.cpp#newcode10 Source/bindings/templates/union.cpp:10: {% macro install_hasinstance_check(member) %} On 2014/11/04 06:35:14, Yuki ...
6 years, 1 month ago (2014-11-04 07:22:56 UTC) #7
bashi
Thank you for reviews! https://codereview.chromium.org/699713003/diff/20001/Source/bindings/templates/union.cpp File Source/bindings/templates/union.cpp (right): https://codereview.chromium.org/699713003/diff/20001/Source/bindings/templates/union.cpp#newcode10 Source/bindings/templates/union.cpp:10: {% macro install_hasinstance_check(member) %} On ...
6 years, 1 month ago (2014-11-04 08:35:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699713003/60001
6 years, 1 month ago (2014-11-04 08:50:48 UTC) #10
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 09:49:17 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as 184824

Powered by Google App Engine
This is Rietveld 408576698