Commit graph

6184 commits

Author SHA1 Message Date
Manish Goregaokar
f5087e1490 Use #[must_root] for HTMLElements 2014-09-17 01:02:44 +05:30
Manish Goregaokar
30014c3919 Make Reflector #[must_root], propagate to non-HTMLElements 2014-09-17 01:02:41 +05:30
Manish Goregaokar
f0b8391762 Address review comments 2014-09-17 00:33:36 +05:30
Manish Goregaokar
d241826987 Unwrap pointers and miscellany for unrooted_must_root check 2014-09-16 23:31:40 +05:30
Manish Goregaokar
bded5c3703 Add unrooted_must_root lint for usages of JS<T> in let/for bindings 2014-09-16 22:54:24 +05:30
Manish Goregaokar
12dc54d238 Add unrooted_must_root lint for enums and structs containing JS<T>, as well as functions with JS<T> in their parameter list
For safe wrappers over JS<T> (eg Temporary<T>) use #[allow(unrooted_must_root)].
For all other types containing a #[must_root] value, annotate the type with #[must_root] to ensure that it is never used unrooted
2014-09-16 22:11:27 +05:30
Patrick Walton
13ae369dec Merge pull request #3341 from glennw/table-cb
Implement generated_containing_block_rect for TableFlow. Fixes #3337.
2014-09-15 09:29:39 -07:00
Glenn Watson
cab15531b5 Implement generated_containing_block_rect for TableFlow. Fixes #3337. 2014-09-15 15:39:58 +10:00
Jack Moffitt
00150b8c71 Merge pull request #3336 from glennw/resize-fail
Handle AttachLayout before ResizeMsg. Fixes #3333 for yahoo static suite.
2014-09-14 22:54:03 -06:00
Glenn Watson
102e06f46b Handle AttachLayout before ResizeMsg. Fixes #3333 for yahoo static suite. 2014-09-15 12:30:05 +10:00
glennw
2f12d5628f Merge pull request #3331 from jdm/ib-abs
Propagate absolute descendants of inline block flows. Fixes #3326.
2014-09-15 10:45:24 +10:00
Jack Moffitt
203144e207 Merge pull request #3334 from mbrubeck/mach-rustc
Add a `mach rustc` command
2014-09-14 13:38:30 -06:00
Matt Brubeck
2df61655cc Add a mach rustc command 2014-09-14 11:46:18 -07:00
Manish Goregaokar
fe31805a04 Merge pull request #3282 from gilles-leblanc/tests-readme
Updates tests README.md for mach; r=Manishearth
2014-09-14 23:14:36 +05:30
Gilles Leblanc
d3dc61c984 Updates tests README.md for mach 2014-09-14 13:40:19 -04:00
Josh Matthews
8f65c22927 Propagate absolute descendants of inline block flows. Fixes #3326. 2014-09-14 13:12:44 -04:00
Josh Matthews
0b0c2ef461 Fix broken build after denying unused imports. 2014-09-14 11:02:33 -04:00
Josh Matthews
6c179127a3 Merge pull request #3327 from metajack/cargo-profiles
Reinstate errors for unused variables and imports.
2014-09-14 09:56:58 -04:00
Josh Matthews
22df9943c1 Merge pull request #3328 from Ms2ger/fixme-customevent
Remove obsolete FIXME comment.
2014-09-14 09:53:57 -04:00
Josh Matthews
23ec53042c Merge pull request #3329 from Ms2ger/2877-base64
Call from_base64 on a vector slice rather than a string slice (fixes #2877).
2014-09-14 09:50:34 -04:00
Ms2ger
dbefb2f0fd Call from_base64 on a vector slice rather than a string slice (fixes #2877). 2014-09-14 10:32:59 +02:00
Ms2ger
aa3ca283d4 Remove obsolete FIXME comment. 2014-09-14 10:27:42 +02:00
Jack Moffitt
e10206e91e Reinstate errors for unused variables and imports. 2014-09-13 23:38:00 -06:00
Patrick Walton
97e068b1c2 Merge pull request #3325 from jdm/jsdecode
Don't fail converting invalid UTF8 when fetching JS source. Fixes #3302.
2014-09-13 12:06:13 -07:00
Ms2ger
f466d31446 Merge pull request #3323 from Ms2ger/get_attribute
Stop messing with the case of the attribute name in AttributeHandlers::get_attribute; r=Manishearth
2014-09-13 21:02:40 +02:00
Ms2ger
d0e095a3e5 Stop messing with the case of the attribute name in AttributeHandlers::get_attribute.
This fixes a bug where GetAttributeNS would incorrectly match lower-case
attributes when called with an upper-case argument.
2014-09-13 21:01:54 +02:00
Josh Matthews
c861d845b6 Fix incorrect path to about:failure source. 2014-09-13 11:57:37 -04:00
Josh Matthews
8748818b7e Don't fail converting invalid UTF8 when fetching JS source. Fixes #3302. 2014-09-13 11:22:29 -04:00
Patrick Walton
5a90f18b7e Merge pull request #3317 from pcwalton/update-submodules
build: Update submodules
2014-09-13 02:22:54 -07:00
glennw
fb54c1eb08 Merge pull request #3305 from glennw/float-table
Add support for tables that are floated.
2014-09-13 18:55:56 +10:00
Matt Brubeck
25f263b751 Merge pull request #3312 from mbrubeck/test-name
Add more arguments to mach test commands. r=jack
2014-09-12 21:57:40 -07:00
Matt Brubeck
e6b31a616f Add more arguments to mach test commands 2014-09-12 21:57:07 -07:00
Glenn Watson
0e60c878f6 Address review comments 2014-09-13 14:51:07 +10:00
Glenn Watson
6a9001b4fd Add support for tables that are floated. 2014-09-13 14:51:07 +10:00
Patrick Walton
b64f27b2b6 Merge pull request #3286 from glennw/inline_block
Implement basic support for display: inline-block.
2014-09-12 21:11:27 -07:00
Manish Goregaokar
88aa7d5553 Merge pull request #3315 from saneyuki/mach
Add 'mach clean'.; r=Manishearth
2014-09-13 09:37:29 +05:30
Patrick Walton
21b8a182a4 build: Update submodules 2014-09-12 18:00:54 -07:00
Glenn Watson
98624c9576 Implement basic support for display: inline-block.
This still needs a lot of work, but it covers the basic
cases and improves wikipedia while passing all existing tests.

Tweak reftest to deal with linux/travis black background.
2014-09-13 07:13:42 +10:00
Patrick Walton
20cde10e12 Merge pull request #3293 from pcwalton/floated-generated-content-crash
layout: Don't crash on floated generated content.
2014-09-12 14:10:44 -07:00
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
Tetsuharu OHZEKI
8bed778a3d Add 'mach clean'. 2014-09-13 04:39:18 +09: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