aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-181-4/+4
|
* Reorder `use` statementsUK9922016-09-091-3/+3
|
* style: Provide whether we're styling or not to rust-selectors.Emilio Cobos Álvarez2016-08-311-3/+3
| | | | This makes us not adding the flags to everything in servo.
* Move thread_state to style.Ms2ger2016-08-221-1/+1
|
* Use impl Trait syntax for Node::child_elementsAnthony Ramine2016-08-131-9/+5
|
* style: Remove a few more unuseful traversals now we can.Emilio Cobos Álvarez2016-07-271-11/+25
|
* style: Avoid propagating the restyle flag all through the dom when a node ↵Emilio Cobos Álvarez2016-07-251-13/+1
| | | | | | gets dirty. This puts us in pair with stylo.
* Only restyle viewport-relative nodes on viewport size changeShing Lyu2016-07-181-1/+3
|
* script: Obtain referrer policy from headerAravind Gollakota2016-07-151-1/+2
|
* Implement Document.referrerNazım Can Altınova2016-07-141-1/+1
|
* Auto merge of #11872 - eddyb:back-to-roots, r=Ms2gerbors-servo2016-07-041-5/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace return_address usage for rooting with stack guards and convenience macros. The existing `Rooted` and `RootedVec` users were migrated the the following two macros: ```rust let x = Rooted::new(cx, value); // Was changed to: rooted!(in(cx) let x = value); // Which expands to: let mut __root = Rooted::new_unrooted(value); let x = RootedGuard::new(cx, &mut __root); ``` ```rust let mut v = RootedVec::new(); v.extend(iterator); // Was changed to: rooted_vec!(let v <- iterator); // Which expands to: let mut __root = RootableVec::new(); let v = RootedVec::new(&mut __root, iterator); ``` The `rooted!` macro depends on servo/rust-mozjs#272. These APIs based on two types, a container to be rooted and a rooting guard, allow implementing both `Rooted`-style rooting and `Traceable`-based rooting in stable Rust, without abusing `return_address`. Such macros may have been tried before, but in 1.9 their hygiene is broken, they work only since 1.10. Sadly, `Rooted` is a FFI type and completely exposed, so I cannot prevent anyone from creating their own, although all fields but the value get overwritten by `RootedGuard::new` anyway. `RootableVec` OTOH is *guaranteed* to be empty when not rooted, which makes it harmless AFAICT. By fixing rust-lang/rust#34227, this PR enables Servo to build with `-Zorbit`. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix rust-lang/rust#34227 - [x] These changes do not require tests because they are not functional changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11872) <!-- Reviewable:end -->
| * Use a stack guard and a macro for RootedVec instead of return_address.Eduard Burtescu2016-07-041-5/+4
| |
* | Skip the root node in querySelectorAllAnthony Ramine2016-07-041-1/+4
|/ | | | This accounts for https://github.com/whatwg/dom/issues/263.
* Avoid an unnecessary panic when the script task deals with a GC after the ↵Josh Matthews2016-06-221-1/+3
| | | | layout thread is unreachable.
* Move the remainder of layout_interface into script_layout_interface.Ms2ger2016-06-201-1/+1
|
* Move TrustedNodeAddress to script_layout_interface.Ms2ger2016-06-201-12/+1
|
* Introduce LayoutJS<Node>::opaque() to replace ↵Ms2ger2016-06-201-0/+9
| | | | OpaqueNodeMethods::from_jsmanaged().
* Move HTMLCanvasData to script_layout_interface.Ms2ger2016-06-201-2/+2
|
* Introduce LayoutNodeType and LayoutElementType enums.Ms2ger2016-06-201-2/+56
|
* Move OpaqueStyleAndLayoutData to script_layout_interface.Ms2ger2016-06-201-13/+1
|
* Make OpaqueStyleAndLayoutData::dispose a method on Node.Ms2ger2016-06-201-10/+8
|
* script: When using WebRender, keep the DOM-side scroll positions forPatrick Walton2016-06-101-1/+5
| | | | | | | elements with `overflow: scroll` up to date, and take them into account when doing hit testing. Closes #11648.
* Update Rust to 1.11.0-nightly (ec872dc8a 2016-06-07)Anthony Ramine2016-06-081-3/+3
|
* Move the definition of ServoThreadSafeLayoutNode::iframe_pipeline_id to script.Ms2ger2016-06-071-0/+9
|
* Move the definition of ServoThreadSafeLayoutNode::canvas_data to script.Ms2ger2016-06-071-0/+7
|
* Move the definition of ServoThreadSafeLayoutNode::image_url to script.Ms2ger2016-06-071-0/+12
|
* Move the definition of ServoThreadSafeLayoutNode::selection to script.Ms2ger2016-06-071-0/+15
|
* Remove JS::from_rootedAnthony Ramine2016-05-311-3/+3
|
* use USVStrings instead of DOMString for urls in Node and DocumentThiago Pontes2016-05-281-4/+5
|
* Auto merge of #11472 - jdm:wip, r=mbrubeckbors-servo2016-05-271-2/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Report blank lines that follow an open brace This automates something that I find myself frequently commenting on in PRs. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] There are tests for these changes OR <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11472) <!-- Reviewable:end -->
| * Remove empty lines following braces.Josh Matthews2016-05-271-2/+0
| |
* | Remove the LayoutChan type.Ms2ger2016-05-271-3/+2
|/ | | | It is a pointless abstraction.
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Removed unused importsPer Lundberg2016-05-151-2/+0
| | | | This fixes #11185.
* Make Node::BaseURI use the document's base URLmrmiywj2016-05-141-1/+1
| | | | update expectations
* Move some code from ServoThreadSafeLayoutNode::text_content into script.Ms2ger2016-05-091-1/+22
|
* Upgrade to bitflags 0.6.0 and selectors 0.5.6Matt Brubeck2016-04-301-1/+1
| | | | | Types generated by `bitflags!` are now private by default. This PR marks them `pub` where necessary.
* Reduce channel cloning.Ms2ger2016-04-291-1/+1
|
* Implements Node::isSameNodeArnaud Marant2016-04-231-0/+8
| | | | | | Fixes #10746 Adapted the tests from dom/nodes/Node-isEqualNode.html
* Implement Node::rootNodeLéo Stefanesco2016-04-221-0/+5
|
* Implement ScrollTop and ScrollLeft getters:Zhen Zhang2016-04-191-0/+6
| | | | | | | | Add new compositor message to get scroll_offset; Add new layout query for computed value of overflow-x/y; Implement layer_id method for ThreadSafeLayoutNode; Add new layout query for layer_id; Implement script interface for getting scrollTop and scrollLeft, as well as relavant helper functions.
* Extract out 'is the html body element' CSSOM concept.Corey Farwell2016-04-111-6/+2
|
* Simplify PrecedingNodeIterator::next().Ms2ger2016-04-111-25/+11
|
* Update uuid.Ms2ger2016-04-071-1/+1
|
* Remove `get_*` on getters as per RFC 0344.Corey Farwell2016-03-311-15/+15
| | | | | | https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis https://github.com/servo/servo/issues/6224
* Store the encoding in the Document rather than its name.Ms2ger2016-03-181-1/+1
|
* Add scrollWidth/Height to element interfaceDaniel Robertson2016-03-111-0/+41
| | | | | Add the scrollWidth and scrollHeight extensions to the element interface.
* Refactor mouseover code to be more performantEmilio Cobos Álvarez2016-03-021-1/+5
| | | | This increases mouseover/out performance drastically on my machine.
* script: Fix remaining bugs from Range.deleteContentsEmilio Cobos Álvarez2016-02-281-9/+25
|
* Completed implementation of devtools' `getLayout`.benshu2016-02-241-1/+0
|