Commit graph

9044 commits

Author SHA1 Message Date
bors-servo
c05de08630 auto merge of #5206 : Ms2ger/servo/pre-rustup-codegen-cleanup, r=jdm,SimonSapin 2015-03-13 08:42:49 -06:00
Ms2ger
6eb9607bb9 Don't define empty FooMethods traits. 2015-03-13 14:54:45 +01:00
Ms2ger
b213a80f80 Remove unused lifetime parameters to dictionaries.
They were used for Root members, but those no longer use lifetimes.
2015-03-13 14:49:36 +01:00
bors-servo
5f439e7eaa auto merge of #5204 : ehegnes/servo/squelch_contenttest, r=jdm
This actually fixes 5159.
2015-03-12 20:48:47 -06:00
Eric Hegnes
6208eaa628 Further squelch warnings from contenttest.rs
This actually fixes 5159
2015-03-12 20:38:49 -04:00
bors-servo
1a9679857a auto merge of #5177 : PeterReid/servo/issue5158, r=jdm
Fixes #5158 

Part of this involved switching to OsStrings for process arguments. Those now interface awkwardly with some remaining use old_io, but that will only be needed until rustc is newer.
2015-03-12 18:03:46 -06:00
Peter Reid
8c5f9bb806 Fix warnings in tests/reftest.rs 2015-03-12 19:06:12 -04:00
bors-servo
8e811229ba auto merge of #4417 : pcwalton/servo/border-spacing, r=larsbergstrom
Table layout code has been refactored to push the spacing down to
rowgroups and rows; this will aid the implementation of
`border-collapse` as well.

r? @SimonSapin
2015-03-12 13:03:49 -06:00
Patrick Walton
586c12ccc4 layout: Implement border-spacing per CSS 2.1 § 17.6.1 and the legacy
`cellspacing` attribute per HTML5 § 14.3.9.

Table layout code has been refactored to push the spacing down to
rowgroups and rows; this will aid the implementation of
`border-collapse` as well.

This commit also fixes two nasty issues in table layout:

* In fixed layout, extra space would not be divided among columns that
  had auto width but had nonzero minimum width.

* In automatic layout, extra space would be distributed to constrained
  columns as well even if unconstrained columns with percentage equal to
  zero were present.
2015-03-12 12:00:40 -07:00
bors-servo
6593cf9ec4 auto merge of #5194 : hirschenberger/servo/gif_alpha_background, r=larsbergstrom
This is GIF specific. It's also done when the image is PNG but PNG is
handled separately with the PNG crate, whereas GIFs are handled by the
stb-image crate and the distinction between alpha and non-alpha-supporting
images was missing.
2015-03-12 05:51:48 -06:00
hirschenberger
2a91c317c0 Add reftest for issue #5176 2015-03-12 11:02:29 +01:00
bors-servo
d7e9b8b96b auto merge of #5202 : doublec/servo/rename_unwrap, r=Ms2ger
Fix for issue #2108. That issue mentions an `unwrap_object` which doesn't seem to exist so I renamed `unwrap` to `native_from_reflector` and `unwrap_jsmanaged` to `native_from_reflector_jsmanaged`. The latter is a bit unweildy - maybe a shorter name might be better?
2015-03-12 01:51:49 -06:00
Chris Double
2af19b2675 Fix #2108 by renaming unwrap functions to native_from_reflector
As noted by @bholley. "unwrap" is confusing because we are
both stripping off wrappers *and* getting a native from a
reflector. Changing the "unwrap" usage to "native_from_reflector"
for clarity.

This renames 'unwrap' to 'native_from_reflector' and
'unwrap_jsmanaged' to 'native_from_reflector_jsmanaged'.
2015-03-12 19:15:12 +13:00
bors-servo
27a76f14b2 auto merge of #5201 : Ms2ger/servo/plugins, r=jdm 2015-03-11 21:42:48 -06:00
Ms2ger
8223f695fb Remove plugin attributes from extern crates. 2015-03-11 23:45:16 +01:00
bors-servo
7b6e314df1 auto merge of #5198 : ienzam/servo/force_relayout_cleanup, r=jdm
This is a cleanup for issue #3959 

