Commit graph

6640 commits

Author SHA1 Message Date
Josh Matthews
08cac68d5a Check if the immediate node is an element before looking at ancestors when clicking, and flush pending layout changes after dispatching the event. 2014-10-01 15:03:15 -04:00
Martin Robinson
8d93ac460d Fix layer selection and point translation for mouse events
Select the topmost layer at a given point to send mouse events and when
sending the event, ensure that they are relative to the layer origin,
rather than in absolute page coordinates.

Fixes #3504.
2014-10-01 11:23:15 -07:00
bors-servo
bfe5c34f8a auto merge of #3544 : mrobinson/servo/simplify-scrolling, r=zwarich
Now that scrolling roots are properly sized, we can simply look at the
scrolling root layer size when deciding the extents of layer scrolling.
This simplifies things a bit and further codifies the current model of
scrolling root + mask_to_bounds.
2014-10-01 12:06:28 -06:00
Martin Robinson
31a6270d52 No longer consider window size when scrolling
Now that scrolling roots are properly sized, we can simply look at the
scrolling root layer size when deciding the extents of layer scrolling.
This simplifies things a bit and further codifies the current model of
scrolling root + mask_to_bounds.
2014-10-01 10:58:35 -07:00
Jim Berlage
28e29dc32e Use std::intrinsics::TypeId
Fix indentation + update comment
2014-10-01 13:56:34 -04:00
bors-servo
bae5440689 auto merge of #3531 : Ms2ger/servo/MutNullableJS, r=Ms2ger
Extracted from #3527.
2014-10-01 09:09:28 -06:00
Josh Matthews
54fcab61d6 Implement MutNullableJS for mutable, nullable member pointers to DOM objects. 2014-10-01 17:06:23 +02:00
bors-servo
a840fed78a auto merge of #3542 : zwarich/servo/more-jsref, r=Ms2ger 2014-10-01 04:03:29 -06:00
Cameron Zwarich
0ef191b37a Remove an extra lifetime parameter on PrivateTreeWalkerHelpers 2014-10-01 02:07:52 -07:00
Cameron Zwarich
72656717d4 Remove an extra lifetime parameter on NodeHelpers 2014-10-01 02:07:46 -07:00
bors-servo
f73e508821 auto merge of #3541 : zwarich/servo/more-jsref, r=Ms2ger 2014-10-01 02:51:27 -06:00
Cameron Zwarich
78791af7d6 Convert the NodeHelpers trait to use self methods 2014-09-30 23:42:03 -07:00
bors-servo
09e9abc047 auto merge of #3540 : zwarich/servo/more-jsref, r=jdm 2014-09-30 22:36:28 -06:00
Cameron Zwarich
8b0361e251 Remove an unused lifetime parameter 2014-09-30 21:26:19 -07:00
Cameron Zwarich
79b4ec99b4 Convert TNode / TElement to use self methods rather than &self 2014-09-30 21:26:19 -07:00
Cameron Zwarich
63314208c0 Add Copy bounds to TNode / TElement 2014-09-30 21:26:19 -07:00
Cameron Zwarich
1581c383bb Convert the remaining ElementHelpers methods to take self 2014-09-30 21:26:19 -07:00
Cameron Zwarich
ccc5d976f7 Refine a lifetime parameter on TElement's get_local_name 2014-09-30 21:22:24 -07:00
Cameron Zwarich
e894499c17 Disambiguate methods without using trait objects 2014-09-30 21:22:24 -07:00
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