| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
Start using more typed units in the compositor
|
| |
| |
| |
| |
| |
| | |
Now that rust-layers is starting to support typed units, we can use
them more thoroughly in the compositor. This is a step toward removing
as many untyped units as possible.
|
|/
|
|
| |
It is currently unused.
|
| |
|
| |
|
|
|
|
|
| |
ReRenderMsg is also used for rendering the first time, so the name is
confusing.
|
| |
|
|
|
|
|
|
|
|
|
| |
If the compositor outputs to a file:
* Track rerender msgs sent from the compositor to the render tasks.
* Before outputting, wait until all rerender msgs are processed by the
render tasks.
Fixes issue https://github.com/servo/servo/issues/2871.
|
| |
|
|
|
|
|
| |
This reverts commit 0200b61f713f2cdddcbc06ccd4cb5de11332899a, reversing
changes made to ca968219025a46e57b5cd770ae7c8ac5919876b1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a frame is selected via set_ids, a tree of root compositor
layers is also created, matching the tree of pipelines in the frame.
This decouples the chronological ordering dependency for parent frames
and child iframes sending CreateOrUpdateRootLayer &
CreateOrUpdateDescendentLayer messages.
Change the Compositor ready and render states to per pipeline.
This ensures the compositor doesn't composite for an epoch until
every *pipeline* in the epoch is finished rendering.
For iframes it fixes a bug where the compositor didnt wait on the
child pipeline ready state before compositing the window.
Gotchas:
* layout task or script task failure on exit ("task '' failed at sending
on a closed channel"), this happens if the child iframe shares the
same script task as the parent and can be avoided by adding the
sandbox attribute to the iframe.
Other changes:
* Inline set_clipping_rect in compositor.rs
* Commented out ref test simple_iframe.html fails on os x
|
| |
|
|
|
|
| |
Encodable for WindowSizeData, ViewportPx, PagePx, and DevicePixel
|
|
|
|
|
|
| |
Instead of having two parallel trees of CompositorLayers and
ContainerLayers, transform CompositorLayer to CompositorData and move
tiling logic to rust-layers.
|
| |
|
| |
|
|\
| |
| | |
Separate "desktop" and "mobile" zoom calculations.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This ensures that the layout viewport responds to each type of zoom correctly,
and lays the ground for CSS Media Queries and CSS Device Adaption.
Until we have proper touch support, mobile-style "pinch" zoom can be simulated
by holding Ctrl while scrolling with a mousewheel or trackpad gesture.
|
|/
|
|
| |
This reverts commit 3f8f065b76d034803bfb666899ef07afce0a1cd9.
|
|
|
|
|
| |
This reverts commit 850bd2891de589b95e32dc8f0b59d4043ed1e0a3, reversing
changes made to 5b0feac32a3ef13a76670eb2f5f21e7b598fc890.
|
| |
|
|
|
|
| |
android building.
|
|
|
|
|
|
|
|
|
|
| |
This fixes an issue where the CSS viewport was too large on high-DPI displays
because it was set to the window size in device pixels, instead of px. This
patch ensures that the window size is converted from device pixels to px
before being passed to script/layout code.
The Window trait now exposes the window size in both device pixels and
density-independent screen coordinates, with clearer method names.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
April 10, 2014. The main changes are to privacy, to work around the
issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the
various API changes strewn throughout the libraries.
|
| |
|
|\
| |
| |
| | |
see #2079
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
r=larsbergstrom,metajack
r? @metajack
|
| |/ |
|
|/ |
|
| |
|
| |
|
|
|
|
| |
pipeline. This handles fixed positioning mostly correctly.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
which can then inform the compositor (and anyone else, later) about
the completion of loading a page. This is important for ref tests,
which should not emit a PNG until load has completed, even if we
perform a composite before then.
|
|
|
|
|
|
|
|
|
|
|
| |
from the Compositor instead of a message with an immediate callback.
The problem was that the old model introduced a potential deadlock. If
the Constellation had a pending RenderReadyMsg in its queue when the
ExitMsg arrived from the Compositor, the Compositor would exit its
message loop and wait for the response from the Constellation. But,
the Constellation would send a SetIds message to the Compositor, which
also required a response - resulting in deadlock.
|
| |
|
| |
|
| |
|