Do I need to inline force_relayout?
2015-03-11 14:12:50 -06:00
Md. Enzam Hossain
6d13361c64 Remove redundant force_relayout calls. 2015-03-11 19:42:59 +00:00
hirschenberger
ab4b34d423 Fix #5176 by premultiplying the alpha channel to the color channels
This is GIF specific. It's also done when the image is PNG but PNG is
handled separately with the PNG crate, whereas GIFs are handled by the
stb-image crate and the distinction between alpha and non-alpha-supporting
images was missing.
2015-03-11 14:52:16 +01:00
bors-servo
6ba3014d9b auto merge of #5192 : glennw/servo/remove-frame-id, r=Ms2ger
This will be re-introduced in a follow up PR with a different usage, but I'm trying to create small, independent PRs that are easier to review than one large change.
2015-03-11 03:45:47 -06:00
Glenn Watson
e265b6b15b Remove unused subpage field from page 2015-03-11 14:13:30 +10:00
Glenn Watson
ec91fa2cfd Remove now unused id field for frame tree. 2015-03-11 13:41:55 +10:00
bors-servo
e581648c75 auto merge of #5189 : glennw/servo/page-url, r=larsbergstrom
This doesn't have any effect on functionality, it just simplifies a few upcoming changes with how FrameIds work.
2015-03-10 18:12:47 -06:00
bors-servo
19827658de auto merge of #5188 : glennw/servo/reflow-events, r=jdm
This fixes some test failures that begin occurring when other events (such as resize) are fixed to only occur when needed.
2015-03-10 16:57:47 -06:00
Glenn Watson
3befc8ce0b Make change page url message consistent with other compositor messages.
This doesn't have any effect on functionality, it just simplifies a few upcoming changes with how FrameIds work.
2015-03-11 08:54:36 +10:00
Glenn Watson
33829c0254 Perform reflow if load events dirty any nodes.
This fixes some test failures that begin occurring when other events (such as resize) are fixed to only occur when needed.
2015-03-11 08:43:47 +10:00
bors-servo
e8f1a046c6 auto merge of #5185 : mmatyas/servo/canvas_arc, r=pcwalton
This patch enables the use of `arc()` on the canvas.
I couldn't add reftest this time, as it involves some antialiasing issues, and so the reference doesn't match.
2015-03-10 09:45:49 -06:00
bors-servo
d31e80f894 auto merge of #5182 : zslayton/servo/master, r=jdm
Opening this PR to invite feedback. 

Of the many `match` statement candidates for conversion to `if let`, several included `if` guards. Since `if let` doesn't support this syntax, I used nested if statements. If this is undesirable, say the word and I can revert those cases to `match`.
2015-03-10 07:51:50 -06:00
Zack Slayton
08ac0766ed Use new if let syntax wherever possible. Fixes #4153. 2015-03-10 09:18:55 -04:00
bors-servo
fd1bb49a65 auto merge of #5160 : pcwalton/servo/counters-redux, r=SimonSapin
Only simple alphabetic and numeric counter styles are supported. (This
is most of them though.)

Although this PR adds a sequential pass to layout, I verified that on
pages that contain a reasonable number of ordered lists (Reddit
`/r/rust`), the time spent in generated content resolution is dwarfed by
the time spent in the parallelizable parts of layout. So I don't expect
this to negatively affect our parallelism expect perhaps in pathological
cases.

Reconstructed from #5138 via raw diffing.

r? @SimonSapin
2015-03-09 23:24:47 -06:00
Patrick Walton
8703cd9747 Update WPT expectations 2015-03-09 20:54:13 -07:00
Patrick Walton
64abea5780 Add a Japanese Web font 2015-03-09 20:50:39 -07:00
Patrick Walton
f9cdd05d58 layout: Implement ordered lists, CSS counters, and quotes per CSS 2.1
§ 12.3-12.5.

Only simple alphabetic and numeric counter styles are supported. (This
is most of them though.)

