bors-servo
b26818a7b0
Auto merge of #6473 - Ms2ger:args, r=metajack
...
Stop using env::set_exit_code.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6473 )
<!-- Reviewable:end -->
2015-06-26 12:55:23 -06:00
Ms2ger
d7c0d65cc4
Stop using env::set_exit_code.
2015-06-26 19:46:16 +02:00
bors-servo
ef97879c27
Auto merge of #6469 - Ms2ger:rc-mut, r=saneyuki
...
Use Rc::get_mut rather than deprecated rc::get_mut.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6469 )
<!-- Reviewable:end -->
2015-06-26 09:26:55 -06:00
Ms2ger
932aa06694
Use Rc::get_mut rather than deprecated rc::get_mut.
2015-06-26 17:17:18 +02:00
bors-servo
f812390d3a
Auto merge of #6463 - Ms2ger:layout-reduce-unsafe, r=SimonSapin
...
Reduce the scope of the unsafe block in ParallelPostorderDomTraversal.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6463 )
<!-- Reviewable:end -->
2015-06-26 06:45:48 -06:00
bors-servo
9eb3cc2a24
Auto merge of #6464 - Ms2ger:into_raw, r=saneyuki
...
Use Box::into_raw rather than boxed::into_raw.
The latter is deprecated.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6464 )
<!-- Reviewable:end -->
2015-06-26 04:50:54 -06:00
bors-servo
2165c55d64
Auto merge of #6465 - servo:tendril, r=pcwalton
...
Update to zero-copy* HTML parsing
html5ever now uses the Tendril string type to minimize copying internally, but Servo still converts from/to `String` at the boundary (which involves copying).
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6465 )
<!-- Reviewable:end -->
2015-06-25 23:12:09 -06:00
bors-servo
26982cb547
Auto merge of #6449 - mbrubeck:byte_range, r=pcwalton
...
Slice TextRuns by byte range instead of char range
Currently only the end of the byte range is used, but I plan to use the full range in some follow-up work.
Fixes #6431 . r? @pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6449 )
<!-- Reviewable:end -->
2015-06-25 22:25:36 -06:00
Simon Sapin
34bfa16517
Update to zero-copy* HTML parsing
...
html5ever now uses the Tendril string type to minimize copying internally,
but Servo still converts from/to `String` at the boundary
(which involves copying).
2015-06-25 20:40:38 -07:00
Ms2ger
28086f3c75
Use Box::into_raw rather than boxed::into_raw.
...
The latter is deprecated.
2015-06-25 23:03:54 +02:00
Ms2ger
b6e5f8e7b6
Reduce the scope of the unsafe block in ParallelPostorderDomTraversal.
2015-06-25 22:34:00 +02:00
Ms2ger
b98a7f27a9
Remove a no-op transmute in ParallelPostorderDomTraversal.
2015-06-25 22:31:33 +02:00
bors-servo
ea06bebca9
Auto merge of #6460 - michaelwu:fix-indentation, r=Ms2ger
...
Fix indentation in testbindingproxy.rs
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6460 )
<!-- Reviewable:end -->
2015-06-25 13:30:46 -06:00
Michael Wu
2b82b92b19
Fix indentation in testbindingproxy.rs
2015-06-25 15:19:22 -04:00
bors-servo
21b48fc44d
Auto merge of #6459 - servo:rustup_20150625, r=SimonSapin
...
Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6459 )
<!-- Reviewable:end -->
2015-06-25 12:03:15 -06:00
Ms2ger
73a7e92bfd
Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0.
2015-06-25 20:02:36 +02:00
bors-servo
57cc84b293
Auto merge of #6110 - klusark:NamedConstructor, r=Ms2ger
...
Implement Named constructors and the Image constructor for HTMLImageElement
I'm not sure if I like how I mostly just duplicated the code in CodegenRust.py, so that might need to be refactored.
Instead of just calling it Image, we might want to call it ConstructorImage, to make it clear that it's a constructor. Anyone have an opinion on that?
There seems to be a bug in the HTMLImageElement getter/setter as the value is 0 regardless of what I do. This seems to be unrelated to my commits, so I'll investigate that separately.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6110 )
<!-- Reviewable:end -->
2015-06-25 02:18:06 -06:00
bors-servo
605b83da54
Auto merge of #6456 - Ms2ger:cleanup-layout, r=metajack
...
Some cleanup in layout.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6456 )
<!-- Reviewable:end -->
2015-06-25 01:42:45 -06:00
bors-servo
4c9afb2756
Auto merge of #6458 - frewsxcv:unused-import, r=Ms2ger
...
Remove unused js::JS_ARGV import in script component
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6458 )
<!-- Reviewable:end -->
2015-06-25 00:56:48 -06:00
Ms2ger
8375e0914a
Simplify ThreadSafeLayoutNodeChildrenIterator::next a bit.
2015-06-25 08:28:03 +02:00
Ms2ger
51d0f51dd9
Use a while let loop in ThreadSafeLayoutNode::traverse_postorder_mut.
2015-06-25 08:27:56 +02:00
Ms2ger
c87c7f1d84
Simplify ThreadSafeLayoutNode::text_content.
2015-06-25 08:27:53 +02:00
Corey Farwell
1bd171e782
Remove unused js::JS_ARGV import in script component
2015-06-24 21:48:51 -07:00
bors-servo
e02e7c517c
Auto merge of #6454 - Ms2ger:opaque, r=metajack
...
Make {ThreadSafe,}LayoutNode::get_jsmanaged private.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6454 )
<!-- Reviewable:end -->
2015-06-24 14:27:11 -06:00
bors-servo
6889f5fb4e
Auto merge of #6457 - glennw:raf-reflow, r=metajack
...
Trigger reflow after requestAnimationFrame callbacks.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6457 )
<!-- Reviewable:end -->
2015-06-24 13:51:15 -06:00
Glenn Watson
4b3962e6c7
Trigger reflow after rAF callbacks.
2015-06-25 05:40:23 +10:00
Joel Teichroeb
d33579183a
Implement the Image NamedConstructor for HTMLImageElement
2015-06-24 10:42:54 -07:00
Joel Teichroeb
012be81eab
Add support for NamedConstructor in webidls
2015-06-24 10:42:53 -07:00
Ms2ger
e1cee995b7
Make {ThreadSafe,}LayoutNode::get_jsmanaged private.
...
There are no longer any callers outside wrapper.rs, and this makes it harder
to introduce buggy callers.
2015-06-24 15:14:19 +02:00
bors-servo
3e90a60170
Auto merge of #6447 - servo:viewport, r=larsbergstrom
...
Mark the viewport tests as flaky on Mac.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6447 )
<!-- Reviewable:end -->
2015-06-24 07:02:52 -06:00
Ms2ger
6342c544a1
Disable the flaky viewport tests.
...
The flaky_macos annotation does not appear to work.
2015-06-24 14:57:16 +02:00
Ms2ger
2ea32829af
Replace OpaqueNodeMethods::from_{threadsafe_,}layout_node by opaque methods.
2015-06-24 14:55:43 +02:00
bors-servo
6247a96761
Auto merge of #6223 - nox:merge-generic-functions, r=Ms2ger
...
Merge generic funs to share them across all bindings (fixes #2684 )
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6223 )
<!-- Reviewable:end -->
2015-06-24 03:54:56 -06:00
Anthony Ramine
a90983553b
Merge generic funs to share them across all bindings ( fixes #2684 )
2015-06-24 11:34:30 +02:00
bors-servo
469b9550f6
Auto merge of #6443 - Ms2ger:cleanup-layout, r=pcwalton
...
Various layout cleanup.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6443 )
<!-- Reviewable:end -->
2015-06-24 03:00:32 -06:00
bors-servo
95d643c995
Auto merge of #6410 - hyowon:create_pattern, r=pcwalton
...
Create pattern from HTMLCanvasElement or CanvasRenderingContext2D.
r? @nox @pcwalton
cc @yichoi
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6410 )
<!-- Reviewable:end -->
2015-06-24 00:39:48 -06:00
Hyowon Kim
0e8491fb8c
Create pattern from HTMLCanvasElement or CanvasRenderingContext2D.
2015-06-24 09:56:28 +09:00
bors-servo
b1021c36c5
Auto merge of #6450 - pyfisch:patch-1, r=metajack
...
Remove is_some() from mime_classifier.rs
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6450 )
<!-- Reviewable:end -->
2015-06-23 15:14:30 -06:00
Pyfisch
468faf9d43
Remove is_some() from mime_classifier.rs and fix typo "uknown" -> "unknown"
2015-06-23 22:46:22 +02:00
bors-servo
e4412be1b6
Auto merge of #6446 - Ms2ger:warnings, r=metajack
...
Fix some warnings.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6446 )
<!-- Reviewable:end -->
2015-06-23 14:09:23 -06:00
bors-servo
dcb1237bb5
Auto merge of #6425 - glennw:3d-transforms, r=pcwalton
...
Implement enough of 3d transforms spec to run the CSS FPS demo.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6425 )
<!-- Reviewable:end -->
2015-06-23 12:13:25 -06:00
Matt Brubeck
83c73a5d91
Slice TextRuns by byte range instead of char range
...
Fixes #6431
2015-06-23 10:06:50 -07:00
Ms2ger
dc02ebacc6
Update 'traverse children' to the latest spec.
2015-06-23 15:52:50 +02:00
Ms2ger
3fbf016142
Silence a warning about BrowserContext.
2015-06-23 14:04:06 +02:00
bors-servo
e869e8ad08
Auto merge of #6405 - mskrzypkows:element_parsed_name_refactor, r=Ms2ger
...
Refactoring, return an Atom from Element::parsed_name. #5774
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6405 )
<!-- Reviewable:end -->
2015-06-23 03:17:46 -06:00
Maciej Skrzypkowski
21f495139f
Refactoring, return an Atom from Element::parsed_name. #5774
2015-06-23 08:55:40 +02:00
Glenn Watson
39ddbbb0e1
Implement enough of 3d transforms spec to run the CSS FPS demo.
2015-06-23 14:10:44 +10:00
bors-servo
d86c587925
Auto merge of #6445 - mbrubeck:next_fragment, r=pcwalton
...
Simplify next_fragment and fix obsolete docs
r? @pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6445 )
<!-- Reviewable:end -->
2015-06-22 16:23:27 -06:00
Matt Brubeck
a3b339c358
Simplify next_fragment and fix obsolete docs
2015-06-22 15:23:00 -07:00
bors-servo
7e0f186998
Auto merge of #6373 - robertknight:gh5660-rob-x11_scroll_speed, r=pcwalton
...
Use a faster scroll speed under X11
Platforms may report scroll deltas either in
chunks/lines/rows or pixels, depending on the
platform API and device capabilities.
If the platform reports a line/chunk-based delta
then the application needs to convert the delta
into a suitable number of pixels. Apple's documentation for example states
that the app should interpret the delta as a number of lines or rows to scroll,
depending on the type of view.
This commit just hardcodes it to 57 as
a starting point which matches the value that
Firefox calculates as the max char height
for the root frame on my system.
This depends on this Glutin PR: https://github.com/tomaka/glutin/pull/483
Fixes #5660
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6373 )
<!-- Reviewable:end -->
2015-06-22 13:46:56 -06:00