aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/layout_task.rs
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-081-1020/+0
|
* Merge pull request #3206 from glennw/layout-trace-encPatrick Walton2014-09-071-0/+11
|\ | | | | Add an initial pass at a layout debug module.
| * Change scope macro to be a no-op in release builds.Glenn Watson2014-09-051-1/+1
| |
| * Add a layout debug module. This outputs a trace of the layout process to a JSONGlenn Watson2014-09-041-0/+11
| | | | | | | | | | | | file which can be viewed in an external tool. It provides a timelapse view of how the flow tree and fragments changed during the layout process, which makes it easier to debug layout bugs.
* | Added a fast no-message RPC interface to the layout task.Clark Gaebel2014-09-041-231/+276
|/
* Set the origin of the root element per its writing mode.Simon Sapin2014-08-261-3/+4
| | | | It’s not always (0, 0) anymore.
* Dump display lists when debug!() is enabled for gfx::display_listSimon Sapin2014-08-261-0/+1
|
* Make more things private to the style crate.Simon Sapin2014-08-161-15/+4
|
* Refactor and fix src parsing in @font-faceSimon Sapin2014-08-161-4/+2
|
* Move UA stylesheet to src/components/styleSimon Sapin2014-08-161-2/+1
|
* Refactor how LayoutContext structure works (reduce TLS lookups + simplify ↵Glenn Watson2014-08-111-44/+30
| | | | | | | | | | | | fns used by seq/parallel code paths). - LayoutContext is renamed to SharedLayoutContext. - SharedLayoutContext is immutable. - LayoutContext is a wrapper around SharedLayoutContext + access to local caches (font, style etc). - Creating a LayoutContext does a single local_data lookup to fetch the cache information. - Android shares same implementation of context.rs as other platforms. - LayoutContext can be used from both green thread (parallel layout) and native thread (sequential layout). - Removes the need for other types (such as FontContext, StyleSharingCandidateCache etc) to be passed around.
* Upgrade Rust.Jack Moffitt2014-08-081-3/+5
|
* Decouple compositing and script crates.Josh Matthews2014-08-081-18/+61
|
* Fix rustdoc comment syntaxMatt Brubeck2014-08-061-1/+1
|
* Merge pull request #3000 from Ms2ger/rendertaskMs2ger2014-08-061-1/+1
|\ | | | | Use spawn_named_with_send_on_failure for the RenderTask; r=Manishearth
| * Pass an argument to spawn_named_with_send_on_failure to support spawning ↵Josh Matthews2014-08-041-1/+1
| | | | | | | | native tasks.
* | Merge pull request #2791 from glennw/web-fontsglennw2014-08-061-1/+20
|\ \ | | | | | | Add basic support for web fonts. Synchronous loading only
| * | Don't rely on font hint for format detection. Handle parsing commaGlenn Watson2014-07-241-8/+3
| | | | | | | | | | | | | | | separated format hints. Fix oversight in mac code dealing with creating web fonts from memory.
| * | Address review comments.Glenn Watson2014-07-241-7/+10
| | |
| * | Add basic support for web fonts. Synchronous loading onlyGlenn Watson2014-07-241-1/+22
| | | | | | | | | | | | | | | | | | for now, and only deals with TTF format fonts. For an example, try loading http://icons.marekventur.de
* | | Rename RenderMsg to RenderInitMsgCameron Zwarich2014-08-051-2/+2
| |/ |/| | | | | RenderMsg doesn't actually render anything, so the name is confusing.
* | Upgrade Rust.Jack Moffitt2014-08-021-6/+3
| |
* | 255 -> 1.0 for color::rgba + remove dead code lintBryan Bell2014-07-281-1/+1
|/ | | | | | | | | | In build_display_list_abs (block.rs) and handle_reflow (layout_task.rs) 255 is incorrectly used instead of 1.0 for color::rgba (255 is correct with color::rgb but *not* color::rgba). In cors.rs remove the dead code warning for fn clear. The function shouldn't be removed since it'll be used in the future (fn clear is an implementation of http://fetch.spec.whatwg.org/#concept-cache-clear).
* Start dogfooding rust-url. Fix #1673.Simon Sapin2014-07-211-1/+1
|
* Break the layout -> compositing dependencyAriel Ben-Yehuda2014-07-211-17/+1
| | | | | This adds a new layout_traits component for the shared trait. This should allow for faster builds.
* Make compositing generic over layout_taskAriel Ben-Yehuda2014-07-211-2/+22
| | | | This will allow breaking the layout -> compositing dependency
* Convert layout code to use logical directions.Simon Sapin2014-07-181-23/+30
|
* Merge pull request #2775 from glennw/font-cacheglennw2014-07-091-9/+11
|\ | | | | Font refactoring work - add font cache task, cleanup various code paths.
| * Next stage of refactoring font system. This commit introducesGlenn Watson2014-07-071-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the font cache task, and adapts client code to use it. It also cleans up some existing code paths. - Fonts are only read once from disk while in use (they are discarded if the reference count reaches zero, however). This saves memory and prevents unnecessary reading from disk. - It will be easier to add web font support, as all fonts are created and managed in a single place and the entire pipeline ensures that only one in-memory copy of font data is required. An overview of how the pieces fit together: FontTemplate - A structure containing everything that is required to create (and select) font handles. This structure is shared among all matching font handles (via Arc). FontTemplateData - A platform specific structure that contains the actual font data inside a template (this is a byte array on Linux/Android, CTFont on Mac). FontHandle - An opaque, platform specific handle to a font instance. Each FontHandle contains an Arc<> reference to the FontTemplate it was created from. FontCache - This is a separate task, that is responsible for loading and caching FontTemplate structures. There is one FontCache per constellation. It is only ever accessed via the FontContext described below. FontContext - This is the public interface to the FontCache and is used by the layout and render code to create font handles. These must *not* be shared between threads. There is typically one FontContext per thread/task.
* | Warning police.Glenn Watson2014-07-071-1/+1
|/
* Split layout code into a separate crate.Josh Matthews2014-06-281-0/+916