Simon Sapin
e7c53d4ca2
Use pointer casts instead of tramsutes to raw::TraitObject
...
Casting `*const T` to `*const U` with `U: Sized` is allowed even if `T: ?Sized`.
This safely extracts the data pointer out of a trait object,
without relying on the memory representation of trait objects.
2017-10-13 21:55:11 +02:00
Simon Sapin
11bd81e115
Remove usage of unstable feature box_patterns
2017-10-13 11:11:08 +02:00
Simon Sapin
e13ae77daf
Remove usage of unstable feature "raw"
2017-10-13 11:11:07 +02:00
Simon Sapin
4727b92754
Remove usage of unstable feature conservative_impl_trait in layout
2017-10-13 11:11:06 +02:00
Simon Sapin
4594b40238
Use wrappers in the nonzero crate so users don’t need unstable features
2017-10-13 11:11:05 +02:00
Simon Sapin
aa5761a5fb
Remove usage of unstable box syntax, except in the script crate
...
… because there’s a lot of it,
and script still uses any other unstable features anyway.
2017-10-12 12:10:56 +02:00
Michael Partheil
b07ebbae6b
Replace all uses of the style::stylearc alias with servo_arc.
...
The alias is left there temporarilly and will be removed completely in a later commit where
also components/style/gecko/generated/structs_{debug|release}.rs are re-generated (they still
use the old alias).
2017-07-19 09:29:05 +02:00
Emilio Cobos Álvarez
bf9369b29d
script: Move the layout_wrapper outside of script.
...
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.
2017-07-15 16:41:12 +02:00
Martin Robinson
e58e8ab42e
Upgrade to the latest version of WebRender
2017-07-13 07:44:08 +10:00
Alan Jeffrey
ef033b8362
Implemented paint worklet properties.
2017-07-11 17:28:56 -05:00
Simon Sapin
86293c3b39
Replace remaining usage of deprecated Range::step_by
...
… which is being removed in https://github.com/rust-lang/rust/pull/43012
2017-07-05 13:54:40 +02:00
Nathan Froyd
096cee8ebc
remove various things now that Rust 1.17 is required
...
std::ptr::eq and Arc::ptr_eq are now usuable, and we can replace a
panic!() with abort().
2017-06-23 10:39:41 -04:00
Simon Sapin
605ef8b7ec
Remove explicit dependencies on serde_derive
2017-06-16 13:58:21 +02:00
Xidorn Quan
c62935577a
Add separate computed Color value.
2017-06-08 12:59:26 +10:00
Emilio Cobos Álvarez
deaa935f5b
layout: Stop doing unsafe transmutes between refcell references.
...
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
2017-05-25 10:31:40 +02:00
Imanol Fernandez
593e89086f
Fix unsafe AtomicRefCell<PersistentLayoutData> transmute due to memory alignment differences
2017-05-12 12:48:13 +02:00
bors-servo
8b41c7c137
Auto merge of #16689 - servo:m5e, r=nox
...
Upgrade to html5ever 0.16
<!-- 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/16689 )
<!-- Reviewable:end -->
2017-05-03 08:42:41 -05:00
Bobby Holley
7b0679848b
Fix up script and layout.
2017-05-02 17:35:45 -07:00
Simon Sapin
6c518c89b9
Upgrade to html5ever 0.16
2017-05-02 19:24:28 +02:00
Fernando Jiménez Moreno
7426d902a3
Trigger reflow on document.elementsFromPoint
2017-03-02 10:44:38 +01:00
Anthony Ramine
63c4490e73
Kill the plugins crate and its clippy support
...
Sometimes clippy gets outdated by months, and its current support setup
means that each Servo component need to opt into it by depending on
the plugins crate manually, and not all components do that.
2017-02-21 11:50:36 +01:00
Ms2ger
14fe337866
Update rustc to 1.16.0-nightly (7821a9b99 2017-01-23).
2017-01-24 11:02:51 +01:00
Martin Robinson
44b24de60f
Only create scrolling overflow regions when necessary
...
Only create scroll roots for overflow regions when the overflow region
is actually larger than the container size. This prevents creating
scrolling roots for elements that do not have overflow scroll as a
side-effect of the way their height and width is defined. For example,
tables should never respect overflow:scroll since their height and
width should always be large enough to prevent overflow. This also
decreases the size and complexity of the display list in many other
circumstances.
As part of this change, transformed overflow calculation is moved from
display list construction to layout. This should mean that overflow is
handled more accurately earlier.
Fixes #14574 .
2017-01-17 09:47:43 -05:00
Simon Sapin
67aea3bba4
Upgrade to rustc 1.16.0-nightly (6f1ae663e 2017-01-06)
2017-01-06 17:43:31 +01:00
Bobby Holley
b9d99390ad
Switch to crates.io for atomic_refcell.
2017-01-03 18:14:27 -08:00
Alan Jeffrey
9be4fd56ce
Removed util.
2016-12-14 18:04:37 -06:00
Anthony Ramine
1d56087188
Update to Rust 1.15.0-nightly (1c448574b 2016-11-28)
2016-11-29 21:19:25 +01:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Emilio Cobos Álvarez
73917cce83
style: Use rayon instead of our custom work queue.
2016-11-14 21:24:19 +01:00
Shing Lyu
8bea421329
Migrated -Z trace-layout to serde_json
2016-11-07 15:54:07 +08:00
Ms2ger
81ee81cbb0
Remove the direct azure dependencies from gfx, layout and layout_thread.
...
This does not cover transitive dependencies through canvas_traits, though that
should not be too hard to solve either.
2016-11-04 12:14:42 +01:00
Simon Sapin
53b638c0e2
Update to string-cache 0.3
2016-11-03 16:23:05 +01:00
Anthony Ramine
c4f27e42b7
Remove #![feature(custom_derive)]
2016-11-03 10:14:21 +01:00
Simon Sapin
5bb4c6c884
Use heapsize_derive instead of heapsize_plugin
2016-11-03 01:10:32 +01:00
Xidorn Quan
09cbe3bce0
Make style context use parking_lot::RwLock
2016-11-02 10:10:11 +11:00
Bobby Holley
5442fbec3f
Hoist most styling functionality from TNode to TElement.
...
MozReview-Commit-ID: DZ8ZrsZIiAU
2016-10-29 13:45:40 -07:00
Florent FAYOLLE
9df00199c6
#13262 Add a unit test verifying that SpecificFragmentInfo size
2016-09-25 10:35:39 +02:00
Anthony Ramine
c66380d83c
Update Rust to 1.13.0-nightly (198713106 2016-08-26)
2016-08-28 13:45:03 +02:00
Anthony Ramine
a1af2cded8
Use impl DoubleEndedIterator for two flow_list iterators
2016-08-14 19:06:18 +02:00
Ravi Shankar
a04028eede
Prefer length and percentage for word spacing
2016-08-09 17:53:40 +05:30
Emilio Cobos Álvarez
0b67b218d0
style: Add a new Timer structure to the shared style context, and basic infrastructure for controlling animations.
2016-07-20 09:05:53 -07:00
Anthony Ramine
3041084176
Move util::linked_list to layout
2016-06-29 17:23:04 +02:00
Simon Sapin
f7f81e0ed0
Use our copy of RefCell for style data.
...
This allows removing `#![feature(as_unsafe_cell)]` in geckolib
and make progress towards #11815 .
2016-06-23 16:13:49 +02:00
Ms2ger
6528bee84f
Introduce a layout_thread crate; drop the dependency of layout on script.
2016-06-20 21:23:44 +02:00
Ms2ger
0c506cf1df
Remove the wrapper::ServoThreadSafeLayoutNode re-export.
2016-06-20 19:08:09 +02:00
Ms2ger
5c03dd8eb1
Introduce a script_layout_interface crate and move RestyleDamage to it.
2016-06-20 19:02:36 +02:00
bors-servo
0f1a921ba6
Auto merge of #10928 - servo:warnings, r=mbrubeck
...
Fix some warnings
<!-- 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/10928 )
<!-- Reviewable:end -->
2016-04-30 05:16:46 -07:00
Emilio Cobos Álvarez
2e05190e68
layout: Add test for size of ServoThreadSafeLayoutNode
2016-04-29 22:54:50 +02:00
Simon Sapin
756a34e93d
Fix some warnings
2016-04-29 19:14:46 +02:00
Zbynek Winkler
41c293293b
Remove references to unused crates.
...
The cleanup is based on info from using "-W unused-extern-crates".
2016-04-22 22:20:06 +02:00