aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/documentfragment.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-04-18 14:46:01 +0200
committerMs2ger <ms2ger@gmail.com>2014-04-18 17:12:20 +0200
commit88c5e733b574b9bf2854efe13f2ce51024e78374 (patch)
treed49a5a5316aa2a4f6c67fc16372f4415010af3c3 /src/components/script/dom/documentfragment.rs
parent8e596d142ef246eca7321cc9fff64d172e797ae9 (diff)
downloadservo-88c5e733b574b9bf2854efe13f2ce51024e78374.tar.gz
servo-88c5e733b574b9bf2854efe13f2ce51024e78374.zip
Merge the 'new' and 'Init' functions for dictionaries.
This moves the code in callers more in line with conversions for other types and ensures the default values given to the dictionary fields (as defined by the defaultValue function in CGDictionary.impl) do not escape the 'new' method. The new code is also more in line with the code used by the FromJSValConvertible trait. This is the first step of my planned rewrite of the dictionary initialization that will remove the default values entirely and reduce the code duplication in the 'Init' (now 'new') function.
Diffstat (limited to 'src/components/script/dom/documentfragment.rs')
0 files changed, 0 insertions, 0 deletions