aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Mark JSTraceable and its method as unsafeAnthony Ramine2016-12-061-1/+1
|
* Refactor the locate a namespace algorithmAnthony Ramine2016-12-011-60/+10
|
* Make Attr::prefix return an Option<&Prefix>Anthony Ramine2016-12-011-3/+3
|
* Make Element::prefix return an Option<&DOMString>Anthony Ramine2016-12-011-3/+3
|
* Refactor fragment parsingAnthony Ramine2016-12-011-14/+0
|
* Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal.Bobby Holley2016-11-241-12/+1
| | | | MozReview-Commit-ID: 7wH5XcILVmX
* Use selectors::SelectorListSimon Sapin2016-11-221-5/+5
|
* Remove SelectorImpl aliasesSimon Sapin2016-11-221-3/+3
|
* Update to selectors 0.15Simon Sapin2016-11-221-7/+6
|
* Rename selector_impl.rs to selector_parser.rsSimon Sapin2016-11-201-1/+1
| | | | This makes it consistent with an upcoming update of the selectors crate.
* Remove redundant url clonesPu Xingyu2016-11-181-1/+1
| | | | | They are now redundant since now document.url() returns a struct rather than a reference.
* Auto merge of #14246 - emilio:servo-url, r=SimonSapinbors-servo2016-11-171-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Urlmageddon <!-- Please describe your changes on the following line: --> Still needs a bunch of code in net to be converted in order to get more advantage of this for images and stuff, but meanwhile this should help quite a bit with #13778. Still wanted to get this in. r? @SimonSapin <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14246) <!-- Reviewable:end -->
| * Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-3/+3
| |
* | Auto merge of #14214 - bholley:dirtiness_overhaul, r=emiliobors-servo2016-11-171-37/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | Overhaul dirtiness handling in Servo to prepare for the new incremental restyle architecture <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14214) <!-- Reviewable:end -->
| * | Prevent nodes from having DIRTY_DESCENDANTS set by default.Bobby Holley2016-11-171-2/+5
| | |
| * | Eliminate HAS_CHANGED in favor of explicit RestyleDamage.Bobby Holley2016-11-161-11/+1
| | |
| * | Track all node damage with PendingRestyles.Bobby Holley2016-11-161-25/+9
| | |
* | | Auto merge of #14096 - ↵bors-servo2016-11-171-1/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fflorent:11485-make-dom-methods-taking-mut-JSContent-unsafe, r=nox 11485 make dom methods taking mut js content unsafe This is a rebased version of PR #11595 --- <!-- 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] These changes fix #11485 <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because: no code logic was changed <!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14096) <!-- Reviewable:end -->
| * | script creates methods taking '*mut JSContext' unsafeAbelardo E. Mendoza2016-11-141-1/+1
| | | | | | | | | | | | rebase + marked the necessary new code as unsafe
* | | Support basic immutable CSSOMManish Goregaokar2016-11-151-0/+30
| |/ |/|
* | Reorganise ServoParserAnthony Ramine2016-11-141-2/+2
|/ | | | | | Free-standing fonctions parse_html and friends are now static methods on ServoParser, and the HTML and XML tokenizers have been moved to private submodules.
* Auto merge of #14027 - frewsxcv:htmlcollection-iter-refactor, r=emiliobors-servo2016-11-031-13/+14
|\ | | | | | | | | | | | | | | Remove unnecessary `Box` around `HTMLCollectionElementsIter::node_iter`. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14027) <!-- Reviewable:end -->
| * Remove unnecessary `Box` around `HTMLCollectionElementsIter::node_iter`.Corey Farwell2016-11-021-13/+14
| |
* | Auto merge of #13965 - ↵bors-servo2016-11-031-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asajeffrey:script-iframe-check-document-browsing-context, r=Ms2ger Check that an iframe is in a document with a browsing context before processing src <!-- Please describe your changes on the following line: --> Check that an iframe is in a document with a browsing context before processing src. --- <!-- 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] These changes fix #13964. - [X] These changes do not require tests because this is already tested by https://github.com/servo/servo/blob/master/tests/wpt/web-platform-tests/old-tests/submission/Opera/script_scheduling/034.html <!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13965) <!-- Reviewable:end -->
| * | Check that an iframe is in a document with a browsing context before ↵Alan Jeffrey2016-11-031-0/+4
| |/ | | | | | | processing src.
* / Update to string-cache 0.3Simon Sapin2016-11-031-12/+15
|/
* Drop style data from descendants on display:none.Bobby Holley2016-11-011-0/+9
| | | | MozReview-Commit-ID: 8ls43oAGWRg
* Eliminate untraversed node types from LayoutNodeType.Bobby Holley2016-10-271-10/+1
| | | | MozReview-Commit-ID: 926ReI1BSsf
* Auto merge of #13703 - Rafagd:my_changes, r=Ms2gerbors-servo2016-10-141-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replacing Node.rootNode for Node.getRootNode. - Changed the specification for the Node element to reflect the new standard. - Changed the implementation of the NodeMethod. I'm still waiting for some answers for the questions I've posted on #13699, but I'm already doing the pull request so I can get some feedback as well. --- <!-- 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] These changes fix #13699 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13703) <!-- Reviewable:end -->
| * Replacing Node.prototype.rootNode for Node.prototype.getRootNode.Rafael Gomes Dantas2016-10-131-2/+3
| |
* | Remove intrinsic Root::r()Anthony Ramine2016-10-111-27/+28
|/
* Merge script::parse and script::dom::servoparserAnthony Ramine2016-10-111-1/+1
|
* Auto merge of #13589 - splav:SVGElement#12974, r=pcwalton,Ms2gerbors-servo2016-10-071-3/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support SVG element <!-- Please describe your changes on the following line: --> minimal SVG element implementation --- <!-- 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] These changes fix #12974 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13589) <!-- Reviewable:end -->
| * add SVGElement, SVGGraphicsElement interfaces and SVGSVGElement elementAlexandrov Sergey2016-10-061-3/+13
| |
* | Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-7/+9
|/
* 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
|