aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Dirty elements whose selectors are affected by sibling changesMatt Brubeck2016-02-231-0/+48
| | | | | | | | | | | | | This fixes incremental layout of nodes that match pseudo-class selectors such as :first-child, :nth-child, :last-child, :first-of-type, etc. * Fixes #8191 * Fixes #9063 * Fixes #9303 * Fixes #9448 This code is based on the following flags from Gecko: https://hg.mozilla.org/mozilla-central/file/e1cf617a1f28/dom/base/nsINode.h#l134
* Auto merge of #9603 - Ms2ger:document-bc, r=jdmbors-servo2016-02-191-1/+2
|\ | | | | | | | | | | | | | | Store a pointer to the browsing context in the Document. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9603) <!-- Reviewable:end -->
| * Store a pointer to the browsing context in the Document.Ms2ger2016-02-111-1/+2
| |
* | Auto merge of #9526 - schuster:node-remove, r=noxbors-servo2016-02-191-3/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | My updates so far for issue #8465. See comments there for more information. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9526) <!-- Reviewable:end -->
| * | Move comment about removing stepsJonathan Schuster2016-02-131-2/+1
| | |
| * | Update node::remove comments to reflect standardJonathan Schuster2016-02-131-3/+7
| | |
* | | fix Node-isEqualNode.html test failurePrabhjyot Singh Sodhi2016-02-161-1/+1
|/ /
* / Bump heapsize to 0.3Anthony Ramine2016-02-131-1/+1
|/
* Fix #9508: Beautify our union enums constructorsAlexander Lopatin2016-02-071-1/+1
|
* Say farewell to in-tree HeapSizeOfAnthony Ramine2016-02-041-1/+1
|
* Abstract out Node::unique_id in its own structureAnthony Ramine2016-02-041-9/+42
| | | | An UnsafeCell is use to lazily create the Uuid.
* Update rust-selectorsEmilio Cobos Álvarez2016-02-031-2/+3
| | | | | This commits updates rust-selectors to use the generic parser, and as such it moves the element state into the style crate.
* Sequentialize assign_block_size for flows that can be fragmented.Simon Sapin2016-01-281-1/+1
| | | | Fragmentation will be intertwined with block size calculation.
* Disable incremental reflow for multicol and their descendants.Simon Sapin2016-01-271-0/+3
| | | | Fragmentation with dynamic updates is hard.
* task -> threadrohan.prinja2016-01-101-5/+5
|
* Generate PartialEq automaticallyGuillaume Gomez2016-01-031-6/+0
|
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-8/+7
|
* Separate style+layout and layout-specific wrapper functionality.Bobby Holley2015-12-291-83/+28
| | | | | | | | | | | This patch does a number of things, unfortunately all at once: * Hoists a large subset of the layout wrapper functionality into the style system. * Merges TElementAttributes into the newly-created TElement. * Reorganizes LayoutData by style vs layout, and removes LayoutDataShared. * Simplifies the API for borrowing style/layout data. There's still more to do to make the style system usable standalone, but this is a good start.
* Auto merge of #8506 - nox:finish-ranges, r=dzbarskybors-servo2015-12-261-81/+142
|\ | | | | | | | | | | | | | | | | | | | | | | Properly propagate changes when range or trees are mutated Does the same thing as #6817, but storing Range instances directly in their start and end containers. Cc @dzbarsky <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8506) <!-- Reviewable:end -->
| * Properly propagate changes when range or trees are mutatedAnthony Ramine2015-12-251-30/+103
| |
| * Introduce CharacterData::clone_with_data()Anthony Ramine2015-12-131-15/+2
| |
| * Introduce UnbindContextAnthony Ramine2015-12-131-2/+12
| | | | | | | | | | This holds the context that describes the original node that was removed from a tree when unbinding from a tree.
| * Fix Node::ReplaceChildAnthony Ramine2015-12-131-38/+29
| |
* | Auto merge of #9026 - Manishearth:attack-of-the-clones, r=Ms2gerbors-servo2015-12-201-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove clone in collect_text_contents <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9026) <!-- Reviewable:end -->
| * | Remove clone in collect_text_contentsManish Goregaokar2015-12-191-1/+1
| |/
* / Fix Node::replace_withAnthony Ramine2015-12-141-12/+18
|/
* now using external ref_slice instead of the std versionJason Williams2015-12-031-1/+1
|
* Auto merge of #8701 - nerith:attribute, r=jdmbors-servo2015-11-281-2/+0
|\ | | | | | | | | | | | | | | | | | | | | | | Remove `#[allow(raw_pointer_derive)]` attributes The attributes are unused. Fixes #8699. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8701) <!-- Reviewable:end -->
| * Remove `#[allow(raw_pointer_derive)]` attributesBrandon Fairchild2015-11-271-2/+0
| | | | | | | | | | | | The attributes are unused. Fixes #8699.
* | Add XMLDocument objectGuillaume Gomez2015-11-271-16/+16
|/
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-12/+12
| | | | | | | | | | | 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.
* 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}; ^~~~~~~~~~~~~~~~~ ```
* Remove 'Node::is_anchor_element'Rizky Luthfianto2015-11-211-5/+0
|
* reduce node.unique_id sizeAleksandr Likhanov2015-11-191-6/+6
| | | | | fix sizeof unittest update Cargo.lock
* Make Node::is_parent_of more idiomaticBrandon Fairchild2015-11-171-4/+1
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-6/+7
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Replaced DOMString by String in devtools.Alan Jeffrey2015-11-121-7/+7
|
* Auto merge of #8479 - frewsxcv:domstring-default, r=Ms2gerbors-servo2015-11-131-3/+3
|\ | | | | | | | | | | | | | | Implement Default trait for DOMString <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8479) <!-- Reviewable:end -->
| * Implement Default trait for DOMStringCorey Farwell2015-11-111-3/+3
| |