Anthony Ramine
b45f1918d1
Remove JS::from_rooted
2016-05-31 14:43:58 +02:00
Thiago Pontes
766ad5e092
use USVStrings instead of DOMString for urls in Node and Document
2016-05-28 14:53:31 -04:00
bors-servo
3ec20d9cf5
Auto merge of #11472 - jdm:wip, r=mbrubeck
...
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 -->
2016-05-27 18:14:25 -05:00
Josh Matthews
3cb8af20c2
Remove empty lines following braces.
2016-05-27 13:32:05 -04:00
Ms2ger
e94f3d4fe0
Remove the LayoutChan type.
...
It is a pointless abstraction.
2016-05-27 15:33:04 +02:00
Anthony Ramine
cdc7bca944
Move DOMString back to script
...
This entirely removes the 'non-geckolib' feature of the util crate.
2016-05-24 10:54:57 +02:00
Per Lundberg
2f7ed1d73e
Removed unused imports
...
This fixes #11185 .
2016-05-15 22:24:26 +03:00
mrmiywj
6ade433196
Make Node::BaseURI use the document's base URL
...
update expectations
2016-05-14 14:44:06 +08:00
Ms2ger
a5be5a82c1
Move some code from ServoThreadSafeLayoutNode::text_content into script.
2016-05-09 14:26:30 +02:00
Matt Brubeck
1e23d90631
Upgrade to bitflags 0.6.0 and selectors 0.5.6
...
Types generated by `bitflags!` are now private by default. This PR marks them
`pub` where necessary.
2016-04-30 10:14:03 -07:00
Ms2ger
897be5f6ee
Reduce channel cloning.
2016-04-29 14:55:52 +02:00
Arnaud Marant
ed42cc72a4
Implements Node::isSameNode
...
Fixes #10746
Adapted the tests from dom/nodes/Node-isEqualNode.html
2016-04-23 22:03:25 +02:00
Léo Stefanesco
00b3f7930e
Implement Node::rootNode
2016-04-22 13:18:50 +02:00
Zhen Zhang
fefdaf76de
Implement ScrollTop and ScrollLeft getters:
...
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.
2016-04-19 12:27:35 +08:00
Corey Farwell
2c9b00ef6b
Extract out 'is the html body element' CSSOM concept.
2016-04-11 10:51:00 -04:00
Ms2ger
71f56d6744
Simplify PrecedingNodeIterator::next().
2016-04-11 10:29:32 +02:00
Ms2ger
489d2e5e49
Update uuid.
2016-04-07 09:00:22 +02:00
Corey Farwell
bf4db405e4
Remove get_*
on getters as per RFC 0344.
...
https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis
https://github.com/servo/servo/issues/6224
2016-03-31 21:12:38 -04:00
Ms2ger
b1cd28e9c6
Store the encoding in the Document rather than its name.
2016-03-18 16:22:52 +01:00
Daniel Robertson
16d2778ece
Add scrollWidth/Height to element interface
...
Add the scrollWidth and scrollHeight extensions to the element
interface.
2016-03-11 18:22:16 +00:00
Emilio Cobos Álvarez
3662491d8f
Refactor mouseover code to be more performant
...
This increases mouseover/out performance drastically on my machine.
2016-03-02 20:14:15 +01:00
Emilio Cobos Álvarez
3e36739e38
script: Fix remaining bugs from Range.deleteContents
2016-02-28 19:27:42 +01:00
benshu
0785d91ae4
Completed implementation of devtools' getLayout
.
2016-02-24 13:51:47 -05:00
Matt Brubeck
973918967f
Dirty elements whose selectors are affected by sibling changes
...
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
2016-02-23 17:31:38 -08:00
bors-servo
ee158cc65f
Auto merge of #9603 - Ms2ger:document-bc, r=jdm
...
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 -->
2016-02-19 12:49:35 +05:30
bors-servo
2374e9d30e
Auto merge of #9526 - schuster:node-remove, r=nox
...
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 -->
2016-02-19 03:14:28 +05:30
Prabhjyot Singh Sodhi
ae80b9bcf0
fix Node-isEqualNode.html test failure
2016-02-16 00:24:35 +05:30
Jonathan Schuster
4bb5cd1285
Move comment about removing steps
2016-02-13 14:22:10 -05:00
Jonathan Schuster
983e76af87
Update node::remove comments to reflect standard
2016-02-13 13:40:49 -05:00
Anthony Ramine
55dcee94be
Bump heapsize to 0.3
2016-02-13 11:13:19 +01:00
Ms2ger
152cec69eb
Store a pointer to the browsing context in the Document.
2016-02-11 13:08:11 +01:00
Alexander Lopatin
2be49404be
Fix #9508 : Beautify our union enums constructors
2016-02-07 02:55:21 +03:00
Anthony Ramine
cb5cd8d881
Say farewell to in-tree HeapSizeOf
2016-02-04 22:03:32 +01:00
Anthony Ramine
9932a5cf82
Abstract out Node::unique_id in its own structure
...
An UnsafeCell is use to lazily create the Uuid.
2016-02-04 14:22:53 +01:00
Emilio Cobos Álvarez
a1c830f1c1
Update rust-selectors
...
This commits updates rust-selectors to use the generic parser, and as
such it moves the element state into the style crate.
2016-02-03 02:11:31 +01:00
Simon Sapin
9abbd1b5d1
Sequentialize assign_block_size for flows that can be fragmented.
...
Fragmentation will be intertwined with block size calculation.
2016-01-28 09:42:17 +01:00
Simon Sapin
da2b4ab381
Disable incremental reflow for multicol and their descendants.
...
Fragmentation with dynamic updates is hard.
2016-01-27 17:33:12 +01:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Guillaume Gomez
99ac1a81cc
Generate PartialEq automatically
2016-01-03 18:07:09 +01:00
Johannes Linke
6b215f38ee
Fix a bunch of clippy lints
2016-01-02 23:27:15 +01:00
Bobby Holley
47059d2d26
Separate style+layout and layout-specific wrapper functionality.
...
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.
2015-12-29 11:50:03 -08:00
bors-servo
89ab368258
Auto merge of #8506 - nox:finish-ranges, r=dzbarsky
...
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 -->
2015-12-26 04:08:15 +05:30
Anthony Ramine
3c76835615
Properly propagate changes when range or trees are mutated
2015-12-25 23:35:57 +01:00
bors-servo
8c87477138
Auto merge of #9026 - Manishearth:attack-of-the-clones, r=Ms2ger
...
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 -->
2015-12-20 00:14:02 +05:30
Manish Goregaokar
ef5de267d9
Remove clone in collect_text_contents
2015-12-19 01:06:16 +05:30
Anthony Ramine
748dfdf575
Fix Node::replace_with
2015-12-14 00:13:56 +01:00
Anthony Ramine
1dd7c8cf01
Introduce CharacterData::clone_with_data()
2015-12-13 21:14:34 +01:00
Anthony Ramine
8f01790f06
Introduce UnbindContext
...
This holds the context that describes the original node that was removed from a tree
when unbinding from a tree.
2015-12-13 21:14:31 +01:00
Anthony Ramine
b63ca94c7f
Fix Node::ReplaceChild
2015-12-13 21:12:19 +01:00
Jason Williams
1a8db9a07a
now using external ref_slice instead of the std version
2015-12-03 07:32:07 +00:00