aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/wrapper.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move CSS content property from Box to CountersMauricio Collares2016-04-051-1/+1
|
* Implement ::selection pseudo-elementEmilio Cobos Álvarez2016-03-301-8/+17
|
* Renamed TComputedValues to ComputedValuesPer Lundberg2016-03-291-1/+1
| | | | This is a followup to #10210, and a continuation of #10185.
* ComputedValues is now ServoComputedValuesPer Lundberg2016-03-271-3/+3
| | | | This is the first part of #10185. More to follow. I have built this locally with both servo and geckolib without errors; let's see if it succeeds on all platforms as well.
* Auto merge of #10176 - mbrubeck:selection-range, r=pcwaltonbors-servo2016-03-261-7/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | Highlight selected text in input fields Fixes #9993. This does not yet allow stylesheets to set the selection colors; instead it uses a hard-coded orange background and white foreground. r? @pcwalton <!-- 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/10176) <!-- Reviewable:end -->
| * Highlight selected text in input fieldsMatt Brubeck2016-03-241-7/+11
| | | | | | | | | | Fixes #9993. This does not yet allow stylesheets to set the selection colors; instead it uses a hard-coded orange background and white foreground.
* | Parameterize the rest of the style system on TNode.Bobby Holley2016-03-241-1/+2
|/
* Get the fundamentals of the HTMLDetailsElement rendering stuff working.Michael Howell2016-03-191-23/+150
| | | | | | Still need to implement the style invalidation. Part of #9395
* Remove lifetimes from LayoutNode and friends.Bobby Holley2016-03-141-22/+19
|
* Remove lifetimes from T{Node,Element,Document}.Bobby Holley2016-03-141-5/+5
|
* Dirty elements whose selectors are affected by sibling changesMatt Brubeck2016-02-231-1/+5
| | | | | | | | | | | | | 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
* style: Refactor the per_pseudo map from StyleData to avoid having an option ↵Emilio Cobos Álvarez2016-02-131-24/+20
| | | | | | value type. This make the layout code way clearer.
* Refactor style to be completely backend-independentEmilio Cobos Álvarez2016-02-131-15/+30
| | | | | | | | | | | This commit refactors the style crate to be completely independent of the actual implementation and pseudo-elements supported. This also adds a gecko backend which introduces parsing for the anonymous box pseudo-elements[1], although there's still no way of querying them. https://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSAnonBoxList.h
* Update rust-selectorsEmilio Cobos Álvarez2016-02-031-50/+36
| | | | | 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-9/+9
| | | | Fragmentation will be intertwined with block size calculation.
* Disable incremental reflow for multicol and their descendants.Simon Sapin2016-01-271-1/+15
| | | | Fragmentation with dynamic updates is hard.
* Basic wrappers and glue for GeckoLib.Bobby Holley2016-01-131-3/+3
|
* Hoist style() and unstyle() into TNode.Bobby Holley2016-01-121-8/+0
|
* Auto merge of #8983 - Manishearth:cursors, r=jdmbors-servo2016-01-111-3/+4
|\ | | | | | | | | | | | | | | | | | | | | Various textinput fixes - Currently the cursor sticks around if you click elsewhere. Now the text inputs are relayout-ed on blur. - Currently whitespace gets collapsed in text input (https://github.com/servo/servo/issues/8772). Not anymore. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8983) <!-- Reviewable:end -->
| * Relayout text input elements on blurManish Goregaokar2016-01-031-3/+4
| |
* | task -> threadrohan.prinja2016-01-101-1/+1
| |
* | Make parallel DOM traversal and style calculation operate on TNode instead ↵Bobby Holley2016-01-061-0/+12
| | | | | | | | of LayoutNode.
* | Introduce a concept of restyle damage to the style system.Bobby Holley2016-01-041-9/+19
|/ | | | | We can't hoist RestyleDamage itself, because it's very layout-dependent. But this should be enough to let us hoist the things we need.
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-2/+2
|
* Separate style+layout and layout-specific wrapper functionality.Bobby Holley2015-12-291-363/+127
| | | | | | | | | | | 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.
* Hoist more stuff from the concrete wrapper implementations into the trait ↵Bobby Holley2015-12-231-49/+41
| | | | definitions to allow sharing.
* Add an is_text_node to LayoutNode, so that we don't need to implement ↵Bobby Holley2015-12-231-0/+9
| | | | type_id for the style system.
* Make DangerousThreadSafeLayoutNode public. :-(Bobby Holley2015-12-231-2/+3
| | | | I'm open to suggestions on how to do this better.
* Fix warningsSimon Sapin2015-12-031-1/+1
| | | | | | Fixing unused attributes warnings required updating serde_macros which required updating to rustc 1.6.0-nightly (a2866e387 2015-11-30) which required updating some other dependencies.
* Generalize the rest of layout to operate on generic Layout*.Bobby Holley2015-11-281-16/+27
| | | | | | | There wasn't a good way to split this up, unfortunately. With this change, the only remaining usage of the Servo-specific structures is in layout_task, where the root node is received from the script task. \o/
* Switch ChildrenIterator to be an associated type.Bobby Holley2015-11-281-2/+4
| | | | | | If we use ThreadsafeLayoutNodeChildrenIterator directly as the return type of children(), we need to export the DangerousThreadSafeLayoutNode which the iterator implementation relies upon.
* Constrain the ConcreteLayoutFoo associated types to provide full tri-ality ↵Bobby Holley2015-11-281-9/+16
| | | | | | among the types. Otherwise we end up with this problem: http://is.gd/ACBLAU
* Add XMLDocument objectGuillaume Gomez2015-11-271-1/+6
|
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-2/+2
| | | | | | | | | | | 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.
* Auto merge of #8639 - bholley:generalize_wrappers2, r=pcwaltonbors-servo2015-11-241-240/+313
|\ | | | | | | | | | | | | | | Use associated types for layout wrapper trait, and generalized ThreadSafeLayoutFoo <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8639) <!-- Reviewable:end -->
| * Rename ThreadSafeLayoutFoo to ServoThreadSafeLayoutFoo and ↵Bobby Holley2015-11-211-26/+26
| | | | | | | | TThreadSafeLayoutFoo to ThreadSafeLayoutFoo.
| * Hoist exported ThreadSafeLayoutFoo functionality into traits.Bobby Holley2015-11-211-167/+230
| |
| * Use associated types instead of wrapper types.Bobby Holley2015-11-211-61/+71
| |
| * Make the LayoutElement trait implement TElementAttributes.Bobby Holley2015-11-211-1/+1
| |
* | Extend whitespace::T with additional helper methodsKeith Yeung2015-11-201-8/+2
|/
* Rename Layout*Trait to Layout*.Bobby Holley2015-11-181-12/+12
| | | | | 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-55/+55
|
* Hoist exported wrapper functionality into a family of traits.Bobby Holley2015-11-181-186/+285
| | | | | 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
|
* Privatize from_layout_js functions.Ms2ger2015-11-171-3/+3
|
* Remove get_unsigned_integer_attribute.Ms2ger2015-11-151-19/+0
|
* Introduce a get_colspan method on LayoutJS<Element>.Ms2ger2015-11-151-0/+6
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-1/+1
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Add ::from_layout_js factory to LayoutNode, LayoutElement, and LayoutDocument.Bobby Holley2015-11-101-27/+24
|
* Implement attribute restyle hints.Bobby Holley2015-11-101-11/+8
| | | | Fixes #6942.