aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/dom/bindings/codegen
Commit message (Collapse)AuthorAgeFilesLines
* Separate the DOM and layout into separate crates.Patrick Walton2013-05-28107-27763/+0
|
* Introduce a phantom type to prevent script from accessing the layout data ↵Patrick Walton2013-05-282-1/+2
| | | | | | | | | | | | | | | | | directly. Nodes are now parameterized over a "View" type. The particular View type determines which methods can be called. Layout data accessors and mutators are only accessible to nodes with a LayoutView. The only way to convert a `Node<ScriptView>` to a `Node<LayoutView>` is through a transmutation, which is done at the moment the layout task receives nodes. (This should be factored better to contain the unsafety.) We should also lock down DOM node mutation to the ScriptView to forbid data races, but this patch doesn't do that. This also reduces coupling between DOM and layout. Soon I would like to move the DOM into its own crate, and this is a step on the way of doing that.
* Remove the `servo-` prefix from core components.Patrick Walton2013-05-28107-0/+27762