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

Issue 313993002: Bindings: Add ScalarValueString support (Closed)

Created:
6 years, 6 months ago by jsbell
Modified:
6 years, 6 months ago
CC:
blink-reviews, arv+blink, abarth-chromium, blink-reviews-bindings_chromium.org, Inactive, blink-reviews-wtf_chromium.org, watchdog-blink-watchlist_google.com, Mikhail
Visibility:
Public.

Description

Bindings: Add ScalarValueString support Spec: http://encoding.spec.whatwg.org/#type-scalarvaluestring Followup to: Add ByteString support to IDL bindings https://codereview.chromium.org/309553002/ Encoding API: Handle null input string https://codereview.chromium.org/313393005/ BUG=379009 TEST=fast/encoding/api/utf16-surrogates-encode.html TEST=fast/js/webidl-type-mapping.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176449

Patch Set 1 #

Total comments: 11

Patch Set 2 : Rebased #

Total comments: 17

Patch Set 3 : Incorporate review feedback #

Total comments: 8

Patch Set 4 : Rebase and Use icu's U16 macros; next patch will move out of wtf #

Patch Set 5 : Move out of Source/wtf #

Total comments: 10

Patch Set 6 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -7 lines) Patch
A LayoutTests/fast/encoding/api/utf16-surrogates-encode.html View 1 chunk +55 lines, -0 lines 0 comments Download
A LayoutTests/fast/encoding/api/utf16-surrogates-encode-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
M LayoutTests/fast/js/webidl-type-mapping.html View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M LayoutTests/fast/js/webidl-type-mapping-expected.txt View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M Source/bindings/scripts/idl_types.py View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_attributes.py View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/scripts/v8_methods.py View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 1 2 3 4 5 6 chunks +8 lines, -3 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 4 5 6 chunks +70 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 2 3 4 5 3 chunks +121 lines, -0 lines 0 comments Download
M Source/core/testing/TypeConversions.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/testing/TypeConversions.idl View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M Source/modules/encoding/TextEncoder.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
jsbell
nbarth@ - this sits on top of https://codereview.chromium.org/309553002/ Not urgent. Handling [Default=NullString] explicitly in TextEncoder.cpp ...
6 years, 6 months ago (2014-06-04 21:05:41 UTC) #1
jsbell
On 2014/06/04 21:05:41, jsbell wrote: > Handling [Default=NullString] explicitly in TextEncoder.cpp looks like an > ...
6 years, 6 months ago (2014-06-09 18:38:25 UTC) #2
Nils Barth (inactive)
LGTM with nits. Mostly: "could you link to specs for all the unfamiliar technicalities"? Also ...
6 years, 6 months ago (2014-06-11 03:54:26 UTC) #3
haraken
LGTM, though I'm not an owner of wtf/. https://codereview.chromium.org/313993002/diff/20001/Source/bindings/v8/V8Binding.cpp File Source/bindings/v8/V8Binding.cpp (right): https://codereview.chromium.org/313993002/diff/20001/Source/bindings/v8/V8Binding.cpp#newcode524 Source/bindings/v8/V8Binding.cpp:524: TONATIVE_DEFAULT_EXCEPTIONSTATE(v8::Local<v8::String>, ...
6 years, 6 months ago (2014-06-11 04:21:12 UTC) #4
jsbell
Feedback incorporated. I may have gone overly spec-comment-happy. nbarth@ - can you take one more ...
6 years, 6 months ago (2014-06-12 17:45:56 UTC) #5
jsbell
Also, should I split out the TextEncoder change/tests into a separate CL?
6 years, 6 months ago (2014-06-12 17:46:44 UTC) #6
haraken
https://codereview.chromium.org/313993002/diff/20001/Source/bindings/v8/V8Binding.cpp File Source/bindings/v8/V8Binding.cpp (right): https://codereview.chromium.org/313993002/diff/20001/Source/bindings/v8/V8Binding.cpp#newcode524 Source/bindings/v8/V8Binding.cpp:524: TONATIVE_DEFAULT_EXCEPTIONSTATE(v8::Local<v8::String>, stringObject, value->ToString(), exceptionState, String()); On 2014/06/12 17:45:55, jsbell ...
6 years, 6 months ago (2014-06-12 17:49:02 UTC) #7
Nils Barth (inactive)
Hi Kent, could you PTAL? Bindings code is fine, but this adds some WTF functions, ...
6 years, 6 months ago (2014-06-16 07:08:29 UTC) #8
Nils Barth (inactive)
On 2014/06/12 17:46:44, jsbell wrote: > Also, should I split out the TextEncoder change/tests into ...
6 years, 6 months ago (2014-06-16 07:09:46 UTC) #9
Nils Barth (inactive)
On 2014/06/12 17:45:56, jsbell wrote: > Feedback incorporated. I may have gone overly spec-comment-happy. It's ...
6 years, 6 months ago (2014-06-16 07:10:49 UTC) #10
tkent
https://codereview.chromium.org/313993002/diff/1/Source/wtf/text/WTFString.h File Source/wtf/text/WTFString.h (right): https://codereview.chromium.org/313993002/diff/1/Source/wtf/text/WTFString.h#newcode386 Source/wtf/text/WTFString.h:386: String toScalarValueString() const; String is not suitable for this ...
6 years, 6 months ago (2014-06-16 07:51:16 UTC) #11
jsbell
Thanks, tkent@; moved everything out of Source/wtf so you're off the hook. haraken@, nbarth@ - ...
6 years, 6 months ago (2014-06-17 21:39:50 UTC) #12
tkent
https://codereview.chromium.org/313993002/diff/80001/Source/bindings/v8/V8Binding.cpp File Source/bindings/v8/V8Binding.cpp (right): https://codereview.chromium.org/313993002/diff/80001/Source/bindings/v8/V8Binding.cpp#newcode609 Source/bindings/v8/V8Binding.cpp:609: u.append(static_cast<UChar32>((1 << 16) + (a << 10) + b)); ...
6 years, 6 months ago (2014-06-17 23:38:54 UTC) #13
Nils Barth (inactive)
LGTM (v. minor nits); thanks Kent for v. useful comments! haraken, could you PTAL? Main ...
6 years, 6 months ago (2014-06-18 03:25:27 UTC) #14
haraken
LGTM for bindings/. https://codereview.chromium.org/313993002/diff/80001/Source/bindings/v8/V8Binding.cpp File Source/bindings/v8/V8Binding.cpp (right): https://codereview.chromium.org/313993002/diff/80001/Source/bindings/v8/V8Binding.cpp#newcode551 Source/bindings/v8/V8Binding.cpp:551: static String convertDOMStringToSequenceOfUnicodeCharacters(const String& string) On ...
6 years, 6 months ago (2014-06-18 04:57:33 UTC) #15
jsbell
Thanks all! https://codereview.chromium.org/313993002/diff/80001/Source/bindings/v8/V8Binding.cpp File Source/bindings/v8/V8Binding.cpp (right): https://codereview.chromium.org/313993002/diff/80001/Source/bindings/v8/V8Binding.cpp#newcode551 Source/bindings/v8/V8Binding.cpp:551: static String convertDOMStringToSequenceOfUnicodeCharacters(const String& string) On 2014/06/18 ...
6 years, 6 months ago (2014-06-18 17:25:20 UTC) #16
jsbell
The CQ bit was checked by jsbell@chromium.org
6 years, 6 months ago (2014-06-18 18:41:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/313993002/100001
6 years, 6 months ago (2014-06-18 18:41:55 UTC) #18
commit-bot: I haz the power
Change committed as 176449
6 years, 6 months ago (2014-06-18 20:01:36 UTC) #19
Nils Barth (inactive)
6 years, 6 months ago (2014-06-20 00:57:54 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/313993002/diff/80001/Source/bindings/v8/V8Bin...
File Source/bindings/v8/V8Binding.cpp (right):

https://codereview.chromium.org/313993002/diff/80001/Source/bindings/v8/V8Bin...
Source/bindings/v8/V8Binding.cpp:554: // but the output is still a sequence of
16-bit code units, effectively
Thanks for explanation!

On 2014/06/18 17:25:19, jsbell wrote:
> [Excuse me while I track down the person that first roped me into encoding
> issues, and slap them with a trout.]

(You could swap with Kouhei: he's been roped into SVG ;)

Powered by Google App Engine
This is Rietveld 408576698