Although this PR adds a sequential pass to layout, I verified that on
pages that contain a reasonable number of ordered lists (Reddit
`/r/rust`), the time spent in generated content resolution is dwarfed by
the time spent in the parallelizable parts of layout. So I don't expect
this to negatively affect our parallelism expect perhaps in pathological
cases.
2015-03-09 17:13:45 -07:00
bors-servo
f4a362725f auto merge of #5183 : aweinstock314/servo/master, r=saneyuki
...via introduction of Worker::WorkerErrorHandler (Closes #5171).
2015-03-09 17:00:51 -06:00
bors-servo
2df4dd9e09 auto merge of #5143 : mbrubeck/servo/rtl, r=pcwalton
...and vice-versa.  This is not a complete fix for all mixed-direction layout cases, but it fixes enough problems to make some simple test cases pass, like tha attached reftest.

There are FIXME comments for many of the remaining issues.  In particular, this does not yet handle RTL layout of fixed/absolute elements, nor does it completely fix the overconstrained_block reftest.

r? @SimonSapin or @pcwalton
2015-03-09 15:54:51 -06:00
Matt Brubeck
cabbbcc978 Keep track of the containing block writing mode.
This is necessary for correctly converting `relative_containing_block_size`
to physical coordinates.
2015-03-09 14:22:36 -07:00
Matt Brubeck
8221bfc3ef Layout fixes for RTL child flows in LTR parents
...and vice-versa.  This is not a complete fix for all mixed-direction layout
cases, but it fixes enough problems to make some simple test cases pass, like
tha attached reftest.

There are FIXME comments for many of the remaining issues.  In particular,
this does not yet handle RTL layout of fixed/absolute elements.
2015-03-09 14:21:26 -07:00
Mátyás Mustoha
c98bca6130 Canvas: added arc(). 2015-03-09 21:55:40 +01:00
bors-servo
7cd776b74f auto merge of #5184 : Ms2ger/servo/disable-flaky-canvas-reftest, r=jdm 2015-03-09 12:27:52 -06:00
Ms2ger
8343eb0b8a Disable intermittently failing canvas_transformations_scale_001.htm. 2015-03-09 18:16:08 +01:00
Avi Weinstock
7803f2b216 Subsume ScriptMsg::WorkerDispatchErrorEvent into ScriptMsg::RunnableMsg via introduction of Worker::WorkerErrorHandler (Closes #5171). 2015-03-09 09:24:40 -04:00
Tetsuharu OHZEKI
fbacd1a4c4 Merge pull request #5179 from saneyuki/ignore
remove the trailing slash for consistence.
2015-03-09 17:44:34 +09:00
Tetsuharu OHZEKI
27dfbb69c1 remove the trailing slash for consistence. 2015-03-09 02:55:14 +09:00
Simon Sapin
09c36de8f1 Merge pull request #5178 from saneyuki/ignore
Ignore /.cargo/
2015-03-08 18:18:17 +01:00
Tetsuharu OHZEKI
772291b9f5 Ignore /.cargo/ 2015-03-09 01:29:05 +09:00
bors-servo
e404cf3763 auto merge of #5174 : ehegnes/servo/issue-5159, r=Manishearth
Fix warnings and introduce usage of `std::env` over deprecated `std::os`
functions.
2015-03-08 00:51:44 -07:00
bors-servo
e8ea416581 auto merge of #5168 : Manishearth/servo/cargo-home, r=SimonSapin 2015-03-08 00:03:45 -07:00
Eric Hegnes
20cb2c395d Fixes #5159
Fix warnings and introduce usage of `std::env` over deprecated `std::os`
functions.
2015-03-08 01:37:48 -05:00
bors-servo
da880af742 auto merge of #5170 : metajack/servo/update-cocoa-glutin, r=pcwalton
This just requires updating glutin and cocoa to pick up some backported fixes.
2015-03-07 20:45:48 -07:00
Manish Goregaokar
cfdad335bd Add support for $CARGO_HOME in servobuild 2015-03-08 01:34:38 +05:30
bors-servo
3b14df16c6 auto merge of #5172 : servo/servo/alpha, r=SimonSapin
Rebase of #5123. (Fixes #5123.) Thanks @gille-leblanc!

Reftest list check is checked using Python's default string comparison.
Also added a notice in the tidy script when there are no errors.

Fixes #5092
2015-03-07 10:48:51 -07:00