aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo_arc
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix license metadata for servo_arc crateMatt Brubeck2018-02-211-2/+2
| | | | | The header in lib.rs states that this library is MIT / Apache-2.0, since it is forked from the Rust standard library.
* Change debug assertions to specific onesjanczer2018-02-071-1/+1
|
* Use specific negative assertion for ServoArcCYBAI2018-01-261-1/+1
|
* Use specific assertion for ServoArcCYBAI2018-01-261-2/+2
|
* Add some FIXME comments about using ptr::NonNullSimon Sapin2018-01-221-0/+1
|
* Prepare servo_arc for publication on crates.ioSimon Sapin2018-01-122-3/+4
|
* servo_arc: Add some #[inline] and repr(C) annotations.Emilio Cobos Álvarez2017-12-011-3/+30
| | | | | inline is probably unnecessary, but anyway... We rely on those being repr(C), so they rather have some.
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-182-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-2/+3
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* servo_arc: Make Arc do a pointer equality check in eq and ne first.Cameron McCormack2017-10-111-2/+2
|
* style: Share user agent cascade data across documents.Emilio Cobos Álvarez2017-09-151-1/+1
| | | | | MozReview-Commit-ID: KcyuTHD0bt9 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* style: Add a TLS-based style struct caching mechanism.Emilio Cobos Álvarez2017-09-141-0/+6
|
* Measure selectors.Nicholas Nethercote2017-09-071-0/+6
| | | | | | | | | This patch adds measurement of Selectors within StyleRule. This requires exposing the pointer within ThinArc. The patch also adds measurement of the several CssRule variants, in order to measure nested CssRules (and PropertyDeclarationBlocks) within them: DocumentRule, MediaRule, PageRule, SupportsRule.
* order derivable traits listsClément DAVID2017-08-231-1/+1
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* stylo: Measure Elements and ComputedValues.Nicholas Nethercote2017-08-031-0/+8
| | | | | | | | | | | | The patch provides FFI access to Gecko's SeenPtrs type from Rust, in order to record what has already been measured when measuring Arcs. (The SeenPtrs must be initialized on the Gecko side because the same table is reused for measuring all Elements within a window, because Elements can share ComputedValues.) I have confirmed with DMD that this is working correctly. The patch also introduces MallocSizeOfRepeats, which is like MallocSizeOf but takes a SizeOfState, which holds a SeenPtrs table.
* stylo: Remove usage of ServoComputedValues from binding functionsManish Goregaokar2017-07-211-0/+6
|
* stylo: Make Servo Arc types use ptr to T instead of ptr to ArcInner<T>Manish Goregaokar2017-07-171-1/+103
|
* stylo: Replace real ComputedValues with bindgenned ComputedValues2Manish Goregaokar2017-07-171-0/+20
|
* stylo: Add RawOffsetArc<T>Manish Goregaokar2017-07-171-0/+91
|
* Auto merge of #17701 - bholley:reuse_allocations, r=emiliobors-servo2017-07-142-2/+8
| | | | | | | | | | | reuse the bloom filter and style sharing cache across traversals https://bugzilla.mozilla.org/show_bug.cgi?id=1380198 <!-- 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/17701) <!-- Reviewable:end -->
* Revert "Auto merge of #17701 - bholley:reuse_allocations, r=emilio"Emilio Cobos Álvarez2017-07-132-8/+2
| | | | | | | | This reverts commit ebfc8f585834948f9b7564ffe382a6e266edf738, reversing changes made to 5585ff2c440dc27c8e98e834c9c0e9d956581b8e. Animation code can reenter and create a new TLS context from the traversal SequentialTask, so this won't work as written.
* Store the bloom filter in TLS and reuse it across traversals.Bobby Holley2017-07-121-0/+4
| | | | MozReview-Commit-ID: EbzDehr2Y2L
* Add owning_ref back as a style dep, and update parking_lot.Bobby Holley2017-07-122-2/+4
|
* remove various things now that Rust 1.17 is requiredNathan Froyd2017-06-231-7/+2
| | | | | std::ptr::eq and Arc::ptr_eq are now usuable, and we can replace a panic!() with abort().
* Fix over-alignment assert crash on Android.Imanol Fernandez2017-06-171-6/+18
|
* Bump serde to 1.0Bastien Orivel2017-06-162-3/+3
|
* Introduce NonZeroPtrMut and use it in servo_arc.Bobby Holley2017-06-061-23/+69
| | | | MozReview-Commit-ID: AAmeyjfyXeU
* Make a bunch of types 'static.Bobby Holley2017-06-061-9/+9
| | | | | | The reasoning for this is explained in a comment in the next patch. MozReview-Commit-ID: FQgDY77mg3B
* Address followup review comments.Bobby Holley2017-06-061-16/+16
| | | | MozReview-Commit-ID: AghLMEcbUVC
* Implement ThinArc.Bobby Holley2017-06-052-0/+165
| | | | MozReview-Commit-ID: LB3bs9ed2WC
* Add support for dynamically-sized types in servo_arc.Bobby Holley2017-06-051-0/+97
| | | | MozReview-Commit-ID: H15cG5RBtZH
* Move stylearc into a separate crate.Bobby Holley2017-06-052-0/+433
MozReview-Commit-ID: C3btN8Jw9sJ