aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmldocument.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove HTMLDocument.Ms2ger2014-02-241-51/+0
|
* Move HTMLDocument members to Document.Ms2ger2014-02-241-42/+0
|
* Implement JSManaged for DOM objects.Josh Matthews2014-02-241-21/+28
|
* Use eq() and eq_slice() less, and map_default() more.Ms2ger2014-02-161-11/+12
|
* Implement document.URL & document.documentURIBruno de Oliveira Abinader2014-01-301-4/+5
| | | | | | | | Specs: http://dom.spec.whatwg.org/#dom-document-url http://dom.spec.whatwg.org/#dom-document-documenturi This is a sub-task for #1428.
* Move script::dom::namespace into util, in order to use it from style later.Simon Sapin2014-01-251-1/+1
|
* auto merge of #1533 : metajack/servo/unsafe-get-attr, r=jdmbors-servo2014-01-221-3/+2
|\ | | | | | | | | | | | | | | The old code was used by both layout and script, but was erroneously borrowing for the layout case (which causes parallelism problems). script now uses only `value_ref()` or `get_attribute()`, and layout now has its own unsafe version that dances around the borrows of `@mut Attr`.
| * Change `get_attr()` to `get_attr_val_for_layout()`.Jack Moffitt2014-01-221-3/+2
| | | | | | | | | | | | | | | | The old code was used by both layout and script, but was erroneously borrowing for the layout case (which causes parallelism problems). script now uses only `value_ref()` or `get_attribute()`, and layout now has its own unsafe version that dances around the borrows of `@mut Attr`.
* | Basic support for Document::contentTypeBruno de Oliveira Abinader2014-01-211-1/+1
|/ | | | | | | Spec: http://dom.spec.whatwg.org/#dom-document-contenttype This is a subtask for #1428, #1510 and #1526.
* Remove unused imports.Ms2ger2014-01-131-2/+0
|
* Fix to avoid attribute name clash between Document/HTMLDocumentBruno de Oliveira Abinader2014-01-081-8/+0
| | | | | | | Use children() instead of traverse_preorder(), and avoid having GetHead() in both Document and HTMLDocument. Closes #1465.
* Implement Document::head()Bruno de Oliveira Abinader2014-01-071-4/+3
| | | | | | | | Implementation details according to the specification below: http://www.whatwg.org/specs/web-apps/current-work/#dom-document-head This patch is for: https://github.com/mozilla/servo/issues/1465
* Pass a Namespace to Element::get_attr.Ms2ger2013-12-231-2/+3
|
* script: Eliminate the phantom type in favor of just whitelisting methodsPatrick Walton2013-12-171-2/+2
| | | | | | | that layout can safely call. This is simpler. Currently, the set of methods is not safe, but I plan to lock it down more soon.
* script: Make trees less genericPatrick Walton2013-12-171-3/+1
|
* Fix #1264: support namespaced attribute selectors.Simon Sapin2013-12-101-2/+2
|
* Remove Reflectable::GetParentObject.Ms2ger2013-11-061-5/+1
|
* Remove Reflectable::wrap_object_shared.Ms2ger2013-11-061-5/+1
|
* Rewrite Document creation and reflection.Ms2ger2013-11-051-18/+10
|
* Make Document a Node.Josh Matthews2013-10-311-0/+4
|
* Revert "Make Document a Node." for breaking Acid1Patrick Walton2013-10-241-5/+0
| | | | | | | | This reverts commit 4e47d59165d186d0938fe9ffd726b2c1b83d50f4. Conflicts: src/components/script/dom/domparser.rs
* Make Document a Node.Josh Matthews2013-10-241-0/+5
|
* Remove no-op implementations from Document and HTMLDocument.Ms2ger2013-10-211-101/+1
|
* Merge BindingObject and Reflectable.Ms2ger2013-10-181-3/+1
|
* Remove unused aTriedToWrap argument.Ms2ger2013-10-171-2/+1
|
* Move Element::get_attr to a trait defined in util::treeSimon Sapin2013-10-161-1/+1
| | | | … and add a get_local_name() method to that trait.
* Issue #1071 - Ensure that Documents always have a non-null Window.Ms2ger2013-10-161-2/+2
|
* auto merge of #1051 : Ms2ger/servo/private-root, r=jdmbors-servo2013-10-141-11/+4
|\ | | | | | | In preparation for removing it as part of making Document a Node.
| * Make Document::root private, in preparation for removing it as part of ↵Ms2ger2013-10-131-11/+4
| | | | | | | | making Document a Node.
* | Implement Window::get_cx() to reduce code repetition.Ms2ger2013-10-131-2/+1
|/
* implement NodeList and consolidate common scope and context retrievalTim Taubert2013-10-111-7/+0
|
* Introduce mutable/immutable variants of reflector() with named lifetimes, ↵Bobby Holley2013-10-101-1/+5
| | | | and kill unsafe casts.
* Rename some local variables and shorten some lines.Bobby Holley2013-10-091-2/+1
| | | | This was done manually, and might benefit from a more careful review.
* Rename WrappableDocument stuff.Bobby Holley2013-10-091-3/+3
|
* Rename {get,set}_wrapper to {get,set}_jsobject. v1Bobby Holley2013-10-091-1/+1
|
* Rename get_wrappercache() to reflector(). v1Bobby Holley2013-10-091-3/+3
| | | | I also updated some variable names in the codegen.
* Rename WrapperCache to Reflector.Bobby Holley2013-10-091-2/+2
| | | | | I think the abstraction from the raw JSObject is still probably worthwhile for now.
* Rename CacheableWrapper to Reflectable.Bobby Holley2013-10-091-3/+3
|
* Don't require passing a root element to Document::new (needed for issue #888).Ms2ger2013-10-051-10/+15
|
* Make proxy bindings generate trace and finalization hooks.Josh Matthews2013-09-301-2/+7
|
* bindings: Return errors in Result rather than setting an out parameterKeegan McAllister2013-09-181-23/+27
| | | | Fixes #909.
* Make DOMString an alias for Option<~str>Keegan McAllister2013-09-181-10/+10
| | | | Fixes #898.
* Make Window store an @Page instead of a *Page and remove a bunch of unsafe code.Josh Matthews2013-09-121-2/+2
|
* Update Rust version againKeegan McAllister2013-08-151-1/+1
| | | | This gets us the new runtime.
* For loops and misc changesKeegan McAllister2013-08-151-1/+1
|
* Reorganize tree ref / node traitsKeegan McAllister2013-08-151-1/+1
| | | | | | rustc is no longer happy with impl<NR:TreeNodeRef<N>,N:TreeNode<NR>> TreeUtils for NR
* Simplify HTMLCollection predicatesYoungsoo Son2013-08-091-23/+8
|
* Add a getter of 'document.head' according to HTML spec.Junyoung Cho2013-08-081-3/+10
| | | | | Add a getter and a setter of 'document.title' according to HTML spec. Modify the test file.
* Fill out various proxy binding traps as part of making setters work. Add ↵Josh Matthews2013-08-031-0/+4
| | | | named getter and setter and indexed getter support, as well as proxy object expandos. Fixes #660.
* Simplify HTMLCollection predicatesKeegan McAllister2013-08-021-18/+5
|