aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)Manish Goregaokar2015-11-272-14/+18
| | | | … and libc 0.2 and many other dependencies
* Defined new trait ParseErrorReporter and added error_reporter member to ↵GauriGNaik2015-11-255-7/+22
| | | | ParserContext
* Auto merge of #8671 - paulrouget:iframe-hit-test, r=pcwaltonbors-servo2015-11-261-30/+35
|\ | | | | | | | | | | | | | | | | | | Fix clip rect for iframes in hit testing code Fixes #8080 r? @mrobinson <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8671) <!-- Reviewable:end -->
| * Convert from client to page coords in scriptMatt Brubeck2015-11-251-30/+35
| |
* | Update string_cache to 0.2.Alan Jeffrey2015-11-2540-198/+202
| | | | | | | | | | | | | | | | | | | | | | Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock. Removed references to string_cache_plugin. Import atom! and ns! from string_cache. Replaced ns!("") by ns!(). Replaced ns!(XML) and co by ns!(xml) and co. Replaced atom!(foo) by atom!("foo"). Replaced Atom::from_slice by Atom::from. Replaced atom.as_slice() by &*atom.
* | Auto merge of #6826 - dzbarsky:deletecontents, r=jdmbors-servo2015-11-252-2/+77
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Implement Range#deleteContents Sadly calling ExtractContents and discarding the result doesn't do the right thing. It may be worth having a CutContents method that takes an `Option<DocumentFragment>` and switch the behavior based on it, to share the code between DeleteContents and ExtractContents, like what Gecko does. Maybe a followup. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6826) <!-- Reviewable:end -->
| * Implement Range#deleteContentsDavid Zbarsky2015-11-252-2/+77
| |
* | Auto merge of #8655 - jdm:domain, r=jdmbors-servo2015-11-242-2/+15
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement document.domain getter Rebased from #6840 + test fixes. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8655) <!-- Reviewable:end -->
| * | Implement document.domain getterTom Schuster2015-11-232-2/+15
| | |
* | | Auto merge of #8656 - servo:canvas-currentcolor, r=SimonSapinbors-servo2015-11-232-6/+36
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement currentColor for Canvas colors Fixes #7120. This is #7120 by @dzbarsky, with one tidy error fixed. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8656) <!-- Reviewable:end -->
| * | Tidy.Simon Sapin2015-11-231-1/+1
| | |
| * | Parse currentColor as Canvas2D colorDavid Zbarsky2015-11-212-6/+36
| |/
* | Remove two unused imports from components/script/dom/node.rsNick Fitzgerald2015-11-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes these two compiler warnings: ``` Compiling servo v0.0.1 (file:///Users/fitzgen/src/servo/components/servo) /Users/fitzgen/src/servo/components/script/dom/node.rs:26:65: 26:78 warning: unused import, #[warn(unused_imports)] on by default /Users/fitzgen/src/servo/components/script/dom/node.rs:26 use dom::bindings::inheritance::{Castable, CharacterDataTypeId, ElementTypeId}; ^~~~~~~~~~~~~ /Users/fitzgen/src/servo/components/script/dom/node.rs:27:53: 27:70 warning: unused import, #[warn(unused_imports)] on by default /Users/fitzgen/src/servo/components/script/dom/node.rs:27 use dom::bindings::inheritance::{EventTargetTypeId, HTMLElementTypeId, NodeTypeId}; ^~~~~~~~~~~~~~~~~ ```
* | Make the needs_reflow method actually work correctly.Eli Friedman2015-11-212-4/+15
|/ | | | | The document node is always dirty because layout never clears the bit; instead, check the dirty bit of the root element.
* Auto merge of #8622 - frewsxcv:url-plugin, r=SimonSapinbors-servo2015-11-212-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | Implement 'url!(..)' macro https://github.com/servo/rust-url/issues/136 https://github.com/servo/rust-url/pull/137 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8622) <!-- Reviewable:end -->
| * Implement 'url!(..)' macroCorey Farwell2015-11-212-2/+2
| | | | | | | | | | | | https://github.com/servo/rust-url/issues/136 https://github.com/servo/rust-url/pull/137
* | Auto merge of #8633 - rilut:remove-node-is-anchor-element, r=noxbors-servo2015-11-211-5/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove 'Node::is_anchor_element' Should fixes #8631. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8633) <!-- Reviewable:end -->
| * | Remove 'Node::is_anchor_element'Rizky Luthfianto2015-11-211-5/+0
| |/
* / Remove an unused trait.Ms2ger2015-11-201-42/+0
|/
* Auto merge of #8599 - jdm:e10s-redux, r=metajackbors-servo2015-11-201-2/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | compositing: Split Servo up into multiple sandboxed processes. Multiprocess mode is enabled with the `-M` switch, and sandboxing is enabled with the `-S` switch. Rebase of #6884. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8599) <!-- Reviewable:end -->
| * compositing: Split Servo up into multiple sandboxed processes.Patrick Walton2015-11-191-2/+8
| | | | | | | | | | Multiprocess mode is enabled with the `-M` switch, and sandboxing is enabled with the `-S` switch.
* | Auto merge of #8589 - vegayours:8360_reduce_node_unique_id_size, r=eefriedmanbors-servo2015-11-202-7/+8
|\ \ | |/ |/| | | | | | | | | | | Reduce node.unique_id size <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8589) <!-- Reviewable:end -->
| * reduce node.unique_id sizeAleksandr Likhanov2015-11-192-7/+8
| | | | | | | | | | fix sizeof unittest update Cargo.lock
* | Auto merge of #8604 - Ms2ger:unused-import, r=jdmbors-servo2015-11-191-1/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove unused import. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8604) <!-- Reviewable:end -->
| * | Remove unused import.Ms2ger2015-11-191-1/+0
| | |
* | | Rename a confusing argument.Ms2ger2015-11-191-2/+2
|/ /
* | Auto merge of #8530 - KiChjang:split-constellation-msg, r=jdmbors-servo2015-11-1912-16/+22
|\ \ | |/ |/| | | | | | | | | | | | | | | Split ConstellationMsg into ScriptMsg and CompositorMsg Fixes #8356. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8530) <!-- Reviewable:end -->
| * Split ConstellationMsg into ScriptMsg and CompositorMsgKeith Yeung2015-11-1612-16/+22
| |
* | Auto merge of #8569 - Ms2ger:fmt-script, r=metajackbors-servo2015-11-1846-808/+1388
|\ \ | | | | | | | | | | | | | | | | | | | | | Rustfmt some of script. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8569) <!-- Reviewable:end -->
| * | Rustfmt some of script.Ms2ger2015-11-1846-808/+1388
| |/
* | Auto merge of #8572 - nerith:idiomatic, r=frewsxcvbors-servo2015-11-181-4/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Make Node::is_parent_of and Stylesheet::is_effective_for_device more idiomatic Fixes #8555. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8572) <!-- Reviewable:end -->
| * | Make Node::is_parent_of more idiomaticBrandon Fairchild2015-11-171-4/+1
| |/
* / Add tracking issue for HTMLFormControlsCollectionCorey Farwell2015-11-171-0/+2
|/
* Auto merge of #8548 - Ms2ger:unused-tna, r=pcwaltonbors-servo2015-11-171-16/+5
|\ | | | | | | | | | | | | | | | | | | | | Remove the unused arguments to hit_test and mouse_over. I don't think this code is called when there is no document element, but I added assertions to make sure we notice in case I was wrong. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8548) <!-- Reviewable:end -->
| * Remove the unused arguments to hit_test and mouse_over.Ms2ger2015-11-161-16/+5
| | | | | | | | | | I don't think this code is called when there is no document element, but I added assertions to make sure we notice in case I was wrong.
* | Auto merge of #8538 - notriddle:github_resize, r=mbrubeckbors-servo2015-11-171-0/+3
|\ \ | |/ |/| | | | | | | | | | | | | | | Ignore `<meta name=viewport>` if `@viewport` is ignored Fixes #8373 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8538) <!-- Reviewable:end -->
| * Ignore `<meta name=viewport>` if `@viewport` is.Michael Howell2015-11-151-0/+3
| | | | | | | | Fixes #8373
* | Auto merge of #8533 - Ms2ger:legacy, r=noxbors-servo2015-11-151-16/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove the `legacy` module. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8533) <!-- Reviewable:end -->
| * | Move the from_declaration to its only caller and remove the empty legacy module.Ms2ger2015-11-151-1/+6
| | |
| * | Remove get_unsigned_integer_attribute.Ms2ger2015-11-151-21/+1
| | |
| * | Introduce a get_colspan method on LayoutJS<Element>.Ms2ger2015-11-151-0/+13
| |/
* | Auto merge of #8527 - romankl:atom-slices, r=Ms2gerbors-servo2015-11-151-4/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace Atom::from_slice("sizes") with atom!("sizes") This PR replaces all occurrences of Atom::from_slice("sizes") with atom!("sizes"). It also updates string_cache to v0.1.17 from 0.1.16. Right now I've split the crate update and the replace in different commits - should I squash them? Fixes #8488. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8527) <!-- Reviewable:end -->
| * | replace Atom::from_slice("sizes") with atom!(sizes")Roman Klauke2015-11-141-4/+3
| |/ | | | | | | Closes: #8488
* | Auto merge of #8526 - frewsxcv:parse-length, r=eefriedmanbors-servo2015-11-153-2/+24
|\ \ | |/ |/| | | | | | | | | | | | | | | Fix parse_length 0 values, implement <hr> 'width' Follow-up to https://github.com/servo/servo/issues/8424 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8526) <!-- Reviewable:end -->
| * Implement <hr> element 'width' attributeCorey Farwell2015-11-143-2/+24
| |
* | Auto merge of #8449 - paulrouget:favicon, r=jdmbors-servo2015-11-143-12/+72
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | mozbrowsericonchange event (Browser API) fixes #8347 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8449) <!-- Reviewable:end -->
| * | [Browser API] implement mozbrowsericonchange eventPaul Rouget2015-11-143-12/+72
| |/
* / Add DOM-related performance timing propertiesGreg Guthe2015-11-133-7/+89
|/
* Auto merge of #8505 - ↵bors-servo2015-11-132-1/+7
|\ | | | | | | | | | | | | | | | | | | frewsxcv:html-table-cell-element-bgcolor-idl-attribute, r=Ms2ger Implement 'bgcolor' IDL attribute for 'HTMLTableCellElement' <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8505) <!-- Reviewable:end -->
| * Implement 'bgcolor' IDL attribute for 'HTMLTableCellElement'Corey Farwell2015-11-132-1/+7
| |