| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
Add an initial pass at a layout debug module.
|
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
The goal it to avoid having too much layout logic (which gets more complex in vertical text) in gfx code.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
| |
a hard-coded estimate.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Elements with overflow scroll/auto are not yet scrollable, but they will be
clipped correctly (like `overflow: hidden`).
|
|
|