Nicolas Silva
239f2da9d9
style: Update to euclid 0.20.
...
Differential Revision: https://phabricator.services.mozilla.com/D38530
2019-07-23 22:54:08 +02:00
Simon Sapin
1d38bc0419
Fix some new warnings
2019-06-22 14:59:09 +02:00
Bobby Holley
af1bbd7b06
style: Derive more.
...
Differential Revision: https://phabricator.services.mozilla.com/D17029
2019-01-29 02:39:13 +01:00
Simon Sapin
be69f9c3e6
Rustfmt has changed its default style :/
2018-12-28 13:17:47 +01:00
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Bastien Orivel
9a7eeb349a
Update crossbeam-channel to 0.3
2018-11-18 19:33:19 +01:00
Simon Sapin
b1822a39fa
cargo fix --edition --features gecko
2018-11-10 17:47:28 +01:00
Simon Sapin
a15d33a10e
cargo fix --edition
2018-11-10 17:47:28 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Simon Sapin
2a996fbc8f
Replace mpsc with crossbeam/servo channel, update ipc-channel
...
Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
2018-09-12 13:33:32 +08:00
Emilio Cobos Álvarez
6c5456b4b6
Appease tidy.
2018-08-08 01:34:35 +02:00
Nicholas Nethercote
fc9df0bcf3
style: Convert FnvHash{Set,Map} instances to FxHash{Set,Map}.
...
Bug: 1477628
Reviewed-by: heycam
2018-08-08 01:34:35 +02:00
Bobby Holley
c99bcdd4b8
Run rustfmt on selectors, servo_arc, and style.
...
This was generated with:
./mach cargo fmt --package selectors &&
./mach cargo fmt --package servo_arc &&
./mach cargo fmt --package style
Using rustfmt 0.4.1-nightly (a4462d1 2018-03-26)
2018-04-10 17:35:15 -07:00
Xidorn Quan
d700fa16a1
Split TraversalStatistics into two parts.
2018-03-15 11:57:48 +11:00
Emilio Cobos Álvarez
13f61a6e5f
style: Indent properly a couple more functions.
2018-02-24 23:23:16 +01:00
Emilio Cobos Álvarez
e77dd773d8
style: Other miscellaneous cleanup.
2018-02-24 22:45:45 +01:00
Hiroyuki Ikezoe
6bba9d4dab
Add a new sequential task flag for display propery changes from 'none'
...
Unlike CSS animations/transitions, script animations keep alive on display:none
elements, so once the display property was changed to others in normal
styling, we need to do styling for the script animations in the second
animation traversal. Otherwise, the styling for the script animations will
be deferred to the next frame.
2018-02-22 06:00:07 +09:00
janczer
661d234c3c
Change debug assertions to specific ones
2018-02-07 09:21:24 +01:00
Emilio Cobos Álvarez
104f5c2553
style: Derive debug for CascadeInputs.
...
It no longer has anything than rules.
2018-01-23 00:57:54 +01:00
Manish Goregaokar
337e5288c2
Add weighted telemetry probes for parallel restyles
2017-12-12 10:13:23 -06:00
bors-servo
07bd84ecc8
Auto merge of #19510 - servo:heapsize, r=nox
...
Update some dependencies, remove heapsize from the build
<!-- 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/19510 )
<!-- Reviewable:end -->
2017-12-08 07:49:54 -06:00
Simon Sapin
e17697fb0e
Update euclid, azure, skia, offscreen_gl_context, plane-split, webrender
2017-12-08 14:32:28 +01:00
Matt Brubeck
3e34c0295e
Defend against bugs in SelectorFlagsMap
...
* Make `SelectorFlagsMap::apply_flags` private so it's easier to ensure
it is called from the correct thread.
* Clear the cache and the map at the same time; otherwise it leaves
`SelectorFlagsMap` in an inconsistent state.
2017-12-07 16:45:04 -08:00
Matt Brubeck
1f22041f5f
Improve LRU cache behavior in SelectorFlagsMap
...
This code used to insert duplicate entries to avoid expensive shuffling
of the LRU cache. With uluru this is no longer necessary, because
reordering the cache is cheap.
Now it uses the `LRUCache::find` method from uluru 0.2 to update entries
in-place. This should improve the hit rate, because it eliminates
unnecessary evictions.
2017-12-07 10:05:38 -08:00
Matt Brubeck
99c2db0549
Update to uluru 0.2 and arrayvec 0.4
2017-12-07 10:05:38 -08:00
bors-servo
6938b4f3eb
Auto merge of #19230 - emilio:lru-cache, r=nox
...
style: Move lru_cache to its own crate.
One less crate pointlessly in components/.
<!-- 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/19230 )
<!-- Reviewable:end -->
2017-11-15 22:40:06 -06:00
Emilio Cobos Álvarez
47b02658ec
style: Move lru_cache to its own crate.
...
One less crate pointlessly in components/.
2017-11-15 16:18:11 +01:00
bors-servo
40adc3fd88
Auto merge of #19199 - emilio:no-unused-unsafe, r=nox
...
style: Stop allowing unused_unsafe.
<!-- 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/19199 )
<!-- Reviewable:end -->
2017-11-15 08:22:00 -06:00
Emilio Cobos Álvarez
69ddb9501b
style: Remove some uses of unused unsafe.
2017-11-15 13:26:24 +01:00
Emilio Cobos Álvarez
6704122927
style: Get rid of CurrentElementInfo.
...
It's out-of-band data I never liked, and the code has changed enough from when
it was introduced, that now all of the information it stores can be local.
2017-11-10 17:03:01 +01:00
Bastien Orivel
29b4eec141
Bump bitflags to 1.0 in every servo crate
2017-10-30 23:36:06 +01:00
Manish Goregaokar
b118ba72d0
Revert "Diagnostic map semantics."
...
This reverts commit f5c5be00a7
.
2017-10-23 13:51:08 -07:00
Gecko Backout
11c64178d8
Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest 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
2017-10-19 21:26:51 +00:00
Bastien Orivel
e8e2d0a4b2
Update bitflags to 1.0 in every servo crate
...
It still needs dependencies update to remove all the other bitflags
versions.
2017-10-19 15:01:17 +02:00
Bobby Holley
f5c5be00a7
Diagnostic map semantics.
...
MozReview-Commit-ID: C0a5g6xMPY0
2017-10-07 12:54:15 -07:00
Emilio Cobos Álvarez
ab8dcf0a18
style: Rename get_visited_style to just visited_style.
2017-10-01 13:27:16 +02:00
Martin Robinson
0380431157
Combine ReflowGoal and ReflowQueryType
...
This simplifies the logic in the layout_thread and makes it clearer
which types of reflows generate display lists and cause display updates.
2017-09-30 16:06:48 +02:00
Bobby Holley
438740b912
Implement an nth-index cache.
...
MozReview-Commit-ID: Ee0um3QXkxl
2017-09-21 15:25:38 -07:00
Bobby Holley
48466bf876
Introduce an NthIndexCache type and pipe it from ThreadLocalStyleContext to MatchingContext.
...
Some future refactoring here to pass fewer things as parameters would be nice.
2017-09-20 23:22:38 -07:00
Bobby Holley
13a3cf27a8
LRUCache::new -> LRUCache::default.
...
MozReview-Commit-ID: KouOaYTluRx
2017-09-20 23:22:27 -07:00
Bobby Holley
8b6c5988b5
Hoist the LRU cache into its own crate to share it with selectors.
2017-09-20 23:22:20 -07:00
Matt Brubeck
286888009f
Make LRUCache use a linked list to reduce memmoves.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1398957
2017-09-14 11:33:02 -07:00
Emilio Cobos Álvarez
c34c92e904
style: Add a TLS-based style struct caching mechanism.
2017-09-14 17:13:39 +08:00
Bobby Holley
1c9b39a8e8
Do a second pass on the sharing cache to reuse style by rule node identity.
...
MozReview-Commit-ID: H67j3Sbt3gr
2017-09-13 22:06:39 -07:00
Bobby Holley
db67cd1759
Shorten the naming around the style sharing cache.
...
MozReview-Commit-ID: EcVQDLoxwFP
2017-09-11 22:39:31 -07:00
Bobby Holley
b66111c428
Fix up stack limit sanity assertions.
...
MozReview-Commit-ID: ILblsins91P
2017-08-25 18:39:25 -07:00
Bobby Holley
be67bb87d4
Revert rayon stack limits until we sort out the crashtest bustage.
2017-08-25 12:32:24 -07:00
Bobby Holley
707ab455bb
Eliminate the sequential/traversal parallel distinction in favor of a unified adaptive driver.
...
MozReview-Commit-ID: ADVTNJntzmp
2017-08-25 10:00:27 -07:00
bors-servo
7fa6e35583
Auto merge of #18231 - julian-seward1:master, r=bholley
...
Bug 1376883 - stylo: Drop thread pool stack size to 100k. r=bholley.
<!-- Please describe your changes on the following line: -->
Bug 1376883 - stylo: Drop thread pool stack size to 100k. r=bholley.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
<!-- Either: -->
- [ ] 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/18231 )
<!-- Reviewable:end -->
2017-08-25 10:14:23 -05:00
Julian Seward
8b15347217
stylo: Drop thread pool stack size to 100K.
...
Reviewed in bug 1376883 by bholley.
2017-08-25 15:36:21 +02:00