aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add a flag to dump the computed style valuesMichael Howell2016-08-121-0/+32
| | | | I used this to trace #11818 to a style bug, rather than a layout bug.
* style: Fix pseudo-element restyling.Emilio Cobos Álvarez2016-08-101-2/+3
|
* Update to selectors 0.8.2Simon Sapin2016-08-091-21/+22
|
* Auto merge of #12645 - emilio:stylo, r=bholleybors-servo2016-08-031-1/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stylo: Allow computing change hints during the traversal. <!-- Please describe your changes on the following line: --> --- <!-- 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 <!-- Either: --> - [x] These changes do not require tests because geckolib :-( <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> r? @bholley cc @heycam <!-- 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/12645) <!-- Reviewable:end -->
| * style: Refactor TRestyleDamage and TNode to accept/provide a "style source"Emilio Cobos Álvarez2016-08-031-1/+9
| | | | | | | | | | | | | | | | | | | | In the Gecko case, this style source would be the style context. In the servo case, it will be always the computed values. We could optimise this further in the case of stylo (from three FFI calls to one) if we use an API of the form CalcAndStore(node, new_cv). But that would imply borrowing the data twice from Servo (we also have borrow_data_unchecked fwiw, but...).
* | Issue 7720: Add target selector and update when scrolling to fragmentSteve Melia2016-08-031-1/+2
|/
* style: Remove a few more unuseful traversals now we can.Emilio Cobos Álvarez2016-07-271-9/+0
|
* style: Rewrite the restyle hints code to allow different kinds of element ↵Emilio Cobos Álvarez2016-07-211-2/+1
| | | | | | | | | | | | | snapshots, and use it for Gecko. This is a rewrite for how style interfaces with its consumers in order to allow different representations for an element snapshot. This also changes the requirements of an element snapshot, requiring them to only implement MatchAttr, instead of MatchAttrGeneric. This is important for stylo since implementing MatchAttrGeneric is way more difficult for us given the atom limitations. This also allows for more performant implementations in the Gecko side of things.
* Remove some type aliases that are now just re-exports.Simon Sapin2016-07-201-1/+2
|
* Remove the ComputedValue traits and style_struct_traitsSimon Sapin2016-07-201-2/+0
|
* Only restyle viewport-relative nodes on viewport size changeShing Lyu2016-07-181-1/+18
|
* Remove get_attr from TElement. \o/Bobby Holley2016-07-051-7/+7
|
* Upgrade rust-selectors.Bobby Holley2016-07-051-35/+39
|
* Add attr_equals to TElement.Bobby Holley2016-07-051-0/+5
| | | | Same reasons as the previous patch.
* Add has_attr method to TElement.Bobby Holley2016-07-051-0/+5
| | | | | If this is all the information the caller needs, we can get it from gecko without worrying about atomization and string conversions.
* Remove get_attrs from TElement.Bobby Holley2016-07-051-8/+4
| | | | This should just be a helper.
* Move util::str to styleAnthony Ramine2016-07-051-1/+1
|
* Move util::vec::ForgetfulSink to style::sink and simplify itAnthony Ramine2016-07-041-3/+3
|
* Use our copy of RefCell for style data.Simon Sapin2016-06-231-1/+1
| | | | | This allows removing `#![feature(as_unsafe_cell)]` in geckolib and make progress towards #11815.
* Remove unused re-exports from layout_interface.Ms2ger2016-06-201-6/+9
|
* Move TrustedNodeAddress to script_layout_interface.Ms2ger2016-06-201-2/+2
|
* Move ServoLayoutNode and related structs to script.Ms2ger2016-06-201-0/+996