aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/layout_interface.rs
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-081-204/+0
|
* Added a fast no-message RPC interface to the layout task.Clark Gaebel2014-09-041-11/+14
|
* Upgrade Rust.Jack Moffitt2014-08-081-1/+1
|
* Decouple compositing and script crates.Josh Matthews2014-08-081-2/+29
|
* Upgrade Rust.Jack Moffitt2014-08-021-3/+3
|
* Upgrade to latest Rust.Manish Goregaokar2014-06-271-2/+2
|
* Separate "desktop" and "mobile" zoom calculations.Matt Brubeck2014-06-201-3/+3
| | | | | | | | This ensures that the layout viewport responds to each type of zoom correctly, and lays the ground for CSS Media Queries and CSS Device Adaption. Until we have proper touch support, mobile-style "pinch" zoom can be simulated by holding Ctrl while scrolling with a mousewheel or trackpad gesture.
* Outside of compositor, store window size in CSS pxMatt Brubeck2014-06-091-3/+3
| | | | | | | | | | This fixes an issue where the CSS viewport was too large on high-DPI displays because it was set to the window size in device pixels, instead of px. This patch ensures that the window size is converted from device pixels to px before being passed to script/layout code. The Window trait now exposes the window size in both device pixels and density-independent screen coordinates, with clearer method names.
* "JS<T>::from_raw" should accept "*T" instead of "*mut T"Tetsuharu OHZEKI2014-05-311-1/+1
|
* Update Rust.Ms2ger2014-05-221-1/+1
|
* Fix some unused_mut/unused_result warningsManish Goregaokar2014-05-051-2/+1
|
* Make get_content_boxes return Vec.Ms2ger2014-04-281-1/+1
|
* Make get_nodes_under_mouse return Vec.Ms2ger2014-04-281-1/+1
|
* This batch of changes upgrades Servo to work with the Rust upgrade as ofLars Bergstrom2014-04-271-20/+21
| | | | | | April 10, 2014. The main changes are to privacy, to work around the issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the various API changes strewn throughout the libraries.
* Add transparent Traceable and Untraceable types to aid proper rooting ↵Josh Matthews2014-04-171-3/+17
| | | | practices, and replace ad-hoc Untraceable structs with empty Encodable implementations.
* Remove trailing whitespace.Ms2ger2014-04-071-1/+1
|
* Upgrade rust.Ms2ger2014-04-041-12/+12
|
* Rust upgradesLars Bergstrom2014-03-181-3/+3
|
* Implement JSManaged for DOM objects.Josh Matthews2014-02-241-7/+11
|
* This is implement Hover Event. If over element, currently full reflow. after ↵HyunJune Kim2014-02-101-0/+2
| | | | PR, will make partial reflow.
* script: Stop trusting pointers to DOM nodes that layout provides.Patrick Walton2014-01-141-2/+7
| | | | | | | Pointers to DOM nodes from layout could go stale if incremental reflow does not correctly destroy dead nodes. Therefore, we ask the JavaScript garbage collector to verify that each DOM node is indeed a valid pointer before calling event handlers on it, and fail otherwise.
* Upgrade to latest Rust.Jack Moffitt2014-01-121-2/+4
|
* script: Eliminate the phantom type in favor of just whitelisting methodsPatrick Walton2013-12-171-7/+7
| | | | | | | that layout can safely call. This is simpler. Currently, the set of methods is not safe, but I plan to lock it down more soon.
* Reflow with full style damage when content changesKeegan McAllister2013-12-091-0/+7
| | | | Fixes #664.
* Refactor DocumentDamageLevel::add and add testKeegan McAllister2013-12-091-9/+18
|
* Rewrite flow construction to be incrementalizable and parallelizable.Patrick Walton2013-11-181-7/+19
| | | | | | | | | | | | This replaces flow construction with a strict bottom-up tree traversal, allowing for parallelism. Each step of the traversal creates a flow or a `ConstructionItem`, similar to how Gecko works. {ib} splits are handled by not creating `InlineFlow`s until the containing block is reached. This should be able to be incrementalized by storing the `Flow` from layout to layout, and performing fixups during flow construction and/or wiping containing blocks in a previous pass.
* Use the new style systemSeo Sanghyeon2013-10-231-1/+1
| | | | | | | | | | | | | Credits to: Deokjin Kim Ilyong Cho Jaeman Park Junyoung Cho Ryan Choi Sangeun Kim Yongjin Kim Youngmin Yoo Youngsoo Son
* Move the gfx::geometry module to servo_util::geometry.Simon Sapin2013-10-161-1/+1
| | | | | This is part of #1006, in order to use Au from the script crate without introducing a circular crate dependency.
* deactive profiler when not in use; use newtype structs for task chansTim Kuehn2013-09-201-10/+2
|
* Make all DOM manipulation wait until it's safe to do so (ie. all reflows for ↵Josh Matthews2013-09-161-0/+2
| | | | the page have completed). Fix a race where a newly-initiated reflow would be considered complete when receiving the completion notice for the previous reflow.
* Make querying layout for content boxes an infallible operation.Josh Matthews2013-09-041-2/+2
|
* Update Rust version againKeegan McAllister2013-08-151-1/+1
| | | | This gets us the new runtime.
* Library changesKeegan McAllister2013-08-151-1/+1
|
* structural changes to support IframesTim Kuehn2013-07-291-5/+1
|
* add pipeline.rs, modularized pipelines communicating with constellationTim Kuehn2013-07-011-16/+7
|
* Update for language changesBrian Anderson2013-06-261-2/+2
|
* decouple script from compositorTim Kuehn2013-06-141-3/+16
| | | | | | | communicate via layout refactor channel wrappers from *Task --> *Chan fix merge fallout
* Refactor document damage to distinguish it from layout/style damage.Patrick Walton2013-06-041-20/+26
| | | | Also, standardize on the name "reflow" instead of "relayout" or "build".
* Stop rendering when script queries layoutPatrick Walton2013-06-041-0/+11
|
* Basic hit testing functionalityPatrick Walton2013-05-301-1/+6
|
* Separate the DOM and layout into separate crates.Patrick Walton2013-05-281-0/+103