aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a layout_thread crate; drop the dependency of layout on script.Ms2ger2016-06-201-1489/+0
|
* Move DISPLAY_PORT_SIZE_FACTOR to block.rs.Ms2ger2016-06-201-3/+0
|
* Move LayoutThreadData to query.rs.Ms2ger2016-06-201-49/+3
|
* Move CSSErrorReporter to script_layout_interface.Ms2ger2016-06-201-1/+1
|
* Move the remainder of layout_interface into script_layout_interface.Ms2ger2016-06-201-1/+1
|
* Remove the layout_wrapper re-exports from layout::wrapper.Ms2ger2016-06-201-1/+2
|
* Move LayoutRPC to script_layout_interface.Ms2ger2016-06-201-1/+1
|
* Move LayoutNode and related traits to script_layout_interface.Ms2ger2016-06-201-1/+2
|
* Introduce a LayoutNodeLayoutData trait for methods to stay in layout.Ms2ger2016-06-201-1/+1
|
* Introduce PartialStyleAndLayoutData.Ms2ger2016-06-201-2/+3
|
* Move OpaqueStyleAndLayoutData to script_layout_interface.Ms2ger2016-06-201-1/+1
|
* Introduce a script_layout_interface crate and move RestyleDamage to it.Ms2ger2016-06-201-2/+2
|
* script: When using WebRender, keep the DOM-side scroll positions forPatrick Walton2016-06-101-10/+28
| | | | | | | elements with `overflow: scroll` up to date, and take them into account when doing hit testing. Closes #11648.
* Don't load all font faces sourcesAnthony Ramine2016-06-101-12/+10
| | | | We stop at the first one we manage to load.
* Auto merge of #11656 - Ms2ger:reduce-dom-exposure, r=noxbors-servo2016-06-071-1/+1
|\ | | | | | | | | | | | | | | Reduce the amount of dom code used outside the script crate. <!-- 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/11656) <!-- Reviewable:end -->
| * Make layout only depend on script::layout_interface.Ms2ger2016-06-071-1/+1
| |
* | Auto merge of #11565 - nox:fonts, r=metajackbors-servo2016-06-071-9/+13
|\ \ | |/ |/| | | | | | | | | | | Introduce FontFaceRules::effective_sources() <!-- 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/11565) <!-- Reviewable:end -->
| * Introduce FontFaceRules::effective_sources()Anthony Ramine2016-06-061-2/+2
| | | | | | | | This avoids downloading fonts in formats we don't support.
| * Do not create a channel for each source in add_font_face_rulesAnthony Ramine2016-06-031-9/+13
| |
* | Remove the layout shutdown channel.Ms2ger2016-06-041-3/+0
|/ | | | Nobody is listening.
* script: Keep the DOM-side viewport up to date when scrolling happens inPatrick Walton2016-05-311-18/+38
| | | | | | | | | | | | | | | WebRender. This happens asynchronously, just as it does in non-WebRender mode. This functionality is a prerequisite for doing proper display-list-based hit testing in WebRender, since it moves the scroll offsets into Servo (and, specifically, into the script thread, enabling iframe event forwarding) instead of keeping them private to WebRender. Requires servo/webrender_traits#55 and servo/webrender#277. Partially addresses #11108.
* Remove SharedLayoutContext::url.Ms2ger2016-05-311-7/+0
| | | | It is unused.
* Remove the ConvertPipelineIdToWebRender trait.Ms2ger2016-05-281-1/+1
|
* Report use statements that use {} with only one entryCullen Rhodes2016-05-271-5/+5
|
* Auto merge of #11408 - Ms2ger:layoutthread-url, r=Manishearthbors-servo2016-05-261-13/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Take LayoutThread::url out of its RefCell. 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 --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [x] These changes do not require tests because refactoring 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11408) <!-- Reviewable:end -->
| * Take LayoutThread::url out of its RefCell.Ms2ger2016-05-251-13/+12
| |
* | Use associated types to improve LayoutThreadFactory and ScriptThreadFactory.Ms2ger2016-05-241-6/+7
|/
* Auto merge of #11294 - kilobtye:fix-resize, r=mbrubeckbors-servo2016-05-201-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compute overflow when viewport size changed 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 --faster` does not report any errors - [X] These changes fix #11120 (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11294) <!-- Reviewable:end -->
| * Compute overflow when viewport size changedkilobtye2016-05-201-3/+3
| |
* | Remove pointless phantom arguments to ScriptThreadFactory and ↵Ms2ger2016-05-201-19/+17
|/ | | | LayoutThreadFactory.
* Remove ConstellationChan.Ms2ger2016-05-191-11/+10
| | | | | | It's a pointless abstraction that propagates the obsolete chan terminology, swaps the order in which the sender and receiver are returned, and hides a source of panics.
* Removed unused importsPer Lundberg2016-05-151-2/+2
| | | | This fixes #11185.
* move trait ConvertPipelineIdToWebRender to a better placeKosov Eugene2016-05-091-2/+2
|
* style: Add infrastructure for non-eagerly-cascaded pseudo-elementsEmilio Cobos Álvarez2016-04-291-9/+8
| | | | This commit also removes StylistWrapper and uses Arc::get_mut instead.
* Upgrade to rust-url 1.0 and hyper 0.9Simon Sapin2016-04-231-4/+3
|
* Auto merge of #9968 - izgzhen:scroll, r=asajeffreybors-servo2016-04-201-3/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement scroll, scrollLeft, scrollTop and friends, addressing issue #9650 This is a work in progress to solve https://github.com/servo/servo/issues/9650. Thanks a lot for helping the review. - [x] scroll - [x] scrollTo - [x] scrollBy - [x] scrollTop (setter and getter) - [x] scrollLeft (setter and getter) The setters will be implemented in another PR after this is merged. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9968) <!-- Reviewable:end -->
| * Implement ScrollTop and ScrollLeft getters:Zhen Zhang2016-04-191-3/+25
| | | | | | | | | | | | | | | | Add new compositor message to get scroll_offset; Add new layout query for computed value of overflow-x/y; Implement layer_id method for ThreadSafeLayoutNode; Add new layout query for layer_id; Implement script interface for getting scrollTop and scrollLeft, as well as relavant helper functions.
* | layout: Implement support for `overflow: scroll` in WebRender.Patrick Walton2016-04-191-1/+1
| | | | | | | | | | | | Includes a WebRender upgrade. Improves Twitter.
* | Added a dedicated panic channel.Alan Jeffrey2016-04-191-6/+6
|/
* Updated euclid to version 0.6.5Peter2016-04-171-3/+3
| | | | And updated existing usages of Matrix4 to use Matrix4D<T>
* Added panic message to failures.Alan Jeffrey2016-04-131-1/+1
|
* Rename imm_child_iter() and child_iter(). Fixes #10286malayaleecoder2016-04-091-1/+1
|
* Renamed TComputedValues to ComputedValuesPer Lundberg2016-03-291-1/+1
| | | | This is a followup to #10210, and a continuation of #10185.
* Auto merge of #8641 - notriddle:no_headless, r=glennwbors-servo2016-03-291-3/+1
|\ | | | | | | | | | | | | | | | | | | No more headless compositor. Just the normal one. Fixes #8573 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8641) <!-- Reviewable:end -->
| * No more headless compositor. Just the normal one.Michael Howell2016-03-241-3/+1
| | | | | | | | | | | | | | | | | | This changes headless operation to strictly be a runtime option, rather than a compile-time one. Note that the old headless version still relied on a display server to support WebGL, while it now requires one all the time. Fixes #8573
* | layout: Rewrite the block formatting context/float inline-sizePatrick Walton2016-03-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | speculation code. The old code tried to do the speculation as a single bottom-up pass after intrinsic inline-size calculation, which was unable to handle cases like this: <div> <div style="float: left">Foo</div> </div> <div> <div style="overflow: hidden">Bar</div> </div> No single bottom-up pass could possibly handle this case, because the inline-size of the float flowing out of the "Foo" block could never make it down to the "Bar" block, where it is needed for speculation. On the pages I tried, this regresses layout performance by 1%-2%. I first noticed this breaking some pages, like the Google SERPs, several months ago.
* | Fix forced repaint on image loadMatt Brubeck2016-03-251-0/+5
| | | | | | | | | | | | After #10021, `LayoutThread::repaint` no longer forced a repaint because of the `restyle_damage` check. This patch adds the correct restyle damage and fixes #10163.
* | Auto merge of #10155 - bholley:generalize_style_structs, r=SimonSapinbors-servo2016-03-251-0/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Generalize the style structs This allows geckolib to pass gecko style structs and have the style system write to them directly, provided we implement all the traits. <!-- 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/10155) <!-- Reviewable:end -->
| * Parameterize the rest of the style system on TNode.Bobby Holley2016-03-241-0/+1
| |
* | canvas: Remove all the canvas layerization infrastructureEmilio Cobos Álvarez2016-03-231-16/+0
|/ | | | | | | It was never complete, and with webrender as a backend the way we render WebGL contexts has changed a bit. This should remove quite a bit of overhead.