aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* fixup! Measure layout queries blocked by ongoing layoutpylbrecht2019-04-171-1/+1
|
* Measure layout queries blocked by ongoing layoutPhilipp Albrecht2019-04-131-3/+14
|
* #8539 Config preferences backend restructurePeter Hall2019-03-201-6/+2
|
* Auto merge of #22396 - jdm:no-spam-iframe-size, r=asajeffreybors-servo2019-01-141-5/+41
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce unnecessary iframe size messages This should be an improvement on pages that include iframes, since we currently run two layout jobs for every display-oriented layout request. When building the display list, we send a message to the constellation that includes the sizes of all iframes present, and the constellation sends resize messages to the script thread. This results in a mouse event on the outer page causing all frames to be re-laid out even if no changes occurred to the iframe sizes, which is ridiculous. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22394 - [x] These changes do not require tests because there is no way to test this internal detail. <!-- 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/22396) <!-- Reviewable:end -->
| * Suppress iframe size messages from layout that include unchanged sizes.Josh Matthews2019-01-141-5/+41
| |
* | Remove LayoutDamageComputationAnthony Ramine2019-01-141-1/+1
| |
* | Remove BlockFlowDisplayListBuildingAnthony Ramine2019-01-141-1/+1
| | | | | | | | Replaced by inherent methods on BlockFlow, the only implementor of that trait.
* | Rename NewLayoutThreadInfo to LayoutThreadInitAnthony Ramine2019-01-141-2/+2
|/ | | | Following the convention of our other init structs.
* Make a bunch of layout queries morally saferAnthony Ramine2019-01-091-12/+2
|
* Added comment about layout thread exit workflow(Specifically:when will a ↵adit2019-01-081-0/+1
| | | | | | | | | | | Exit message be received ) Added comment about layout thread exit workflow Comments Regarding clarify layout-thread exit workflow (Specifically:when will a Exit message be received ) Added comment about layout thread exit workflow
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+1
|
* style: Make Servo use a single thread-pool for layout-related tasks per-process.Emilio Cobos Álvarez2018-12-231-42/+25
| | | | | | Instead of per-document. This also allows to reuse this thread-pool if needed for other stuff, like parallel CSS parsing (#22478), and to share more code with Gecko, which is always nice.
* unregister components while exitingcsmoe2018-12-171-0/+1
|
* Cancel animations that affect nodes that do not participate in layout.Josh Matthews2018-12-101-4/+12
|
* introduce a background-hang-monitor:Gregory Terzian2018-11-261-2/+55
| | | | | Mac-Os implementation of a thread sampler, Linux and Windows skeleton implementations.
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-181-9/+11
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-74/+39
|
* Reorder importsPyfisch2018-11-061-14/+22
|
* Format remaining filesPyfisch2018-11-061-5/+7
|
* `cargo fix --edition`Simon Sapin2018-11-061-2/+2
|
* Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-22/+7
| | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* add servo_channel crateGregory Terzian2018-09-121-0/+2
|
* Rustfmt layout_thread cratePyfisch2018-09-051-562/+710
|
* Fix Servo build.Emilio Cobos Álvarez2018-08-081-7/+10
|
* layout: script: Fix build.Emilio Cobos Álvarez2018-06-231-3/+3
|
* layout_thread: Don't parse internal properties in paint registration code.Emilio Cobos Álvarez2018-06-021-5/+7
|
* Auto merge of #20420 - pyfisch:corner-clipping, r=emiliobors-servo2018-04-291-3/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move DL items from gfx to layout and implement corner clipping Implement corner clipping. Remove PixelFormat from WebrenderImageInfo. Use WebRender text shadow. Remove MallocSizeOf and Deserialize for DL items. Closes #19649, closes #19680, closes #19802 <!-- Please describe your changes on the following line: --> --- <!-- 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 #__ (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/20420) <!-- Reviewable:end -->
| * Move DL items from gfx to layoutPyfisch2018-04-221-3/+2
| | | | | | | | | | | | | | | | | | Implement corner clipping. Remove PixelFormat from WebrenderImageInfo. Use WebRender text shadow. Remove MallocSizeOf and Deserialize for DL items. Closes #19649, #19680, #19802
* | delegate resource reading to embedderPaul Rouget2018-04-271-9/+16
| |
* | fix time measurecsmoe2018-03-251-9/+20
| |
* | introduce layout query timestampcsmoe2018-03-181-1/+19
| |
* | extract querymsg from ReflowGoalmoe2018-03-171-104/+108
|/
* Auto merge of #20058 - Eijebong:rayon1.0, r=jdmbors-servo2018-02-271-5/+6
|\ | | | | | | | | | | | | | | Bump rayon to 1.0 <!-- 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/20058) <!-- Reviewable:end -->
| * Bump rayon to 1.0Bastien Orivel2018-02-241-5/+6
| |
* | Rebase and fix innerTextPyfisch2018-02-241-1/+1
| |
* | Introduce a dedicated data structure for text queriesPyfisch2018-02-241-5/+6
|/ | | | | | Add an IndexableText structure for text queries. Instead of linear search for a node this now uses a HashMap. Remove the now irrelevant fields from TextDisplayItem.
* Implement element.innerText getterFernando Jiménez Moreno2018-02-131-4/+12
|
* Update WR (various transform, hit-testing related fixes).Glenn Watson2018-02-081-1/+1
|
* Use LayoutRects for bounds and overflow in display listsPyfisch2018-02-071-2/+3
| | | | | Convert text runs to glyphs in display list builder. Remove ComplexClippingRegion and use the WebRender type.
* Update WebRenderMartin Robinson2018-02-061-18/+15
| | | | | | | | | This allows servo to use the ExternalScrollId API from WebRender fixing some issues related to duplicate scroll root ids. Fixes #17176. Fixes #19287. Fixes #19648.
* Auto merge of #19881 - jonleighton:issue-19811, r=emiliobors-servo2018-01-281-16/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add layout RPC query for getting an element's style This enables us to implement Element::has_css_layout_box() in a more direct way, and also enables us to remove some of the existing more specific queries. Fixes #19811. r? @emilio <!-- 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/19881) <!-- Reviewable:end -->
| * Add layout RPC query for getting an element's styleJon Leighton2018-01-281-16/+8
| | | | | | | | | | | | | | | | This enables us to implement Element::has_css_layout_box() in a more direct way, and also enables us to remove some of the existing more specific queries. Fixes #19811.
* | style: Look at the snapshots when invalidating due to stylesheet changes.Emilio Cobos Álvarez2018-01-271-2/+2
|/ | | | | | | | | Otherwise removal of stylesheets may get out of sync with other DOM changes, and we may fail to invalidate the style of the affected elements. Bug: 1432850 Reviewed-by: bz MozReview-Commit-ID: DrMTgLzQcnk
* style: Derive debug for CascadeInputs.Emilio Cobos Álvarez2018-01-231-10/+15
| | | | It no longer has anything than rules.
* Replace NonZero<*{const,mut} _> with std::ptr::NonNullSimon Sapin2018-01-221-1/+0
|
* Update WR (minimal use of new transaction API).Glenn Watson2018-01-191-7/+8
|
* Introduce MaxRect traitPyfisch2018-01-171-2/+2
| | | | | It is implemented for LayoutRect and Rect<Au>. Replaces the max_rect() function from servo_geometry.
* Decoupled gfx and metricsGeorg Streich2018-01-151-1/+1
|
* Use the new WebRender conversion functions.Pyfisch2018-01-071-4/+9
| | | | Remove the old ones.