|
Restructure handling of list type extended attributes
This patch does a number of things:
- Drops the [Attr=Some|Other] syntax, in favor of [Attr=(Some,Other)]
which WebIDL defines, and converts all uses of the former in our IDL
files. Also drops related grammar overrides from blink_idl_parser.py.
- Simplifies [Conditional] to only support single identifier form, which
is the only way it's used in current (real) IDL files.
- Adds [Attr="value"] and [Attr=("some","other")] instead of the previous
[Attr="some"|"other"] syntax, to better match the syntax of identifier
lists.
- Changes the output from the parser to be Python lists for list type
attributes, so that the rest of the code doesn't need to do string
splitting operations. In the case of string literal values means we can
now handle string literals containing ',' and '|' correctly, should
that ever become an issue.
None of these changes affect code generation.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180852
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+75 lines, -197 lines) |
Patch |
|
M |
Source/bindings/scripts/aggregate_generated_bindings.py
|
View
|
|
4 chunks |
+3 lines, -14 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/blink_idl_parser.py
|
View
|
1
|
2 chunks |
+20 lines, -28 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/idl_definitions.py
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/idl_validator.py
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_attributes.py
|
View
|
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_interface.py
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_utilities.py
|
View
|
|
5 chunks |
+13 lines, -17 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/idls/TestInterface.idl
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/idls/TestInterface2.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/tests/idls/TestInterface3.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/tests/idls/TestObject.idl
|
View
|
|
3 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestInterface.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestObject.cpp
|
View
|
|
4 chunks |
+0 lines, -102 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSStyleDeclaration.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Document.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLFormElement.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLImageElement.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLLinkElement.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLMediaElement.idl
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLScriptElement.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/CanvasRenderingContext2D.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/WebGLRenderingContextBase.idl
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/modules/mediasource/MediaSource.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/mediasource/SourceBuffer.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|