Patrick Walton
41ffec0378
layout: Don't crash on floated generated content.
...
It doesn't construct the float correctly, but at least it doesn't crash
anymore.
Fixes Reddit.
Closes #3287 .
2014-09-12 14:10:27 -07:00
glennw
883fc2e404
Merge pull request #3298 from glennw/fix-font-cache
...
Reduce number of font instances and shaper structures created.
2014-09-13 05:51:00 +10:00
Martin Robinson
443bcc4d30
Merge pull request #3197 from mrobinson/iframes
...
Better handling of iframes in the compositor tree
2014-09-12 11:34:58 -07:00
Bryan Bell
6d0e103cde
Update and expand iframe tests
...
Add iframe tests to their own subdirectory and add another test case
that used to trigger a fatal error. The new test case uses the
"allow-scripts" sandbox attribute to work around a script task failure
caused by the child frame sharing the same script task as the parent.
2014-09-12 11:29:14 -07:00
Martin Robinson
39e3a4af70
Don't produce image output until all pipelines rendered something
...
Instead of producing image output as soon as the first pipeline is
ready, we wait to produce the output until all pipelines are in the
idle RenderState. This should remove a race condition when running
reference tests.
2014-09-12 11:29:14 -07:00
Bryan Bell
ff71c32218
Remove SetLayerClipRect and add SetLayerOrigin
...
The constallation has accurate information about iframe layer origins,
but not their size.
2014-09-12 11:29:14 -07:00
Bryan Bell
e17cc2d5e2
Create root compositor layers for all frames eagerly
...
Instead of waiting to create the root layer, create them as soon as the
Compositor receives the frame tree. This allows the compositor to
create a layer tree skeleton of which to hang the base layers when they
are ready.
2014-09-12 11:29:11 -07:00
Bryan Bell
0e86679464
Store one RenderState per-pipeline in the Compositor
...
This can later be used to decide whether the entire pipeline is ready
for rendering.
2014-09-12 10:47:51 -07:00
Bryan Bell
c182308350
Store Compositor ReadyState per-pipeline
...
Instead of storing a single ReadyState, store one per pipeline and
track the earliest one.
2014-09-12 10:47:50 -07:00
Josh Matthews
a2ab6f9799
Merge pull request #3304 from glennw/allow-font-failure
...
Print debug message instead of fail when unable to load web font. Fixes #3301 .
2014-09-12 10:12:51 -04:00
Josh Matthews
97cabf204e
Merge pull request #3213 from gilles-leblanc/issue-3111
...
Make use of the list of Atoms in the class attribute in selector matchin...
2014-09-12 08:50:07 -04:00
glennw
091cd688a0
Merge pull request #3294 from glennw/guardian-layout
...
Coalesce pending reflow messages so they don't queue up.
2014-09-12 15:51:00 +10:00
Glenn Watson
7503033e57
Coalesce pending reflow messages so they don't queue up.
2014-09-12 15:49:57 +10:00
Glenn Watson
986db8073b
Print debug message instead of fail when unable to load web font. Fixes #3301 .
2014-09-12 14:32:53 +10:00
Glenn Watson
df48e33926
Fix comment and and reference to bug #3300
2014-09-12 14:00:55 +10:00
Gilles Leblanc
81a0d065f1
Make use of the list of Atoms in ClassSelector
...
Make use of the list of Atoms in the class attribute selector
(ClassSelector) in selector_matching.
Fixes #3111
2014-09-11 23:19:26 -04:00
Glenn Watson
9ec3c9374d
Reduce number of font instances and shaper structures created.
...
The font cache previously kept weak references to the fonts,
however in layout these fonts are dropped before they are
referenced again, so no caching was being used.
For now, just hold a strong reference in the cache, which means
that fonts will never be thrown out (this will need to be fixed
in the future).
2014-09-12 13:17:44 +10:00
glennw
a18633b163
Merge pull request #3283 from glennw/bg-image
...
Partial fix for background images on wikipedia pages.
2014-09-12 11:31:24 +10:00
glennw
8116ee1b34
Merge pull request #3254 from cgaebel/issue-3232
...
Block LayoutRPC until the first reflow.
2014-09-12 08:00:13 +10:00
Glenn Watson
61e8d02b2e
Fix reftest now that the background image code clips correctly.
2014-09-12 07:49:53 +10:00
Josh Matthews
4e35b82770
Merge pull request #3216 from seanmonstar/about-blank
...
Implements about:blank in an about_loader
2014-09-11 16:45:06 -04:00
Jack Moffitt
0fbb93820c
Merge pull request #3291 from EdorianDark/master
...
Add -v or --verbose to mach build
2014-09-11 14:44:34 -06:00
Dirk Leifeld
f2a692e0ff
Add -v or --verbose to mach build
2014-09-11 18:46:18 +02:00
Sean McArthur
523445c865
create about_loader, handle about:blank
2014-09-11 08:55:54 -07:00
Sean McArthur
b8b51b6dd8
remove unnecessary proc from resource loader factory
2014-09-11 08:55:54 -07:00
Patrick Walton
f3653342df
Merge pull request #3285 from metajack/reseq-travis
...
Run build-cef last so that tests don't cause a rebuild.
2014-09-11 07:35:37 -07:00
Josh Matthews
68dcc67d98
Merge pull request #3284 from glennw/file-loader-fix
...
Return error when unable to create a file path from url.
2014-09-11 08:59:04 -04:00
Glenn Watson
29c3819246
Partial fix for background images on wikipedia pages.
...
This fixes the visual artifacts seen at the top of wikipedia pages by:
- Setting clipping rect to avoid images going outside their bounds.
- Handling case of background-position being >= 100% such that wrapping is required.
However, the gradient is not currently visible on wikipedia. This relies on bug #1997 being fixed.
2014-09-11 16:25:04 +10:00
Jack Moffitt
1124430eea
Merge pull request #3281 from pcwalton/premultiply-alpha
...
net: Premultiply alpha in PNGs.
2014-09-10 23:47:17 -06:00
Jack Moffitt
99e07e11db
Run build-cef last so that tests don't cause a rebuild.
2014-09-10 23:46:13 -06:00
Patrick Walton
a3465d2962
net: Premultiply alpha in PNGs.
...
Closes #2857 .
2014-09-10 22:08:06 -07:00
Glenn Watson
627359e9e4
Return error when unable to create a file path from url.
2014-09-11 14:22:59 +10:00
glennw
3bd5ef3384
Merge pull request #3280 from metajack/path-with-spaces
...
Fix loading of file URLs with spaces
2014-09-11 13:50:03 +10:00
Jack Moffitt
5f713517a2
Fix loading of file URLs with spaces
2014-09-10 18:13:25 -06:00
Josh Matthews
6bf8412f9a
Merge pull request #3274 from saneyuki/attr
...
Move Attr::set_value and Attr::value out of the Attr impl
2014-09-10 17:10:57 -04:00
Tetsuharu OHZEKI
a4ec892dbc
Move Attr::local_name() to AttrHelpers/AttrHelpersForLayout.
2014-09-11 04:54:38 +09:00
Tetsuharu OHZEKI
b73b06b9a8
Move Attr helper methods to AttrHelpers trait to avoid to touch them from layout task.
2014-09-11 04:54:38 +09:00
Josh Matthews
816e816329
Merge pull request #3271 from duncankl/virtualenv2-fix
...
Use virtualenv2 in tests/wpt/run.sh if installed
2014-09-10 15:17:43 -04:00
Jack Moffitt
842823e321
Merge pull request #3268 from saneyuki/dep
...
Remove needless rust-png dependency.
2014-09-10 09:38:22 -06:00
Manish Goregaokar
7a974fa231
Merge pull request #3258 from Manishearth/transmute_lint
...
Add lint for type-checking transmutes; r=jack
2014-09-10 18:39:38 +05:30
glennw
db3217397b
Merge pull request #3272 from glennw/wikipedia-layout
...
Fix layout of Create Account / Login when rendering Wikipedia.
2014-09-10 19:18:43 +10:00
Clark Gaebel
95b54e44ea
Block layout RPC on the first layout call
2014-09-09 22:06:10 -07:00
Jack Moffitt
3924652aa3
Merge pull request #3263 from duncankl/refactor-test-tidy
...
Refactor python/tidy.py (updated post-cargoify)
2014-09-09 22:46:34 -06:00
Glenn Watson
98caecf7ec
Fix layout of Create Account / Login when rendering Wikipedia.
...
When calculating the preferred width for a block, accumulate
the left and right float widths of children separately, which
is then max'ed with the normal flow widths later on.
Ref bug #2554 - improves the layout of the top bar.
2014-09-10 13:51:42 +10:00
Manish Goregaokar
d765d65b7a
Add lint for type-checking transmutes
2014-09-10 09:11:44 +05:30
Duncan Keall
1dc399d70a
Use virtualenv2 in tests/wpt/run.sh if installed
2014-09-10 15:00:18 +12:00
Jack Moffitt
aafab19e24
Merge pull request #3262 from mbrubeck/cargo
...
Cargo fixes
2014-09-09 20:55:48 -06:00
Josh Matthews
5a1db0db20
Merge pull request #3267 from duncankl/readme-arch-linux-setup
...
Update Arch Linux prerequisites (updated post-cargoify)
2014-09-09 22:54:34 -04:00
Duncan Keall
9a126276a9
Update Arch Linux prerequisites now that cargoify has landed
2014-09-10 14:38:50 +12:00
Tetsuharu OHZEKI
00445b0b49
Remove needless rust-png dependency.
2014-09-10 10:42:58 +09:00