aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/block.rs
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-081-2428/+0
|
* Merge pull request #3206 from glennw/layout-trace-encPatrick Walton2014-09-071-0/+15
|\ | | | | Add an initial pass at a layout debug module.
| * Change scope macro to be a no-op in release builds.Glenn Watson2014-09-051-4/+4
| |
| * Add a layout debug module. This outputs a trace of the layout process to a JSONGlenn Watson2014-09-041-0/+15
| | | | | | | | | | | | 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-6/+17
|/ | | | | | | | | | 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 backgrounds on inline elements. Fix fixup() by removing it.Glenn Watson2014-08-271-11/+8
| | | | | | | | | 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-16/+23
|
* Prevent margin collapse in the root flowMartin Robinson2014-08-181-2/+6
| | | | | | According to the CSS specification, section 8.3.1, margins of the root element's box do not collapse. Ensure that root flow margins do not collapse during the assign heights phase.
* Ensure that block elements with replaced content don't get their block size ↵Glenn Watson2014-08-181-3/+4
| | | | overwritten.
* Refactor how LayoutContext structure works (reduce TLS lookups + simplify ↵Glenn Watson2014-08-111-25/+25
| | | | | | | | | | | | 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-12/+13
|
* 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).
* Convert layout code to use logical directions.Simon Sapin2014-07-181-978/+984
|
* Partial fix for footer layout issues on wikipedia, ref #2554.Glenn Watson2014-07-171-4/+6
|
* Mark some unused fields.Ms2ger2014-07-041-2/+2
|
* Split layout code into a separate crate.Josh Matthews2014-06-281-0/+2384