aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/inline.rs
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-081-1170/+0
|
* Change scope macro to be a no-op in release builds.Glenn Watson2014-09-051-4/+3
|
* Add a layout debug module. This outputs a trace of the layout process to a JSONGlenn Watson2014-09-041-1/+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.
* Implement sideways text.Simon Sapin2014-08-291-7/+4
|
* Add support for backgrounds on inline elements. Fix fixup() by removing it.Glenn Watson2014-08-271-300/+25
| | | | | | | | | The code that managed ranges was buggy - failing on edge cases such as a span within a span. I have refactored the code so that the context information for inline formatting can optionally be stored within a fragment. This seems cleaner to me, and fixes the bugs encountered when making these changes by removing the need for the fixup() functionality (and ranges).
* Convert back to physical some layout coordinates.Simon Sapin2014-08-261-8/+5
|
* Change line-height to be read from the font itself, rather thanGlenn Watson2014-08-121-14/+16
| | | | a hard-coded estimate.
* Refactor how LayoutContext structure works (reduce TLS lookups + simplify ↵Glenn Watson2014-08-111-4/+4
| | | | | | | | | | | | 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-1/+1
|
* Move documentation table stylining to a shared location.Simon Sapin2014-08-041-6/+0
|
* Un-blacklist the layout crate from rustdoc. See #2924.Simon Sapin2014-08-041-15/+15
| | | | | | | | | Whatever rustdoc bug we used to hit was solved by the Rust upgrade. (The style crate still causes rustdoc to overflow its stack.) Also use Markdown tables rather than ASCII diagrams in inlines.rs. Not only does this look nicer, this works around rustdoc trying (and failing) to parse them as Rust code.
* Upgrade Rust.Jack Moffitt2014-08-021-9/+14
|
* Change calculate_line_height to use font-size from style.Glenn Watson2014-07-221-3/+2
|
* Convert layout code to use logical directions.Simon Sapin2014-07-181-206/+225
|
* Fix issue with auto table layout when cells have multiple fragments. Fixes ↵Glenn Watson2014-07-181-2/+2
| | | | some layout issues related to #2554.
* Split layout code into a separate crate.Josh Matthews2014-06-281-0/+1423