aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/fragment.rs
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-081-1597/+0
|
* Merge pull request #3206 from glennw/layout-trace-encPatrick Walton2014-09-071-1/+22
|\ | | | | Add an initial pass at a layout debug module.
| * Add a layout debug module. This outputs a trace of the layout process to a JSONGlenn Watson2014-09-041-1/+22
| | | | | | | | | | | | 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.
* | Fix inline size bubbling with fixed width block. Improve intrinsic inline ↵Glenn Watson2014-09-051-5/+3
|/ | | | | | | | | | size calculation for text fragments. These two fixes are related to the wikipedia metabug #2554. They don't make the wikipedia page look better (they cause a slight regression in the top caption table), but they are prerequisites for fixing some of the other layout issues that remain. Added reftests for each of the three cases I have come across that this patch solves.
* Add support for borders on inline elements.Glenn Watson2014-09-031-7/+19
| | | | | | | Fix ahem reftests on mac, by disabling text AA in reftest mode. Also fix precision issues in font metrics to correct height and baseline calculations.
* Implement sideways text.Simon Sapin2014-08-291-1/+20
|
* Make text decorations be independent display items.Simon Sapin2014-08-291-51/+60
| | | | The goal it to avoid having too much layout logic (which gets more complex in vertical text) in gfx code.
* Fix comment syntaxMatt Brubeck2014-08-271-1/+1
|
* Fix <br> supportMatt Brubeck2014-08-271-1/+3
|
* Add support for backgrounds on inline elements. Fix fixup() by removing it.Glenn Watson2014-08-271-45/+68
| | | | | | | | | 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-41/+35
|
* Change line-height to be read from the font itself, rather thanGlenn Watson2014-08-121-6/+8
| | | | 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
|
* Upgrade Rust.Jack Moffitt2014-08-021-1/+1
|
* Change Box to Fragment in fragment.rs doc commentMatt Brubeck2014-07-291-1/+1
|
* Change calculate_line_height to use font-size from style.Glenn Watson2014-07-221-12/+5
|
* Convert layout code to use logical directions.Simon Sapin2014-07-181-316/+323
|
* Remove unused Fragment::needs_clip methodMatt Brubeck2014-07-011-8/+0
|
* Add parsing of `overflow: scroll` and `auto`.Matt Brubeck2014-07-011-5/+8
| | | | | Elements with overflow scroll/auto are not yet scrollable, but they will be clipped correctly (like `overflow: hidden`).
* Split layout code into a separate crate.Josh Matthews2014-06-281-0/+1522