Cameron Zwarich
be9618d55b
Add a lifetime parameter to the ElementHelper trait
...
This refines the lifetime used in get_local_name / get_namespace and
makes it independent of the lifetime on the &self parameter.
2014-09-30 21:21:00 -07:00
Cameron Zwarich
4ef0f39c78
Remove a prefix from a method name by manually resolving methods
2014-09-30 21:21:00 -07:00
bors-servo
6358b7d94e
auto merge of #3537 : mrobinson/servo/scale, r=zwarich
...
When interacting with Layers it is simpler to use LayerPixels, which
are unscaled pixels in the Layer coordinate system. This removes a lot
of room for error and makes things simpler.
2014-09-30 18:57:26 -06:00
Martin Robinson
62ef7cd7ff
Use LayerPixel for Layer bounds and most arguments
...
When interacting with Layers it is simpler to use LayerPixels, which
are unscaled pixels in the Layer coordinate system. This removes a lot
of room for error and makes things simpler.
2014-09-30 17:42:00 -07:00
bors-servo
93e259227a
auto merge of #3536 : zwarich/servo/more-jsref, r=Manishearth
...
This also removes the unnecessary formation of a trait object.
2014-09-30 18:39:27 -06:00
bors-servo
a63155b564
auto merge of #3535 : glennw/servo/fixed-bg, r=pcwalton
2014-09-30 17:45:29 -06:00
Cameron Zwarich
3953456b61
Convert a method from &JSRef to JSRef
...
This also removes the unnecessary formation of a trait object.
2014-09-30 15:55:05 -07:00
Glenn Watson
55ef7ca5ad
Refactor background image, fix fixed attachment. Improve acid2.
2014-10-01 08:54:24 +10:00
bors-servo
698b916c09
auto merge of #3530 : kmcallister/servo/namespace-atom, r=Ms2ger
2014-09-30 02:42:23 -06:00
bors-servo
eec2225716
auto merge of #3529 : glennw/servo/linux-acid2, r=metajack
2014-09-29 23:09:24 -06:00
Keegan McAllister
d50114c41d
Use string-cache's Namespace type
2014-09-29 21:40:54 -07:00
Glenn Watson
2e32720129
Enable acid2 reftest on Linux. Update rust-layers.
2014-09-30 14:31:11 +10:00
Keegan McAllister
6429750b33
Eliminate servo_util::atom
...
We only needed this for Encodable, and now we use JSTraceable instead.
2014-09-29 18:39:36 -07:00
bors-servo
4be0a07585
auto merge of #3526 : mrobinson/servo/masks-to-bounds, r=zwarich
...
This prevents iframes contents from overflowing their root layers.
2014-09-29 17:48:25 -06:00
Martin Robinson
a75594d7cf
Mask root layer rectangles to their boundaries
...
This prevents iframes contents from overflowing their root layers.
2014-09-29 16:42:26 -07:00
bors-servo
01b4100756
auto merge of #3525 : mbrubeck/servo/viewport, r=zwarich
...
Updates to the latest rust-layers and rust-geom to pick up
servo/rust-layers#114 . r? @zwarich
2014-09-29 17:03:26 -06:00
Matt Brubeck
5f0d2ae98c
Pass a viewport to the rendering code
...
Part of servo/rust-layers#114
2014-09-29 15:48:42 -07:00
bors-servo
b2ff320aec
auto merge of #3523 : glennw/servo/wiki-equations, r=pcwalton
2014-09-29 15:36:26 -06:00
Glenn Watson
52c5007b07
Add support for <super> and <sup> tags. Fixes equations on wikipedia.
2014-09-30 07:12:54 +10:00
bors-servo
d9e26352a1
auto merge of #3491 : brunoabinader/servo/css-selector-enabled-remove-anchor-area-link-elems, r=Ms2ger
...
HTML spec has been modified [1] to disable support for :enabled CSS
selector on Anchor, Area & Link elements, after discussion on W3C
Bugzilla [2].
[1] https://html5.org/r/8818
[2] https://www.w3.org/Bugs/Public/show_bug.cgi?id=26622
Next step: Move :enabled CSS selector content test to web-platform-tests.
2014-09-29 12:27:26 -06:00
Bruno de Oliveira Abinader
4e6785f513
CSS selector :enabled no longer matches Anchor, Area & Link elements
...
HTML spec has been modified [1] to disable support for :enabled CSS
selector on Anchor, Area & Link elements, after discussion on W3C
Bugzilla [2].
[1] https://html5.org/r/8818
[2] https://www.w3.org/Bugs/Public/show_bug.cgi?id=26622
2014-09-29 13:06:03 -04:00
bors-servo
7409685589
auto merge of #3487 : servo/servo/rustup-20140923, r=Ms2ger
...
The biggest language change is that enum variants now also reserve (for future use) a name in the type namespace, which must not collide with other types. Some things were renamed, and others qualified as `module::name`.
2014-09-29 10:45:27 -06:00
Simon Sapin
04d839328b
Have the Rust snapshot directory include the Rust version and hash.
...
That way, whenever rust-snapshot-hash changes, mach will look for
the Rust snapshot in a different directory and re-boostrap as needed.
However, older rust version will be left behind never cleaned up.
This is good for git-bisect, but not for disk space:
the current snapshot is 618 MB.
In the future, we may want `mach clean` or some other comment
to remove unused Rust snapshots.
CC #3388
2014-09-29 17:41:45 +01:00
Simon Sapin
516b608a2f
Add a 'mach rust-root' command.
2014-09-29 17:41:45 +01:00
Simon Sapin
3996a15adb
Enable rustdoc for the style crate. Fix #2924 .
...
We’re now at a Rust version that has a fix for
https://github.com/rust-lang/rust/issues/16274
2014-09-29 17:41:45 +01:00
Simon Sapin
b3245fa407
Upgrade to rustc d2b30f7d3 2014-09-23
2014-09-29 17:41:45 +01:00
bors-servo
a58324f25b
auto merge of #3522 : Ms2ger/servo/xhr-send-uaf, r=SimonSapin
...
The data is used later to set the Content-Type header. Current rustc
(4d2af3861) does not detect this use-after-move, but treats the later use as
if the data was None. It will, however, detect the bug in d2b30f7d3, which we
are upgrading to.
2014-09-29 09:57:27 -06:00
Ms2ger
e72b5613ee
Don't move the data when extracting the bytes in XMLHttpRequest::Send.
...
The data is used later to set the Content-Type header. Current rustc
(4d2af3861) does not detect this use-after-move, but treats the later use as
if the data was None. It will, however, detect the bug in d2b30f7d3, which we
are upgrading to.
2014-09-29 17:52:44 +02:00
bors-servo
e70dcc3ae5
auto merge of #3476 : Ms2ger/servo/rm-hotfix, r=Ms2ger,metajack
...
This was added in anticipation of a wptrunner release that includes the change.
2014-09-29 08:51:29 -06:00
Ms2ger
8dbe2b352b
Update wptrunner to version 1.2.
2014-09-29 08:55:09 +02:00
bors-servo
760f28b551
auto merge of #3515 : glennw/servo/vertical-align, r=metajack
2014-09-28 23:15:26 -06:00
bors-servo
132ade0fce
auto merge of #3517 : glennw/servo/revert-res-change, r=metajack
...
...FBO."
This reverts commit c74798bb6b
.
2014-09-28 19:42:27 -06:00
Glenn Watson
e237519fdd
Revert "Set default resolution to 1280x1024 now that reftests render to FBO."
...
This reverts commit c74798bb6b
.
2014-09-29 10:10:37 +10:00
bors-servo
18b35faffe
Merge pull request #3514 from glennw/gdb-helper
...
Fix gdb helper for Au printer
Reviewed-by: metajack
2014-09-28 18:09:30 -06:00
bors-servo
276ca5f2e9
Merge pull request #3513 from glennw/default-res
...
Set default resolution to 1280x1024 now that reftests render to FBO.
Reviewed-by: metajack
2014-09-28 17:42:31 -06:00
Glenn Watson
bc06e27fe2
Add some vertical align reftests now that text elements get correct vertical align property.
2014-09-29 08:05:30 +10:00
Glenn Watson
370b1a2d72
Fix gdb helper for Au printer
2014-09-29 07:55:51 +10:00
Glenn Watson
c74798bb6b
Set default resolution to 1280x1024 now that reftests render to FBO.
2014-09-29 07:42:45 +10:00
bors-servo
6184c13f95
Merge pull request #3509 from Ms2ger/indentation-iframe
...
Fix indentation in is_htmliframeelement.
Reviewed-by: jdm
2014-09-28 07:45:27 -06:00
Ms2ger
652a867800
Fix indentation in is_htmliframeelement.
2014-09-28 15:10:44 +02:00
bors-servo
42205675b3
Merge pull request #3508 from wenderen/JSTraceable.key
...
trace keys as well
Reviewed-by: Manishearth
2014-09-27 23:21:28 -06:00
Rohan Prinja
e50e704f5a
trace keys as well
2014-09-28 09:44:43 +05:30
bors-servo
089d1fbd16
Merge pull request #3506 from metajack/fix-doc-build
...
Fix the doc build step.
Reviewed-by: SimonSapin
2014-09-27 18:24:28 -06:00
bors-servo
c9c8d63727
Merge pull request #3501 from zwarich/telement-lifetimes
...
Remove the 'static lifetime parameters from TElement methods
Reviewed-by: jdm
2014-09-27 17:09:28 -06:00
Jack Moffitt
3d0ae07d77
Fix the doc build step.
2014-09-27 16:17:11 -06:00
bors-servo
1b5fac5bde
Merge pull request #3503 from Ms2ger/page-url
...
Simplify the Page URL handling in handle_resize_inactive_msg.
Reviewed-by: jdm
2014-09-27 13:39:27 -06:00
bors-servo
b7345796bc
Merge pull request #3498 from pcwalton/border-box-double-counting
...
Stop double-counting stuff in inline-block
Reviewed-by: glennw
2014-09-27 13:12:30 -06:00
bors-servo
c10948736f
Merge pull request #3497 from zwarich/extended-deref
...
Add an extended_deref method to JSRef
Reviewed-by: Manishearth
2014-09-27 12:48:30 -06:00
bors-servo
6fb8eb32f2
Merge pull request #3474 from glennw/reftest-fbo
...
When rendering to PNG, draw to an FBO rather than default framebuffer.
Reviewed-by: mrobinson
2014-09-27 12:21:31 -06:00
Cameron Zwarich
b2a3519011
Remove the 'static lifetime parameters from TElement methods
...
This improves the static correctness of layout's use of DOM nodes.
Fixes #2595 .
2014-09-27 11:14:10 -07:00