aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/css
Commit message (Collapse)AuthorAgeFilesLines
* Hoist the rest of css/matching.rs into style/.Bobby Holley2016-01-041-381/+0
|
* Remove the dependency of css/matching.rs on SharedLayoutContext.Bobby Holley2016-01-041-21/+20
|
* Remove the dependency of css/matching.rs on concrete RestyleDamage.Bobby Holley2016-01-041-122/+72
| | | | | We can make this easier by inlining helper method implementations in the traits themselves, which makes the code more compact as a nice side-effect.
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-15/+11
|
* Hoist style-related context bits into style/.Bobby Holley2015-12-291-339/+12
| | | | | | | | We do a few things-here: * Hoist non-layout-dependent fields in SharedLayoutData and LocalLayoutData into style/. * Hoist parts of css/matching.rs into style/. * Hoist parts of layout/animation.rs into style/animation.rs. * Remove the duplicated-but-slightly-different definition of OpaqueNode.
* Separate style+layout and layout-specific wrapper functionality.Bobby Holley2015-12-291-93/+86
| | | | | | | | | | | 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.
* Add an is_text_node to LayoutNode, so that we don't need to implement ↵Bobby Holley2015-12-231-39/+35
| | | | type_id for the style system.
* Add pipeline information to CSS error reporting.GauriGNaik2015-12-141-1/+1
|
* Generalize css/matching.rs to operate on generic Layout*.Bobby Holley2015-11-281-19/+26
|
* Defined new trait ParseErrorReporter and added error_reporter member to ↵GauriGNaik2015-11-251-2/+5
| | | | ParserContext
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-8/+8
| | | | | | | | | | | 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.
* Write animated values into the `ComputedValues` structures whenPatrick Walton2015-11-241-16/+58
| | | | | | | | | | animations complete or are interrupted. This adds a new pair of reader-writer locks. I measured the performance of style recalculation on Wikipedia and the overhead of the locks was not measurable. Closes #7816.
* Rename Layout*Trait to Layout*.Bobby Holley2015-11-181-1/+1
| | | | | The next step will be to remote the Servo-specificity of the layout code we want to share by making it operate generically on Layout*.
* Prefix concrete types with 'Servo'.Bobby Holley2015-11-181-15/+15
|
* Hoist exported wrapper functionality into a family of traits.Bobby Holley2015-11-181-1/+1
| | | | | All the existing code still uses the concrete implementations, so this shouldn't impact the generated code at all.
* Remove dead code from layout.Ms2ger2015-11-181-7/+0
|
* Wrap SharedLayoutContext::new_animations_sender in a Mutex.Ms2ger2015-11-071-5/+5
|
* Auto merge of #8299 - pcwalton:dont-reflow-on-hover, r=mbrubeckbors-servo2015-11-041-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Fix several bugs causing the page to reflow on every mouse move event After all these changes are applied, Hacker News and GitHub only repaint and reflow nodes that actually have hover styles applied when the mouse moves over them. r? @mbrubeck cc @bholley <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8299) <!-- Reviewable:end -->
| * layout: Store viewport and screen size separately.Patrick Walton2015-11-031-2/+2
| | | | | | | | | | Fixes a bug whereby all nodes would get unconditionally reflowed on every layout event if the page set a viewport.
* | replace InheritTypes imports with inheritance importsrohan.prinja2015-10-301-1/+1
|/
* Remove the unused boolean in StyleSharingResult::CannotShare.Ms2ger2015-10-191-7/+6
|
* Define share_style_if_possible on LayoutElement.Ms2ger2015-10-191-20/+16
|
* Return the result from match_element rather than using an outparam.Ms2ger2015-10-191-7/+7
|
* Define match_node on LayoutElement as match_element.Ms2ger2015-10-191-17/+20
|
* Define share_style_with_candidate_if_possible on LayoutElement.Ms2ger2015-10-191-4/+6
|
* Improve code flow in share_style_if_possible.Ms2ger2015-10-191-8/+9
|
* Generate the TypeId enums in codegenAnthony Ramine2015-10-141-2/+1
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-2/+2
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-3/+2
| | | | This merges import blocks that were reported by tidy as unmerged.
* Auto merge of #7523 - eefriedman:unnecessary-unsafe, r=SimonSapinbors-servo2015-09-091-5/+4
|\ | | | | | | | | | | | | | | | | | | Fix up some unnecessary uses of `unsafe`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7523) <!-- Reviewable:end -->
| * Fix up some unnecessary uses of `unsafe`.Eli Friedman2015-09-021-5/+4
| |
* | Fix match_refs and let_returns in layout, address review changesManish Goregaokar2015-09-041-5/+5
| |
* | Remove needless returnsManish Goregaokar2015-09-041-1/+1
| |
* | Elide most 'a lifetimesManish Goregaokar2015-09-041-1/+1
|/
* Auto merge of #7499 - nerith:style, r=metajackbors-servo2015-09-021-2/+2
|\ | | | | | | | | | | | | | | | | | | Improve style nit check for space after a comma Fixes #7345. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7499) <!-- Reviewable:end -->
| * Fix reported test-tidy errorsBrandon Fairchild2015-09-011-2/+2
| | | | | | | | | | This fixes lines that were reported to have missing space after a comma.
* | Upgrade to rustc 1.4.0-dev (cb9323ec0 2015-09-01)Simon Sapin2015-09-021-1/+1
|/
* sort all usesJohann Tuffe2015-08-201-1/+1
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-1/+1
|
* Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`João Oliveira2015-08-151-6/+6
| | | | closes #7197
* replace .len() == 0 with is_empty()João Oliveira2015-08-141-2/+2
| | | | closes #7198
* layout: Tie transitions to the DOM node and finish them instantly whenPatrick Walton2015-08-011-9/+24
| | | | | | | | | | new styles are set. Tying transitions to the DOM node avoids quadratic complexity when updating them. Finishing transitions instantly when styles are updated makes our behavior more correct.
* Replace the StyledNode trait with inherent methods.Ms2ger2015-07-272-57/+0
|
* Remove unused StyledNode::has_style method.Ms2ger2015-07-271-7/+0
|
* Update rust-selectorsSimon Sapin2015-07-231-14/+10
| | | | Update for https://github.com/servo/rust-selectors/pull/37
* Fix #6680Bogdan Cuza2015-07-221-4/+4
|
* Use Ref::map to make ThreadSafeLayoutNode::style safe.Ms2ger2015-07-171-10/+8
|
* Update rust-selectorsSimon Sapin2015-06-261-34/+34
|
* Replace OpaqueNodeMethods::from_{threadsafe_,}layout_node by opaque methods.Ms2ger2015-06-241-3/+1
|
* Replace the LayoutDataAccess trait by inherent methods.Ms2ger2015-06-221-1/+1
|