|
IDL: Add PropertyBag class
This CL adds PropertyBag class, which is similar to Dictionary{,Helper},
but has some differences.
Before this patch, we used DictionaryHelper to get native values from
a V8 object in IDL dictionary's toNative(). However,
DictionaryHelper::get() returns true when a dictionary member is
specified as undefined. Since we want to treat undefined members as
'not specified', we can't use DictionaryHelper to retrive native values.
PropertyBag's get() method returns false when a member is undefined
or null.
BUG= 321462
Total comments: 16
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+468 lines, -75 lines) |
Patch |
 |
M |
LayoutTests/fast/dom/idl-dictionary-unittest.html
|
View
|
1
|
1 chunk |
+58 lines, -23 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt
|
View
|
1
|
1 chunk |
+37 lines, -10 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/core/v8/PropertyBag.h
|
View
|
1
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/core/v8/PropertyBag.cpp
|
View
|
1
|
1 chunk |
+44 lines, -0 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 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/v8_interface.py
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/dictionary_v8.cpp
|
View
|
1
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/interface.h
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8SVGTestInterface.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestDictionary.cpp
|
View
|
1
|
2 chunks |
+18 lines, -17 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestException.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterface.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterface2.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterface3.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceCheckSecurity.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceConstructor.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceConstructor2.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceConstructor3.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceConstructor4.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceCustomConstructor.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceDocument.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceEmpty.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceEventConstructor.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceEventTarget.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceGarbageCollected.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceNamedConstructor.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceNode.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceNotScriptWrappable.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestNode.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestObject.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestSpecialOperations.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestSpecialOperationsNotEnumerable.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestTypedefs.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/DictionaryTest.h
|
View
|
1
2
|
2 chunks |
+15 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/DictionaryTest.cpp
|
View
|
1
2
|
2 chunks |
+44 lines, -11 lines |
0 comments
|
Download
|
 |
M |
Source/core/testing/InternalDictionary.idl
|
View
|
1
|
1 chunk |
+10 lines, -3 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|