| 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.
|
|/ |
|
|
|
|
| |
It’s not always (0, 0) anymore.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|\
| |
| | |
Use spawn_named_with_send_on_failure for the RenderTask; r=Manishearth
|
| |
| |
| |
| | |
native tasks.
|
|\ \
| | |
| | | |
Add basic support for web fonts. Synchronous loading only
|
| | |
| | |
| | |
| | |
| | | |
separated format hints. Fix oversight in mac code dealing with
creating web fonts from memory.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
for now, and only deals with TTF format fonts.
For an example, try loading http://icons.marekventur.de
|
| |/
|/|
| |
| | |
RenderMsg doesn't actually render anything, so the name is confusing.
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
| |
This adds a new layout_traits component for the shared trait.
This should allow for faster builds.
|
|
|
|
| |
This will allow breaking the layout -> compositing dependency
|
| |
|
|\
| |
| | |
Font refactoring work - add font cache task, cleanup various code paths.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/ |
|
|
|