|
Use dictionaries for context creation attributes. Eliminate custom bindings.
Change Canvas2DContextAttributes and WebGLContextAttributes to
dictionaries, following their specification. Delete the handwritten
C++ code for these types. Add helper functions for working with them.
Fix a bug in the V8 bindings generator related to returning of
nullable dictionary types.
Define a CanvasContextCreationAttributes dictionary containing all of
the context creation attributes for all of the context types, which is
functionally equivalent to the specification's IDL. Delete the custom
binding for HTMLCanvasElement's getContext().
BUG= 436217
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187077
Total comments: 9
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+587 lines, -764 lines) |
Patch |
|
M |
LayoutTests/fast/canvas/canvas-context-attributes-default-value.html
|
View
|
1
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/canvas/canvas-context-attributes-default-value-expected.txt
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/fast/canvas/webgl/webgl-context-attributes-default-value.html
|
View
|
1
|
3 chunks |
+16 lines, -4 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/canvas/webgl/webgl-context-attributes-default-value-expected.txt
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/bindings/IDLExtendedAttributes.txt
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/ScriptValue.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/ScriptValue.cpp
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/WebGLAny.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/WebGLAny.cpp
|
View
|
1
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
A |
Source/bindings/core/v8/WrapCanvasContext.h
|
View
|
1
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/bindings/core/v8/WrapCanvasContext.cpp
|
View
|
1
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp
|
View
|
|
1 chunk |
+0 lines, -82 lines |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/v8.gypi
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_dictionary.py
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_methods.py
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_types.py
|
View
|
|
3 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/templates/dictionary_v8.cpp
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/templates/methods.cpp
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/idls/core/TestObject.idl
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/bindings/tests/idls/core/TestPermissiveDictionary.idl
|
View
|
1
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/bindings/tests/results/core/TestPermissiveDictionary.h
|
View
|
1
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
|
A + |
Source/bindings/tests/results/core/TestPermissiveDictionary.cpp
|
View
|
1
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/core/V8TestObject.cpp
|
View
|
1
|
2 chunks |
+38 lines, -0 lines |
0 comments
|
Download
|
|
A + |
Source/bindings/tests/results/core/V8TestPermissiveDictionary.h
|
View
|
1
|
1 chunk |
+11 lines, -11 lines |
0 comments
|
Download
|
|
A |
Source/bindings/tests/results/core/V8TestPermissiveDictionary.cpp
|
View
|
1
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/core.gypi
|
View
|
1
2
|
7 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Document.cpp
|
View
|
1
|
2 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/ImageBitmapTest.cpp
|
View
|
1
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLCanvasElement.h
|
View
|
1
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLCanvasElement.cpp
|
View
|
1
2
|
4 chunks |
+26 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLCanvasElement.idl
|
View
|
1
|
2 chunks |
+16 lines, -2 lines |
0 comments
|
Download
|
|
D |
Source/core/html/canvas/Canvas2DContextAttributes.h
|
View
|
|
1 chunk |
+0 lines, -65 lines |
0 comments
|
Download
|
|
D |
Source/core/html/canvas/Canvas2DContextAttributes.cpp
|
View
|
|
1 chunk |
+0 lines, -76 lines |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/Canvas2DContextAttributes.idl
|
View
|
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
|
D |
Source/core/html/canvas/CanvasContextAttributes.h
|
View
|
|
1 chunk |
+0 lines, -49 lines |
0 comments
|
Download
|
|
D |
Source/core/html/canvas/CanvasContextAttributes.cpp
|
View
|
|
1 chunk |
+0 lines, -39 lines |
0 comments
|
Download
|
|
A |
Source/core/html/canvas/CanvasContextCreationAttributes.idl
|
View
|
1
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/CanvasRenderingContext2D.h
|
View
|
1
|
5 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
View
|
1
|
2 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
|
A |
Source/core/html/canvas/ContextAttributeHelpers.h
|
View
|
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
|
A |
Source/core/html/canvas/ContextAttributeHelpers.cpp
|
View
|
1
|
1 chunk |
+57 lines, -0 lines |
0 comments
|
Download
|
|
D |
Source/core/html/canvas/WebGLContextAttributes.h
|
View
|
|
1 chunk |
+0 lines, -102 lines |
0 comments
|
Download
|
|
D |
Source/core/html/canvas/WebGLContextAttributes.cpp
|
View
|
|
1 chunk |
+0 lines, -169 lines |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/WebGLContextAttributes.idl
|
View
|
|
1 chunk |
+10 lines, -11 lines |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/WebGLRenderingContext.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/WebGLRenderingContext.cpp
|
View
|
|
6 chunks |
+7 lines, -12 lines |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/WebGLRenderingContextBase.h
|
View
|
|
5 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/WebGLRenderingContextBase.cpp
|
View
|
1
|
33 chunks |
+75 lines, -71 lines |
0 comments
|
Download
|
|
M |
Source/core/html/canvas/WebGLRenderingContextBase.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 28 (4 generated)
|