Thanks for the quick reply, both of you!

Sounds like it shouldn’t be too hard :)

But where do I define this dictionary? Now I’ve added the code to 
source/release/dom/webidl/Document.webidl, but it may be out of place here.

When I added the code as you suggested, the first issue I got was this:

/source/release/dom/base/nsDocument.h:1042:41: error: unknown type name 
'myFunctionElementInfo'; did you mean 'mozilla::dom::myFunctionElementInfo'?

So then I changed myFunctionElementInfo to mozilla::dom::myFunctionElementInfo 
in nsDocument.h and nsIDocument.h.
Then next, I got this issue:

 8:43.20 In file included from /build/dom/base/Unified_cpp_dom_base5.cpp:92:
 8:43.20 /source/release/dom/base/nsDocument.cpp:3580:12: error: no member 
named 'node' in 'mozilla::dom::myFunctionElementInfo'
 8:43.20         e->node = node;
 8:43.20         ~  ^
 8:43.20 /source/release/dom/base/nsDocument.cpp:3581:12: error: no member 
named 'number1' in 'mozilla::dom::myFunctionElementInfo'
 8:43.20         e->number1 = number1;
 8:43.20         ~  ^

Perhaps I didn’t declare the dictionary in the right place?
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to