|
IDL: Add [Custom=CallEpilogue] to eliminate CG special cases
The effect is similar to having [Custom] on a method, but instead of
completely replacing the generated method implementation, the custom
callback is just called after the regular method implementation call.
Use this to reimplement EventTarget.{add,remove}EventListener and
MediaQueryList.{add,remove}Listener's code generation special cases.
Also use this to reduce the custom code for History.{push,replace}State
to such a call epilogue. While doing so, update History.idl so that the
now generated code is behaves the same as the old custom code.
BUG= 345519
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192146
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+70 lines, -61 lines) |
Patch |
|
M |
Source/bindings/IDLExtendedAttributes.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/custom/V8EventTargetCustom.cpp
|
View
|
1
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/custom/V8HistoryCustom.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -38 lines |
0 comments
|
Download
|
|
A + |
Source/bindings/core/v8/custom/V8MediaQueryListCustom.cpp
|
View
|
1
|
1 chunk |
+10 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/bindings/core/v8/custom/custom.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_methods.py
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/templates/interface.h
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/templates/methods.cpp
|
View
|
1
|
1 chunk |
+2 lines, -10 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/idls/core/TestObject.idl
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/core/V8TestObject.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/core/V8TestObject.cpp
|
View
|
1
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/css/MediaQueryList.idl
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/events/EventTarget.idl
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/History.h
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/History.idl
|
View
|
1
2
3
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 24 (3 generated)
|