aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/wrapper.rs
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-3/+5
| | | | | * strict imports formatting * Reformat all imports
* Implement concept of dirty rootAnthony Ramine2020-05-191-2/+8
|
* Replace OpaqueStyleAndLayoutData by StyleAndOpaqueLayoutDataAnthony Ramine2020-04-061-7/+10
|
* Rename a bunch of style/layout data itemsAnthony Ramine2020-04-061-11/+13
| | | | | | | | | | | | | GetLayoutData::get_style_and_layout_data becomes GetOpaqueStyleAndLayoutData::get_opaque_style_and_layout_data. GetRawData::get_raw_data becomes GetStyleAndLayoutData::get_style_and_layout_data. LayoutNode::init_style_and_layout_data becomes LayoutNode::init_opaque_style_and_layout_data. LayoutNode::take_style_and_layout_data becomes LayoutNode::take_opaque_style_and_layout_data.
* Make DOM own the style and layout data, in an UnsafeCellAnthony Ramine2020-04-041-15/+13
| | | | The previous Cell was a lie.
* Make OpaqueLayoutAndStyleData just a bit less opaqueAnthony Ramine2020-04-041-9/+7
| | | | It now stores a NonNull<dyn Any>.
* Make LayoutNodeHelpers::text_content return a cowAnthony Ramine2020-03-311-1/+1
|
* Add a 'dom lifetime to GetLayoutDataAnthony Ramine2020-03-261-3/+12
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+1
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-2/+2
|
* Rustfmt layout cratePyfisch2018-09-011-9/+12
|
* Fix Servo build.Emilio Cobos Álvarez2018-05-191-6/+7
|
* style: Move content property out of mako.Igor Gutorov2018-02-071-5/+5
|
* Replace NonZero<*{const,mut} _> with std::ptr::NonNullSimon Sapin2018-01-221-1/+1
|
* layout: Fixup indentation of ThreadSafeLayoutNodeHelpers::flags.Emilio Cobos Álvarez2017-11-101-1/+1
| | | | Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-1/+1
|
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-1/+1
| | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
* Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-1/+1
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Rename LayoutJS<T> to LayoutDom<T>Anthony Ramine2017-09-261-1/+1
|
* Eliminate RestyleData entirely.Bobby Holley2017-09-121-1/+1
| | | | | | Without this change, the previous commit increases the size of ElementData. MozReview-Commit-ID: 87BZuXINiT9
* script: Move the layout_wrapper outside of script.Emilio Cobos Álvarez2017-07-151-33/+1
| | | | | | | | This allows us to have ensure_data() and clear_data() functions on the TElement trait, instead of hacking around it adding methods in random traits. This also allows us to do some further cleanup, which I'd rather do in a followup.
* style: Inline RestyleData.Emilio Cobos Álvarez2017-06-161-8/+3
| | | | | Bug: 1368236 MozReview-Commit-ID: 49s3SO0PMHf
* layout: Stop doing unsafe transmutes between refcell references.Emilio Cobos Álvarez2017-05-251-34/+36
| | | | | | | | | This commit splits the style and layout data in two separate refcells. These transmutes have been a source of trouble (for example on Android), and they feel like a hack anyway. Fixes #16982
* Parse -moz-alt-content as a whole content value (fixes #15726)Anthony Ramine2017-05-221-1/+1
|
* Upgrade to rustc 1.19.0-nightly (ced823e26 2017-05-07)Simon Sapin2017-05-081-2/+2
|
* Bug 1325734 - Simplify ElementData and eliminate the concept of consuming ↵Bobby Holley2017-01-091-1/+1
| | | | styles. r=emilio
* Bug 1325734 - Remove Servo Layout's dependency on the initial-ness of the ↵Bobby Holley2017-01-091-0/+39
| | | | style. r=emilio
* Switch to crates.io for atomic_refcell.Bobby Holley2017-01-031-1/+1
|
* Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal.Bobby Holley2016-11-241-5/+0
| | | | MozReview-Commit-ID: 7wH5XcILVmX
* Drop style data from descendants on display:none.Bobby Holley2016-11-011-0/+13
| | | | MozReview-Commit-ID: 8ls43oAGWRg
* Replace begin_styling with a centralized mechanism to set a node up for ↵Bobby Holley2016-11-011-11/+21
| | | | | | | | | either styling or restyling. We also make sure that an element never has an ElementData with ElementDataStyles::Uninitialized, and eagerly call prepare_for_styling whenever an ElementData is instantiated. MozReview-Commit-ID: 9YP6eSmdMt0
* Rename NodeData and associated data structures to Element*.Bobby Holley2016-10-291-1/+1
| | | | MozReview-Commit-ID: 96VsmsoZtjZ
* Hoist most styling functionality from TNode to TElement.Bobby Holley2016-10-291-20/+18
| | | | MozReview-Commit-ID: DZ8ZrsZIiAU
* Move core pseudo-element handling to ThreadSafeLayoutElement.Bobby Holley2016-10-281-44/+14
|
* Rearrange some data structures in preparation for the new incremental ↵Bobby Holley2016-10-211-1/+1
| | | | | | restyle algorithm. MozReview-Commit-ID: 8iOALQylOuK
* Remove borrow_data and mutate_data from TNode.Bobby Holley2016-10-101-1/+1
| | | | | The new restyle architecture doesn't store these things in consistent places, so we need a more abstract API.
* Rename PrivateStyleData to PersistentStyleData and use AtomicRefCell instead ↵Bobby Holley2016-10-021-37/+18
| | | | | | | | of RefCell as a container. This allows us to eliminate the unsafe borrows. \o/ MozReview-Commit-ID: 29hpGaWUFQz
* Reorder `use` statementsUK9922016-09-091-1/+1
|
* Remove the ComputedValue traits and style_struct_traitsSimon Sapin2016-07-201-1/+0
|
* 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 the layout_wrapper re-exports from layout::wrapper.Ms2ger2016-06-201-2/+0
|
* Move ServoLayoutNode and related structs to script.Ms2ger2016-06-201-965/+5
|
* Make ServoLayoutNode::debug_id() less convoluted.Ms2ger2016-06-201-2/+1
|
* Introduce LayoutJS<Node>::opaque() to replace ↵Ms2ger2016-06-201-2/+2
| | | | OpaqueNodeMethods::from_jsmanaged().
* Move LayoutNode and related traits to script_layout_interface.Ms2ger2016-06-201-348/+3
|
* Move HTMLCanvasData to script_layout_interface.Ms2ger2016-06-201-2/+2
|
* Introduce LayoutNodeType and LayoutElementType enums.Ms2ger2016-06-201-17/+22
|
* Introduce a ThreadSafeLayoutNodeHelpers trait for methods to stay in layout.Ms2ger2016-06-201-86/+93
|