Manish Goregaokar
1be7f565e4
Audit and reduce unstable usage in script
...
Reasons behind existing unstable features:
alloc:
- `Rc.make_unique()` _everywhere_
core:
- `intrinsics::discriminant_value` for a small optimization. Not sure what's happening here
hash:
- `Hasher.write_u16` (recently redesigned)
2015-06-10 01:24:03 +05:30
Manish Goregaokar
968b335f9b
Audit and reduce unstable usage in script
...
Reasons behind existing unstable features:
alloc:
- `Rc.make_unique()`
- `into_raw` / `from_raw` (naming). All over the bindings code.
collections:
- `Vec.push_all()`
- `from_str`
- can be replaced by `.to_owned()`
- `from_raw_buf`
- could be done directly
core:
- `nonzero`
- `UnsafeCell` (`as_unsafe_cell`)
- `Zeroable`
- `Peekable.is_empty`
std_misc:
- Handle stuff
2015-06-10 01:20:06 +05:30
Manish Goregaokar
af364a412e
Audit and reduce unstable usage in layout
...
Reasons behind existing unstable features:
alloc:
- `make_unique()`
- direct calls into `heap::allocate()`, etc
- `boxed::into_raw()` (naming)
collections:
- `slice_chars()` (needs to prove its worth)
core:
- lots and lots of pointer manip
- `raw` stuff
std_misc:
- Handle stuff
- hasher stuff
str_char:
- CharRange
2015-06-10 00:54:14 +05:30
Manish Goregaokar
89d4ee88f4
Audit and reduce unstable usage in profile
...
Reasons behind existing unstable features:
collections:
- `[T].tail()` (naming)
- Could use iterators instead
2015-06-10 00:20:12 +05:30
Manish Goregaokar
c73eaefc47
Audit and reduce unstable usage in net
...
Reasons behind existing unstable features:
std_misc:
- `Handle` usage (API will be replaced and is perhaps broken)
path_ext:
- Checking if a file exists. This is doable from the File directly, but slightly longer
core:
- `FnBox`
alloc:
- `boxed::into_raw()` (naming)
2015-06-10 00:15:09 +05:30
Manish Goregaokar
86add71b4c
Audit and reduce unstable usage in devtools
...
Reasons behind existing unstable features:
core:
- `Reflect` / `Any` stuff
2015-06-10 00:14:39 +05:30
Manish Goregaokar
ea9842723d
Audit and reduce unstable usage in gfx
...
Reasons behind existing unstable features:
alloc:
- weak pointers (may not belong)
- boxed::into_raw and from_raw (naming)
collections:
- `Vec.push_all()` (May be replaced)
- Replace with loop
core:
- `min_by` (#15311 )
- `PI_2` (naming)
rustc_private:
- FnVHasher
- Can be replaced by rust-fnv
std_misc:
- Hash state stuff (no option here unless we want to stop using it)
str_char:
- CharRange usage
- Can be replaced by regular iterators (char_indices)
2015-06-09 23:24:18 +05:30
bors-servo
e09c555a41
Auto merge of #6293 - ecoal95:webgl-objects, r=nox
...
This commit implements:
* WebGLFramebuffer
* WebGLRenderbuffer
* WebGLTexture
And adds the following methods to `WebGLRenderingContext`:
* create{Texture,Framebuffer,Renderbuffer}
* bind{Texture,Framebuffer,Renderbuffer}
* destroy{Buffer,Texture,Framebuffer,Renderbuffer}
Fixes:
* WebGLUniform location shouldn't inherit from WebGLObject.
Known Issues:
* WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this
Also refactors a huge part of the current implementation, to allow
failing on creation of different WebGL objects.
Blocked on https://github.com/servo/gleam/pull/22
A reftest for most of the added functionality is not doable right now,
we need a few more functions in order to upload a texture, for example.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6293 )
<!-- Reviewable:end -->
2015-06-09 10:06:37 -05:00
bors-servo
1c636dd2d0
Auto merge of #6310 - frewsxcv:rm-unused-file, r=Manishearth
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6310 )
<!-- Reviewable:end -->
2015-06-08 23:29:47 -05:00
Corey Farwell
cf20c89224
Remove unused file: components/util/fnv.rs
2015-06-08 19:22:38 -07:00
bors-servo
41095c01a7
Auto merge of #6305 - nox:update-gleam, r=larsbergstrom
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6305 )
<!-- Reviewable:end -->
2015-06-08 12:44:04 -05:00
Anthony Ramine
2fc4b9d4cd
Update gleam to 98f889861aa1c8dee088ac751ab03ca639715bbe
2015-06-08 19:36:07 +02:00
bors-servo
ce30807be5
Auto merge of #6290 - hyowon:fill_or_stroke_style, r=nox
...
The fillStyle and strokeStyle attributes can be either strings(color), CanvasGradients, or CanvasPatterns.
The current implementation only considers strings(color).
r? @nox @jdm @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/6290 )
<!-- Reviewable:end -->
2015-06-08 09:49:13 -05:00
bors-servo
96311aa9b7
Auto merge of #6295 - metajack:cargo-cleanup, r=frewsxcv
...
Overlaps a bunch with #6288 . Putting this here so @frewsxcv can take a look and we can figure out how to merge our work together.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6295 )
<!-- Reviewable:end -->
2015-06-07 13:15:20 -05:00
Jack Moffitt
b5ebbaefe3
Clean up dependencies.
2015-06-07 12:14:38 -06:00
bors-servo
ca6a34a1cd
Auto merge of #6299 - GreenRecycleBin:#6271, r=Ms2ger
...
get_proto_or_iface_array now returns *mut ProtoOrIfaceArray
Fix #6271
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6299 )
<!-- Reviewable:end -->
2015-06-07 10:47:14 -05:00
bors-servo
1587d8a301
Auto merge of #6301 - eddyb:fix-logging-2, r=larsbergstrom
...
Fixes #6103 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6301 )
<!-- Reviewable:end -->
2015-06-06 15:49:56 -05:00
Eduard Burtescu
00e8e5f77d
Use the correct log crate and setup env_logger in main.
2015-06-06 23:20:40 +03:00
bors-servo
78665336e6
Auto merge of #6297 - brson:inline, r=jdm
...
This results in a 14% compile time improvement.
See https://gist.github.com/brson/b48dd03b06c406be68e6
I'm not suggesting you merge this as-is, but you might consider whether removing some of these is worth pursuing.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6297 )
<!-- Reviewable:end -->
2015-06-06 08:25:29 -05:00
bors-servo
493f96b9ab
Auto merge of #6291 - Ms2ger:caption, r=nox
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6291 )
<!-- Reviewable:end -->
2015-06-06 07:45:43 -05:00
Ms2ger
57f575b5ca
Use if let in HTMLTableElement::SetCaption.
2015-06-06 13:19:00 +02:00
ecoal95
9f94d39c9e
Implement new WebGL interfaces and methods
...
This commit implements:
* WebGLFramebuffer
* WebGLRenderbuffer
* WebGLTexture
And adds the following methods to `WebGLRenderingContext`:
* create{Texture,Framebuffer,Renderbuffer}
* bind{Texture,Framebuffer,Renderbuffer}
* destroy{Buffer,Texture,Framebuffer,Renderbuffer}
Fixes:
* WebGLUniform location shouldn't inherit from WebGLObject.
Known Issues:
* WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this
Also refactors a huge part of the current implementation, to allow
failing on creation of different WebGL objects.
Blocked on https://github.com/servo/gleam/pull/22
A reftest for most of the added functionality is not doable right now,
we need a few more functions in order to upload a texture, for example.
2015-06-06 12:14:01 +02:00
Hyowon Kim
5bbfb42e90
Replace fill_color and stroke_color with fill_style and stroke_style in CanvasContextState.
...
The fillStyle and strokeStyle attributes can be either
strings(color), CanvasGradients, or CanvasPatterns.
2015-06-06 16:15:11 +09:00
Daniel Le
15c4f7fe2d
Avoid casting in the callers
...
get_proto_or_iface_array now returns *mut ProtoOrIfaceArray
Fix #6271
2015-06-06 12:22:18 +08:00
Brian Anderson
172fbcad27
Convert inline(always) to inline in CodegenRust and jstraceable.
...
This results in a 14% compile time improvement.
See https://gist.github.com/brson/b48dd03b06c406be68e6
2015-06-05 14:56:11 -07:00
bors-servo
458a532461
Auto merge of #6292 - Wafflespeanut:timestamp, r=jdm
...
Changed the operator and updated the wpt-test for `hr-time`.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6292 )
<!-- Reviewable:end -->
2015-06-05 11:46:48 -05:00
Wafflespeanut
1612f723a8
Timestamp fix for issue #5690
2015-06-05 21:57:19 +05:30
bors-servo
0a93ed26e8
Auto merge of #6294 - mukilan:simplify, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6294 )
<!-- Reviewable:end -->
2015-06-05 09:59:37 -05:00
Mukilan Thiyagarajan
6413526440
Simplify handle_load_start_msg function
2015-06-05 19:43:26 +05:30
bors-servo
ad5846f2e1
Auto merge of #6286 - frewsxcv:bump-url, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6286 )
<!-- Reviewable:end -->
2015-06-04 16:34:40 -05:00
bors-servo
9b5a01e045
Auto merge of #6285 - mbrubeck:nofile, r=metajack
...
* Don't hang silently when passed a non-existant file.
* Fix uncaught exception in `mach run` when Servo fails.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6285 )
<!-- Reviewable:end -->
2015-06-04 15:53:11 -05:00
Matt Brubeck
4b5c43835b
Handle non-zero return codes in mach run
2015-06-04 13:52:23 -07:00
Matt Brubeck
76cf5bb45a
Give a useful error when passed a non-existant file
2015-06-04 13:52:22 -07:00
Corey Farwell
a14c745a6a
Bump rust-url version: 0.2.16 → 0.2.35
2015-06-04 16:45:15 -04:00
bors-servo
0bbc28236a
Auto merge of #6283 - mbrubeck:linkargs, r=nox
...
Fixes #6275 via tomaka/android-rs-glue#58 . r? @larsbergstrom or @glennw
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6283 )
<!-- Reviewable:end -->
2015-06-04 11:36:36 -05:00
Matt Brubeck
8e253f6fd7
Upgrade android-rs-glue
...
Fixes #6275 via tomaka/android-rs-glue#58 .
2015-06-04 08:53:09 -07:00
bors-servo
ccfe29d8f2
Auto merge of #6279 - frewsxcv:flake8, r=jdm
...
Fixes #6236
Also included in this commit are the changes need to make flake8 pass
for the existing python file
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6279 )
<!-- Reviewable:end -->
2015-06-04 10:41:36 -05:00
Corey Farwell
848c57653c
Add flake8 to the tidy process for Python files
...
Fixes #6236
Also included in this commit are the changes need to make flake8 pass
for the existing python file
2015-06-04 11:17:34 -04:00
bors-servo
610de77e23
Auto merge of #6251 - glennw:fix-overflow, r=nox
...
This fixes layers being created with a 3x3 overflow that's not needed.
This exposes https://github.com/servo/servo/issues/6250 , so update the affected reftest to use ahem font until it is fixed.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6251 )
<!-- Reviewable:end -->
2015-06-04 03:53:14 -05:00
Glenn Watson
958adc0f2b
Only count outline width in overflow calculation if outline style is active.
...
This fixes layers being created with a 3x3 border that's not needed.
This exposes https://github.com/servo/servo/issues/6250 , so update the affected reftest to use ahem font until it is fixed.
2015-06-04 13:30:52 +10:00
bors-servo
907c051bd1
Auto merge of #6278 - frewsxcv:patch-3, r=nox
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6278 )
<!-- Reviewable:end -->
2015-06-03 18:30:08 -05:00
Corey Farwell
ddc99190bb
Pass release/dev arguments to command function for jQuery update
2015-06-03 18:45:08 -04:00
bors-servo
cc8ad768b9
Auto merge of #6277 - mbrubeck:expat, r=metajack
...
For servo/libexpat#5
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6277 )
<!-- Reviewable:end -->
2015-06-03 17:25:25 -05:00
Matt Brubeck
bd5747cc1d
Update expat-sys
2015-06-03 15:18:50 -07:00
bors-servo
055182dae1
Auto merge of #6274 - frewsxcv:tidy-all-the-things, r=metajack
...
After #6268 merged, I found out that everything in the tree currently
passes the tidy checker.
---------------
It is worth pointing out that I personally do not know if this is a feature wanted by others. Once I noticed everything was already tidy, I decided to open this PR to start the conversation (if any). I am not convinced this is really a Good Thing, so my feelings would not get hurt if this was closed immediately.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6274 )
<!-- Reviewable:end -->
2015-06-03 11:12:34 -05:00
Corey Farwell
6c8c039409
Run tidy everything in the tree, remove directory whitelist
...
After #6268 merged, I found out that everything in the tree currently
passes the tidy checker.
2015-06-03 12:03:13 -04:00
bors-servo
9aa1d93282
Auto merge of #6268 - frewsxcv:tidy-python, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6268 )
<!-- Reviewable:end -->
2015-06-03 08:04:11 -05:00
bors-servo
b408fa9960
Auto merge of #6265 - servo:reftest_analyzer_documentation, r=metajack
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6265 )
<!-- Reviewable:end -->
2015-06-03 07:22:12 -05:00
bors-servo
5a663c7078
Auto merge of #6272 - jgraham:disable_background_root_103, r=Ms2ger
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6272 )
<!-- Reviewable:end -->
2015-06-03 06:34:44 -05:00
bors-servo
9edc296c46
Auto merge of #6247 - jdm:tracefix, r=Ms2ger
...
This should allow the jQuery testsuite to complete.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6247 )
<!-- Reviewable:end -->
2015-06-03 05:26:26 -05:00