mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
auto merge of #4797 : Ms2ger/servo/mods, r=saneyuki
This gives us a better place to put DOM documentation, which I'd like to start adding.
This commit is contained in:
commit
ccdf0bd65e
3 changed files with 184 additions and 175 deletions
34
components/script/dom/bindings/mod.rs
Normal file
34
components/script/dom/bindings/mod.rs
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
//! The code to expose the DOM to JavaScript through IDL bindings.
|
||||||
|
|
||||||
|
#![allow(unsafe_blocks)]
|
||||||
|
#![deny(missing_docs, non_snake_case)]
|
||||||
|
|
||||||
|
pub mod cell;
|
||||||
|
pub mod global;
|
||||||
|
pub mod js;
|
||||||
|
pub mod refcounted;
|
||||||
|
pub mod utils;
|
||||||
|
pub mod callback;
|
||||||
|
pub mod error;
|
||||||
|
pub mod conversions;
|
||||||
|
pub mod proxyhandler;
|
||||||
|
pub mod str;
|
||||||
|
pub mod structuredclone;
|
||||||
|
pub mod trace;
|
||||||
|
|
||||||
|
/// Generated JS-Rust bindings.
|
||||||
|
#[allow(missing_docs, non_snake_case)]
|
||||||
|
pub mod codegen {
|
||||||
|
#[allow(unrooted_must_root)]
|
||||||
|
pub mod Bindings;
|
||||||
|
pub mod InterfaceTypes;
|
||||||
|
pub mod InheritTypes;
|
||||||
|
pub mod PrototypeList;
|
||||||
|
pub mod RegisterBindings;
|
||||||
|
pub mod UnionTypes;
|
||||||
|
}
|
||||||
|
|
149
components/script/dom/mod.rs
Normal file
149
components/script/dom/mod.rs
Normal file
|
@ -0,0 +1,149 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
//! The implementation of the DOM.
|
||||||
|
|
||||||
|
#[macro_use]
|
||||||
|
pub mod macros;
|
||||||
|
|
||||||
|
pub mod bindings;
|
||||||
|
|
||||||
|
#[path="bindings/codegen/InterfaceTypes.rs"]
|
||||||
|
pub mod types;
|
||||||
|
|
||||||
|
pub mod activation;
|
||||||
|
pub mod attr;
|
||||||
|
pub mod blob;
|
||||||
|
pub mod browsercontext;
|
||||||
|
pub mod canvasrenderingcontext2d;
|
||||||
|
pub mod characterdata;
|
||||||
|
pub mod cssstyledeclaration;
|
||||||
|
pub mod domrect;
|
||||||
|
pub mod domrectlist;
|
||||||
|
pub mod domstringmap;
|
||||||
|
pub mod comment;
|
||||||
|
pub mod console;
|
||||||
|
mod create;
|
||||||
|
pub mod customevent;
|
||||||
|
pub mod dedicatedworkerglobalscope;
|
||||||
|
pub mod document;
|
||||||
|
pub mod documentfragment;
|
||||||
|
pub mod documenttype;
|
||||||
|
pub mod domexception;
|
||||||
|
pub mod domimplementation;
|
||||||
|
pub mod domparser;
|
||||||
|
pub mod domtokenlist;
|
||||||
|
pub mod element;
|
||||||
|
pub mod errorevent;
|
||||||
|
pub mod event;
|
||||||
|
pub mod eventdispatcher;
|
||||||
|
pub mod eventtarget;
|
||||||
|
pub mod file;
|
||||||
|
pub mod formdata;
|
||||||
|
pub mod htmlanchorelement;
|
||||||
|
pub mod htmlappletelement;
|
||||||
|
pub mod htmlareaelement;
|
||||||
|
pub mod htmlaudioelement;
|
||||||
|
pub mod htmlbaseelement;
|
||||||
|
pub mod htmlbodyelement;
|
||||||
|
pub mod htmlbrelement;
|
||||||
|
pub mod htmlbuttonelement;
|
||||||
|
pub mod htmlcanvaselement;
|
||||||
|
pub mod htmlcollection;
|
||||||
|
pub mod htmldataelement;
|
||||||
|
pub mod htmldatalistelement;
|
||||||
|
pub mod htmldirectoryelement;
|
||||||
|
pub mod htmldivelement;
|
||||||
|
pub mod htmldlistelement;
|
||||||
|
pub mod htmlelement;
|
||||||
|
pub mod htmlembedelement;
|
||||||
|
pub mod htmlfieldsetelement;
|
||||||
|
pub mod htmlfontelement;
|
||||||
|
pub mod htmlformelement;
|
||||||
|
pub mod htmlframeelement;
|
||||||
|
pub mod htmlframesetelement;
|
||||||
|
pub mod htmlheadelement;
|
||||||
|
pub mod htmlheadingelement;
|
||||||
|
pub mod htmlhrelement;
|
||||||
|
pub mod htmlhtmlelement;
|
||||||
|
pub mod htmliframeelement;
|
||||||
|
pub mod htmlimageelement;
|
||||||
|
pub mod htmlinputelement;
|
||||||
|
pub mod htmllabelelement;
|
||||||
|
pub mod htmllegendelement;
|
||||||
|
pub mod htmllielement;
|
||||||
|
pub mod htmllinkelement;
|
||||||
|
pub mod htmlmapelement;
|
||||||
|
pub mod htmlmediaelement;
|
||||||
|
pub mod htmlmetaelement;
|
||||||
|
pub mod htmlmeterelement;
|
||||||
|
pub mod htmlmodelement;
|
||||||
|
pub mod htmlobjectelement;
|
||||||
|
pub mod htmlolistelement;
|
||||||
|
pub mod htmloptgroupelement;
|
||||||
|
pub mod htmloptionelement;
|
||||||
|
pub mod htmloutputelement;
|
||||||
|
pub mod htmlparagraphelement;
|
||||||
|
pub mod htmlparamelement;
|
||||||
|
pub mod htmlpreelement;
|
||||||
|
pub mod htmlprogresselement;
|
||||||
|
pub mod htmlquoteelement;
|
||||||
|
pub mod htmlscriptelement;
|
||||||
|
pub mod htmlselectelement;
|
||||||
|
pub mod htmlserializer;
|
||||||
|
pub mod htmlspanelement;
|
||||||
|
pub mod htmlsourceelement;
|
||||||
|
pub mod htmlstyleelement;
|
||||||
|
pub mod htmltableelement;
|
||||||
|
pub mod htmltablecaptionelement;
|
||||||
|
pub mod htmltablecellelement;
|
||||||
|
pub mod htmltabledatacellelement;
|
||||||
|
pub mod htmltableheadercellelement;
|
||||||
|
pub mod htmltablecolelement;
|
||||||
|
pub mod htmltablerowelement;
|
||||||
|
pub mod htmltablesectionelement;
|
||||||
|
pub mod htmltemplateelement;
|
||||||
|
pub mod htmltextareaelement;
|
||||||
|
pub mod htmltimeelement;
|
||||||
|
pub mod htmltitleelement;
|
||||||
|
pub mod htmltrackelement;
|
||||||
|
pub mod htmlulistelement;
|
||||||
|
pub mod htmlvideoelement;
|
||||||
|
pub mod htmlunknownelement;
|
||||||
|
pub mod keyboardevent;
|
||||||
|
pub mod location;
|
||||||
|
pub mod messageevent;
|
||||||
|
pub mod mouseevent;
|
||||||
|
pub mod namednodemap;
|
||||||
|
pub mod navigator;
|
||||||
|
pub mod navigatorinfo;
|
||||||
|
pub mod node;
|
||||||
|
pub mod nodeiterator;
|
||||||
|
pub mod nodelist;
|
||||||
|
pub mod processinginstruction;
|
||||||
|
pub mod performance;
|
||||||
|
pub mod performancetiming;
|
||||||
|
pub mod progressevent;
|
||||||
|
pub mod range;
|
||||||
|
pub mod screen;
|
||||||
|
pub mod servohtmlparser;
|
||||||
|
pub mod storage;
|
||||||
|
pub mod text;
|
||||||
|
pub mod treewalker;
|
||||||
|
pub mod uievent;
|
||||||
|
pub mod urlhelper;
|
||||||
|
pub mod urlsearchparams;
|
||||||
|
pub mod validitystate;
|
||||||
|
pub mod virtualmethods;
|
||||||
|
pub mod websocket;
|
||||||
|
pub mod window;
|
||||||
|
pub mod worker;
|
||||||
|
pub mod workerglobalscope;
|
||||||
|
pub mod workerlocation;
|
||||||
|
pub mod workernavigator;
|
||||||
|
pub mod xmlhttprequest;
|
||||||
|
pub mod xmlhttprequesteventtarget;
|
||||||
|
pub mod xmlhttprequestupload;
|
||||||
|
|
||||||
|
pub mod testbinding;
|
|
@ -47,182 +47,8 @@ extern crate string_cache_macros;
|
||||||
|
|
||||||
pub mod cors;
|
pub mod cors;
|
||||||
|
|
||||||
/// The implementation of the DOM.
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub mod dom {
|
pub mod dom;
|
||||||
#[macro_use]
|
|
||||||
pub mod macros;
|
|
||||||
|
|
||||||
/// The code to expose the DOM to JavaScript through IDL bindings.
|
|
||||||
#[allow(unsafe_blocks)]
|
|
||||||
#[deny(missing_docs, non_snake_case)]
|
|
||||||
pub mod bindings {
|
|
||||||
pub mod cell;
|
|
||||||
pub mod global;
|
|
||||||
pub mod js;
|
|
||||||
pub mod refcounted;
|
|
||||||
pub mod utils;
|
|
||||||
pub mod callback;
|
|
||||||
pub mod error;
|
|
||||||
pub mod conversions;
|
|
||||||
pub mod proxyhandler;
|
|
||||||
pub mod str;
|
|
||||||
pub mod structuredclone;
|
|
||||||
pub mod trace;
|
|
||||||
|
|
||||||
/// Generated JS-Rust bindings.
|
|
||||||
#[allow(missing_docs, non_snake_case)]
|
|
||||||
pub mod codegen {
|
|
||||||
#[allow(unrooted_must_root)]
|
|
||||||
pub mod Bindings;
|
|
||||||
pub mod InterfaceTypes;
|
|
||||||
pub mod InheritTypes;
|
|
||||||
pub mod PrototypeList;
|
|
||||||
pub mod RegisterBindings;
|
|
||||||
pub mod UnionTypes;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[path="bindings/codegen/InterfaceTypes.rs"]
|
|
||||||
pub mod types;
|
|
||||||
|
|
||||||
pub mod activation;
|
|
||||||
pub mod attr;
|
|
||||||
pub mod blob;
|
|
||||||
pub mod browsercontext;
|
|
||||||
pub mod canvasrenderingcontext2d;
|
|
||||||
pub mod characterdata;
|
|
||||||
pub mod cssstyledeclaration;
|
|
||||||
pub mod domrect;
|
|
||||||
pub mod domrectlist;
|
|
||||||
pub mod domstringmap;
|
|
||||||
pub mod comment;
|
|
||||||
pub mod console;
|
|
||||||
mod create;
|
|
||||||
pub mod customevent;
|
|
||||||
pub mod dedicatedworkerglobalscope;
|
|
||||||
pub mod document;
|
|
||||||
pub mod documentfragment;
|
|
||||||
pub mod documenttype;
|
|
||||||
pub mod domexception;
|
|
||||||
pub mod domimplementation;
|
|
||||||
pub mod domparser;
|
|
||||||
pub mod domtokenlist;
|
|
||||||
pub mod element;
|
|
||||||
pub mod errorevent;
|
|
||||||
pub mod event;
|
|
||||||
pub mod eventdispatcher;
|
|
||||||
pub mod eventtarget;
|
|
||||||
pub mod file;
|
|
||||||
pub mod formdata;
|
|
||||||
pub mod htmlanchorelement;
|
|
||||||
pub mod htmlappletelement;
|
|
||||||
pub mod htmlareaelement;
|
|
||||||
pub mod htmlaudioelement;
|
|
||||||
pub mod htmlbaseelement;
|
|
||||||
pub mod htmlbodyelement;
|
|
||||||
pub mod htmlbrelement;
|
|
||||||
pub mod htmlbuttonelement;
|
|
||||||
pub mod htmlcanvaselement;
|
|
||||||
pub mod htmlcollection;
|
|
||||||
pub mod htmldataelement;
|
|
||||||
pub mod htmldatalistelement;
|
|
||||||
pub mod htmldirectoryelement;
|
|
||||||
pub mod htmldivelement;
|
|
||||||
pub mod htmldlistelement;
|
|
||||||
pub mod htmlelement;
|
|
||||||
pub mod htmlembedelement;
|
|
||||||
pub mod htmlfieldsetelement;
|
|
||||||
pub mod htmlfontelement;
|
|
||||||
pub mod htmlformelement;
|
|
||||||
pub mod htmlframeelement;
|
|
||||||
pub mod htmlframesetelement;
|
|
||||||
pub mod htmlheadelement;
|
|
||||||
pub mod htmlheadingelement;
|
|
||||||
pub mod htmlhrelement;
|
|
||||||
pub mod htmlhtmlelement;
|
|
||||||
pub mod htmliframeelement;
|
|
||||||
pub mod htmlimageelement;
|
|
||||||
pub mod htmlinputelement;
|
|
||||||
pub mod htmllabelelement;
|
|
||||||
pub mod htmllegendelement;
|
|
||||||
pub mod htmllielement;
|
|
||||||
pub mod htmllinkelement;
|
|
||||||
pub mod htmlmapelement;
|
|
||||||
pub mod htmlmediaelement;
|
|
||||||
pub mod htmlmetaelement;
|
|
||||||
pub mod htmlmeterelement;
|
|
||||||
pub mod htmlmodelement;
|
|
||||||
pub mod htmlobjectelement;
|
|
||||||
pub mod htmlolistelement;
|
|
||||||
pub mod htmloptgroupelement;
|
|
||||||
pub mod htmloptionelement;
|
|
||||||
pub mod htmloutputelement;
|
|
||||||
pub mod htmlparagraphelement;
|
|
||||||
pub mod htmlparamelement;
|
|
||||||
pub mod htmlpreelement;
|
|
||||||
pub mod htmlprogresselement;
|
|
||||||
pub mod htmlquoteelement;
|
|
||||||
pub mod htmlscriptelement;
|
|
||||||
pub mod htmlselectelement;
|
|
||||||
pub mod htmlserializer;
|
|
||||||
pub mod htmlspanelement;
|
|
||||||
pub mod htmlsourceelement;
|
|
||||||
pub mod htmlstyleelement;
|
|
||||||
pub mod htmltableelement;
|
|
||||||
pub mod htmltablecaptionelement;
|
|
||||||
pub mod htmltablecellelement;
|
|
||||||
pub mod htmltabledatacellelement;
|
|
||||||
pub mod htmltableheadercellelement;
|
|
||||||
pub mod htmltablecolelement;
|
|
||||||
pub mod htmltablerowelement;
|
|
||||||
pub mod htmltablesectionelement;
|
|
||||||
pub mod htmltemplateelement;
|
|
||||||
pub mod htmltextareaelement;
|
|
||||||
pub mod htmltimeelement;
|
|
||||||
pub mod htmltitleelement;
|
|
||||||
pub mod htmltrackelement;
|
|
||||||
pub mod htmlulistelement;
|
|
||||||
pub mod htmlvideoelement;
|
|
||||||
pub mod htmlunknownelement;
|
|
||||||
pub mod keyboardevent;
|
|
||||||
pub mod location;
|
|
||||||
pub mod messageevent;
|
|
||||||
pub mod mouseevent;
|
|
||||||
pub mod namednodemap;
|
|
||||||
pub mod navigator;
|
|
||||||
pub mod navigatorinfo;
|
|
||||||
pub mod node;
|
|
||||||
pub mod nodeiterator;
|
|
||||||
pub mod nodelist;
|
|
||||||
pub mod processinginstruction;
|
|
||||||
pub mod performance;
|
|
||||||
pub mod performancetiming;
|
|
||||||
pub mod progressevent;
|
|
||||||
pub mod range;
|
|
||||||
pub mod screen;
|
|
||||||
pub mod servohtmlparser;
|
|
||||||
pub mod storage;
|
|
||||||
pub mod text;
|
|
||||||
pub mod treewalker;
|
|
||||||
pub mod uievent;
|
|
||||||
pub mod urlhelper;
|
|
||||||
pub mod urlsearchparams;
|
|
||||||
pub mod validitystate;
|
|
||||||
pub mod virtualmethods;
|
|
||||||
pub mod websocket;
|
|
||||||
pub mod window;
|
|
||||||
pub mod worker;
|
|
||||||
pub mod workerglobalscope;
|
|
||||||
pub mod workerlocation;
|
|
||||||
pub mod workernavigator;
|
|
||||||
pub mod xmlhttprequest;
|
|
||||||
pub mod xmlhttprequesteventtarget;
|
|
||||||
pub mod xmlhttprequestupload;
|
|
||||||
|
|
||||||
pub mod testbinding;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub mod parse;
|
pub mod parse;
|
||||||
|
|
||||||
pub mod layout_interface;
|
pub mod layout_interface;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue