aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/script/size_of.rs
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to rustc 1.48.0-nightly (623fb90b5 2020-09-26)Simon Sapin2021-01-261-8/+8
|
* Make Node::style_and_layout_data be a DomRefCell<T>Anthony Ramine2020-05-191-7/+7
| | | | That way we can use borrow_mut_for_layout and borrow_mut.
* Make OpaqueLayoutAndStyleData just a bit less opaqueAnthony Ramine2020-04-041-7/+7
| | | | It now stores a NonNull<dyn Any>.
* Update rand to 0.7 (fixes #24448)Anthony Ramine2019-10-231-4/+4
|
* ISSUE-23995: lazily generate unique_id for nodeThomas Delacour2019-09-241-7/+7
|
* Make Node and Element rare_data an OptionFernando Jiménez Moreno2019-04-261-8/+7
|
* Update size of tests after *RareData changesFernando Jiménez Moreno2019-04-261-7/+8
|
* Update size of tests with shadow root sizeFernando Jiménez Moreno2019-04-261-7/+7
|
* Upgrade to rustc 1.36.0-nightly (e305df184 2019-04-24)Simon Sapin2019-04-251-8/+8
| | | | | | | | | | | | | | | | | This includes a `size_of` regression for a few DOM types, due to https://github.com/rust-lang/rust/pull/58623 which replaces the implementation of `HashMap` in the standard library to Hashbrown. Although `size_of<HashMap>` grows, it’s not obvious how total memory usage is going to be impacted: Hashbrown only has one `u8` instead of one `usize` of overhead per hash table bucket for storing (part of) a hash, and so might allocate less memory itself. Hashbrown also typically has better run time performance: https://github.com/rust-lang/hashbrown#performance Still, I’ve filed https://github.com/rust-lang/hashbrown/issues/69 about potentially reducing the `size_of<HashMap>` regression.
* Update MPL license to https (part 5)Jan Andre Ikenmeyer2018-11-271-1/+1
|
* Track custom element stateConnor Brewster2017-08-091-4/+4
|
* Auto merge of #17614 - cbrewster:custom_element_reactions, r=jdmbors-servo2017-07-171-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement custom element reactions <!-- Please describe your changes on the following line: --> Initial work for implementing custom element reactions: https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-reactions --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #17433 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/17614) <!-- Reviewable:end -->
| * Support custom element callback reactionsConnor Brewster2017-07-171-4/+4
| |
* | script: Move the layout_wrapper outside of script.Emilio Cobos Álvarez2017-07-151-5/+0
|/ | | | | | | | 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.
* Allow element prefix to be setConnor Brewster2017-06-231-4/+4
| | | | | Implements step 6.1.10 of https://dom.spec.whatwg.org/#concept-create-element
* Support `is` option when creating elementsConnor Brewster2017-06-231-4/+4
|
* Introduce NonZeroPtrMut and use it in servo_arc.Bobby Holley2017-06-061-4/+4
| | | | MozReview-Commit-ID: AAmeyjfyXeU
* Mutation Observer APISumit2017-05-151-7/+7
|
* Solving merge conficts related to the html5ever_atoms -> html5ever changeChristian Poveda2017-05-031-4/+4
|\
| * Bump the DOM element sizes.Bobby Holley2017-05-021-4/+4
| | | | | | | | | | This will go back down soonish when NonZero stablizes and we can use it in StyleArc, which I expect will be long before the memory overhead here matters.
* | Changed all prefixes from DOMString to the atomic Prefix from html5everChristian Poveda2017-05-031-4/+4
|/
* script: Update expected size of elements now we have bigger state flags.Emilio Cobos Álvarez2017-03-291-4/+4
|
* Update to rustc 1.17.0-nightly (8c72b7651 2017-03-11)Simon Sapin2017-03-111-8/+8
| | | | | This fixes the DOM node size regression introduced by a previous Rust update: https://github.com/servo/servo/issues/15704
* Update to rustc 1.17.0-nightly (413a975e3 2017-02-23)Simon Sapin2017-02-241-8/+8
| | | | Fix #15704
* Bug 1336646 - Apply selector flags during traversal. r=emilioBobby Holley2017-02-081-4/+4
|
* Remove generation, remove filter pop, and add size tests.Bobby Holley2016-12-221-0/+4
|
* Introduce a script::test module to expose the APIs needed for unit tests.Ms2ger2016-12-221-12/+3
|
* Use Arc<PropertyDeclarationBlock> everwhere it’s appropriate.Simon Sapin2016-08-311-4/+4
|
* Update Rust to 1.13.0-nightly (198713106 2016-08-26)Anthony Ramine2016-08-281-7/+7
|
* Compute tag_name a maximum of once per document ownerMitchell Hentges2016-08-031-4/+4
|
* Remove the wrapper::ServoThreadSafeLayoutNode re-export.Ms2ger2016-06-201-0/+2
|
* Update path in script_tests::size_of error messagesMatt Brubeck2016-03-291-2/+2
|
* Dirty elements whose selectors are affected by sibling changesMatt Brubeck2016-02-231-4/+4
| | | | | | | | | | | | | 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
* Abstract out Node::unique_id in its own structureAnthony Ramine2016-02-041-7/+7
| | | | An UnsafeCell is use to lazily create the Uuid.
* Separate style+layout and layout-specific wrapper functionality.Bobby Holley2015-12-291-7/+7
| | | | | | | | | | | 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.
* Properly propagate changes when range or trees are mutatedAnthony Ramine2015-12-251-7/+7
|
* reduce node.unique_id sizeAleksandr Likhanov2015-11-191-7/+7
| | | | | fix sizeof unittest update Cargo.lock
* Added versioning to DOM nodes.Alan Jeffrey2015-11-061-7/+7
| | | | | | | There is now an inclusive_descendants_version field of each node, which increases each time the node, or any of its descendants, is dirtied. This can be used for cache invalidation, by caching a version number and comparting the current version number against the cached version number.
* Bump the expected sizes for Element.Bobby Holley2015-10-161-4/+4
| | | | | | | | | After rebasing, this suddenly became a problem again, even though there's no actual size increase here (we're shrinking NodeFlags by 1 byte, and adding 1 byte of EventState). Moving the NodeFlags to the end of Node and the EventState bits to the beginning of Element doesn't seem to helper either. This is probably a padding issue that's worth investigating at some point, but given the level of churn in this code it doesn't seem worth it to fuss to much over this right now.
* Auto merge of #7611 - nox:cache-element-id, r=frewsxcvbors-servo2015-09-201-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | Cache the `id` attribute on Element Thanks to @asabil for the original work, I only rebased it. Fixes #6359 and #7040. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7611) <!-- Reviewable:end -->
| * Cache the `id` attribute on ElementAli Sabil2015-09-131-4/+4
| |
* | Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-1/+0
|/ | | | This merges import blocks that were reported by tidy as unmerged.
* Move EventTargetTypeId/NodeTypeId to DOMClassMichael Wu2015-09-121-8/+8
|
* Remove LayoutChan from LayoutDataWrapperMichael Wu2015-07-041-7/+7
|
* Move script crate unit tests into the unit_tests crate.Simon Sapin2015-04-081-0/+48