aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
Commit message (Collapse)AuthorAgeFilesLines
* Don't copy the list of stylesheets in LayoutTask::handle_reflow.Ms2ger2015-12-301-5/+3
| | | | | It would be nice to avoid exposing the fact that these are stored in an Arc to the selector matching code.
* Auto merge of #9077 - bholley:split_layout_context_etc, r=SimonSapinbors-servo2015-12-306-421/+74
|\ | | | | | | | | | | | | | | Split the style-related bits out of LayoutContext and hoist more stuff into style/ <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9077) <!-- Reviewable:end -->
| * Hoist style-related context bits into style/.Bobby Holley2015-12-296-421/+74
| | | | | | | | | | | | | | | | 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.
* | Auto merge of #9051 - bholley:split_style_and_layout_wrappers, r=SimonSapinbors-servo2015-12-3010-572/+288
|\| | | | | | | | | | | | | | | | | | | | | | | Split layout wrappers into style+layout and layout-only functionality This is a step towards removing the dependency of stylo on layout/. This PR depends on #9004. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9051) <!-- Reviewable:end -->
| * Separate style+layout and layout-specific wrapper functionality.Bobby Holley2015-12-2910-572/+288
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Separate script and layout messages, issue #8843Joe Kachmar2015-12-263-4/+4
|/
* Auto merge of #9055 - simartin:issue_9042, r=Wafflespeanutbors-servo2015-12-241-1/+1
|\ | | | | | | | | | | | | | | | | | | Issue #9042: Report incorrect number of spaces around => in the style checker Fixes https://github.com/servo/servo/issues/9042 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9055) <!-- Reviewable:end -->
| * Issue #9042: Report incorrect number of spaces around => in the style checker.Simon Martin2015-12-231-1/+1
| |
* | 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-232-39/+44
| | | | | | | | 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.
* | Auto merge of #8938 - nerith:gfx, r=Ms2gerbors-servo2015-12-236-8/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Move LayerKind and ScrollPolicy enums to gfx_traits Fixes #8836. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8938) <!-- Reviewable:end -->
| * | Move LayerKind and ScrollPolicy enums to gfx_traitsBrandon Fairchild2015-12-206-8/+9
| | | | | | | | | | | | | | | | | | This also moves LayerId and LayerProperties to gfx_traits. Fixes #8836.
* | | Auto merge of #9040 - mrobinson:fix-comment, r=noxbors-servo2015-12-221-2/+0
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | Remove a fixed TODO Issue #2009 has already been fixed and closed so we can remove this TODO entirely. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9040) <!-- Reviewable:end -->
| * | Remove a fixed TODOMartin Robinson2015-12-211-2/+0
| |/ | | | | | | | | Issue #2009 has already been fixed and closed so we can remove this TODO entirely.
* / Remove workaround for Rect::is_emptyMartin Robinson2015-12-221-4/+1
|/ | | | Now that euclid is up-to-date this workaround is no longer necessary.
* Use Url.join instead of UrlParser.base_url(...).parse (#9002)Mathieu Agopian2015-12-181-1/+1
|
* Auto merge of #8995 - pcwalton:measure-text-shaping, r=mbrubeckbors-servo2015-12-171-0/+13
|\ | | | | | | | | | | | | | | | | | | gfx: Measure text shaping time in the time profiler. r? @mbrubeck <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8995) <!-- Reviewable:end -->
| * gfx: Measure text shaping time in the time profiler.Patrick Walton2015-12-151-0/+13
| |
* | Auto merge of #8903 - KiChjang:layout-reporter-redirect, r=noxbors-servo2015-12-161-12/+19
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | fix for Layout memory reporter uses pre-redirect url Rebase of #7612. Fixes #6872. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8903) <!-- Reviewable:end -->
| * Fix build errors after rebasing and address review commentsKeith Yeung2015-12-091-7/+6
| |
| * remove Option because it is never used as NoneArnaud Marant2015-12-091-12/+8
| |
| * fix for Layout memory reporter uses pre-redirect url #6872Arnaud Marant2015-12-091-8/+20
| |
* | Add pipeline information to CSS error reporting.GauriGNaik2015-12-143-4/+4
| |
* | Removed use of a #![feature] that is now stableAlex Gaynor2015-12-101-1/+0
| |
* | Move ScriptMsg from msg crate into script_traitsTomas Cernaj2015-12-093-4/+3
|/
* Move from clock_ticks to time.Ms2ger2015-12-073-8/+6
| | | | This is recommended at <https://github.com/tomaka/clock_ticks>.
* Auto merge of #8796 - cheba:zero-point, r=SimonSapinbors-servo2015-12-044-11/+7
|\ | | | | | | | | | | | | | | | | | | | | | | Replaced ZERO_POINT with Point2D::zero() This is a proposed in servo/servo#8792 clean up. Fixes #8792. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8796) <!-- Reviewable:end -->
| * Replaced ZERO_POINT with Point2D::zero()Alexander Mankuta2015-12-034-11/+7
| |
* | Auto merge of #8800 - servo:warnings, r=metajackbors-servo2015-12-042-2/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | Fix warnings 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. Fix #8709. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8800) <!-- Reviewable:end -->
| * Fix warningsSimon Sapin2015-12-032-2/+2
| | | | | | | | | | | | 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.
* | Replaced ZERO_RECT with Rect::zero()Alexander Mankuta2015-12-033-6/+3
|/
* Auto merge of #8757 - servo:skia, r=mbrubeckbors-servo2015-12-031-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Use skia and deps from crates.io. This makes the initial download for skia go from a 300 MB git repository to a 5 MB tarball. This should help with issues like #6132 and #7687. Fix https://github.com/servo/skia/issues/70 This builds, but the at the moment causes a number of tidy errors for duplicated crates. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8757) <!-- Reviewable:end -->
| * Use skia and deps from crates.io.Simon Sapin2015-12-021-1/+1
| | | | | | | | Fix https://github.com/servo/skia/issues/70
* | Generalize the rest of layout to operate on generic Layout*.Bobby Holley2015-11-2810-157/+199
| | | | | | | | | | | | | | 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/
* | Generalize css/matching.rs to operate on generic Layout*.Bobby Holley2015-11-281-19/+26
| |
* | 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
* | Auto merge of #8692 - GuillaumeGomez:patch-1, r=Wafflespeanutbors-servo2015-11-281-10/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure crate are alphabetically sorted cc @nox <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8692) <!-- Reviewable:end -->
| * | Add check up on extern crate order and sort extern crates alphabeticallyGuillaume Gomez2015-11-281-10/+10
| | |
* | | Auto merge of #8702 - mrobinson:fragments, r=pcwaltonbors-servo2015-11-281-4/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build Fragments without the RECONSTRUCT_FLOW bit The RECONSTRUCT_FLOW restyle damage bit shouldn't apply to newly constructed flow tree elements. It is explicitly removed for Flows, but not for Fragments. This causes RECONSTRUCT_FLOW to bubble up to Flows that contain any Fragments at all. Instead explicitly remove the RECONSTRUCT_FLOW bit when creating a new Fragment. There isn't a good way to test this currently, but all tests should continue to pass. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8702) <!-- Reviewable:end -->
| * | | Build Fragments without the RECONSTRUCT_FLOW bitMartin Robinson2015-11-271-4/+14
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | The RECONSTRUCT_FLOW restyle damage bit shouldn't apply to newly constructed flow tree elements. It is explicitly removed for Flows, but not for Fragments. This causes RECONSTRUCT_FLOW to bubble up to Flows that contain any Fragments at all. Instead explicitly remove the RECONSTRUCT_FLOW bit when creating a new Fragment. There isn't a good way to test this currently, but all tests should continue to pass.
* | | Auto merge of #8675 - GuillaumeGomez:master, r=noxbors-servo2015-11-272-3/+8
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add XMLDocument object Fixes #8000 (Still working on it) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8675) <!-- Reviewable:end -->
| * | Add XMLDocument objectGuillaume Gomez2015-11-272-3/+8
| | |
* | | Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)Manish Goregaokar2015-11-271-5/+2
| |/ |/| | | | | … and libc 0.2 and many other dependencies
* | Defined new trait ParseErrorReporter and added error_reporter member to ↵GauriGNaik2015-11-255-3/+21
|/ | | | ParserContext
* Update string_cache to 0.2.Alan Jeffrey2015-11-257-18/+16
| | | | | | | | | | | 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 #8670 - pcwalton:animation-expiration, r=glennwbors-servo2015-11-255-56/+134
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Write animated values into the `ComputedValues` structures when 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. cc @paulrouget r? @glennw <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8670) <!-- Reviewable:end -->
| * Write animated values into the `ComputedValues` structures whenPatrick Walton2015-11-245-56/+134
| | | | | | | | | | | | | | | | | | | | 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.
* | Auto merge of #8660 - pcwalton:ipc-channel-errors, r=larsbergstrombors-servo2015-11-251-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | Update `ipc-channel` to pick up the improved error reporting. Intended to help diagnose intermittent failures. r? @jdm or @larsbergstrom (or whoever) <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8660) <!-- Reviewable:end -->