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

Issue 19154006: Get rid of special casing for SVGNumber in the bindings generator (Closed)

Created:
7 years, 5 months ago by do-not-use
Modified:
7 years, 5 months ago
CC:
blink-reviews, Nils Barth (inactive), jsbell+bindings_chromium.org, pdr, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, f(malita), adamk+blink_chromium.org, Stephen Chennney, Nate Chapin, lgombos, krit
Visibility:
Public.

Description

Get rid of special casing for SVGNumber in the bindings generator Get rid of special casing for SVGNumber in the bindings generator by adding a new SVGNumber.h header containing a typedef from SVGNumber to float. The 'value' attribute getter / setter for SVGNumber now have a custom implementation since SVGNumber is not a class.

Patch Set 1 #

Patch Set 2 : Update core.gypi #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -99 lines) Patch
M Source/bindings/bindings.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/deprecated_code_generator_v8.pm View 8 chunks +49 lines, -65 lines 0 comments Download
A + Source/bindings/v8/custom/V8SVGNumberCustom.cpp View 2 chunks +16 lines, -30 lines 3 comments Download
M Source/core/core.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
A + Source/core/svg/SVGNumber.h View 2 chunks +8 lines, -3 lines 0 comments Download
M Source/core/svg/SVGNumber.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
do-not-use
7 years, 5 months ago (2013-07-15 10:50:08 UTC) #1
haraken
https://codereview.chromium.org/19154006/diff/3001/Source/bindings/v8/custom/V8SVGNumberCustom.cpp File Source/bindings/v8/custom/V8SVGNumberCustom.cpp (right): https://codereview.chromium.org/19154006/diff/3001/Source/bindings/v8/custom/V8SVGNumberCustom.cpp#newcode37 Source/bindings/v8/custom/V8SVGNumberCustom.cpp:37: void V8SVGNumber::valueAttrGetterCustom(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) I guess this ...
7 years, 5 months ago (2013-07-15 10:59:15 UTC) #2
do-not-use
https://codereview.chromium.org/19154006/diff/3001/Source/bindings/v8/custom/V8SVGNumberCustom.cpp File Source/bindings/v8/custom/V8SVGNumberCustom.cpp (right): https://codereview.chromium.org/19154006/diff/3001/Source/bindings/v8/custom/V8SVGNumberCustom.cpp#newcode37 Source/bindings/v8/custom/V8SVGNumberCustom.cpp:37: void V8SVGNumber::valueAttrGetterCustom(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) On 2013/07/15 10:59:15, ...
7 years, 5 months ago (2013-07-15 11:11:13 UTC) #3
do-not-use
On 2013/07/15 11:11:13, Christophe Dumez wrote: > https://codereview.chromium.org/19154006/diff/3001/Source/bindings/v8/custom/V8SVGNumberCustom.cpp > File Source/bindings/v8/custom/V8SVGNumberCustom.cpp (right): > > https://codereview.chromium.org/19154006/diff/3001/Source/bindings/v8/custom/V8SVGNumberCustom.cpp#newcode37 ...
7 years, 5 months ago (2013-07-15 11:15:42 UTC) #4
do-not-use
I am not quite sure how we can do better: 1. I don't think it ...
7 years, 5 months ago (2013-07-15 12:07:25 UTC) #5
haraken
On 2013/07/15 12:07:25, Christophe Dumez wrote: > I am not quite sure how we can ...
7 years, 5 months ago (2013-07-15 13:39:33 UTC) #6
Stephen Chennney
The performance hit of converting at runtime from SVGNumber to float would be bad, particularly ...
7 years, 5 months ago (2013-07-15 16:52:40 UTC) #7
pdr.
On 2013/07/15 16:52:40, Stephen Chenney wrote: > The performance hit of converting at runtime from ...
7 years, 5 months ago (2013-07-15 17:33:11 UTC) #8
krit
On 2013/07/15 17:33:11, pdr wrote: > On 2013/07/15 16:52:40, Stephen Chenney wrote: > > The ...
7 years, 5 months ago (2013-07-15 17:44:17 UTC) #9
pdr.
On 2013/07/15 17:44:17, krit wrote: > On 2013/07/15 17:33:11, pdr wrote: > > On 2013/07/15 ...
7 years, 5 months ago (2013-07-15 17:46:28 UTC) #10
do-not-use
On 2013/07/15 17:33:11, pdr wrote: > On 2013/07/15 16:52:40, Stephen Chenney wrote: > > The ...
7 years, 5 months ago (2013-07-15 18:43:47 UTC) #11
haraken
In terms of implementation, both CLs look good. (I don't have enough knowledge about SVG ...
7 years, 5 months ago (2013-07-16 00:08:48 UTC) #12
pdr.
On 2013/07/16 00:08:48, haraken wrote: > In terms of implementation, both CLs look good. (I ...
7 years, 5 months ago (2013-07-17 02:24:05 UTC) #13
haraken
On 2013/07/17 02:24:05, pdr wrote: > I've looked at both and I prefer this CL ...
7 years, 5 months ago (2013-07-17 02:32:45 UTC) #14
pdr.
On 2013/07/17 02:32:45, haraken wrote: > On 2013/07/17 02:24:05, pdr wrote: > > I've looked ...
7 years, 5 months ago (2013-07-17 02:53:37 UTC) #15
haraken
7 years, 5 months ago (2013-07-17 03:58:43 UTC) #16
> This really isn't performance sensitive code, at least today. There are a
couple
> of non-SMIL uses in filters but my understanding is that the usage of these
> properties is quite low and we can revisit this if that changes. If you think
> the custom bindings code will be an undue maintenance burden, lets go ahead
with
> the second patch.

Thanks for the detailed clarification! Then I might want to take the second
patch.

Powered by Google App Engine
This is Rietveld 408576698