Commit graph

12333 commits

Author SHA1 Message Date
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
Nicholas Nethercote
9b4d39d6d1 Make LOCAL_CONTEXT_KEY safe and non-leaky.
`LOCAL_CONTEXT_KEY` is currently a `Cell<*mut LocalLayoutContext>`. The use
of the raw pointer means that the `LocalLayoutContext` is not dropped when
the thread dies; this leaks FreeType instances and probably other
things. There are also some unsafe getter functions in `LayoutContext`
(`font_context`, `applicable_declarations_cache` and
`style_sharing_candidate_cache`) that @eddyb says involve undefined
behaviour.

This changeset changes `LOCAL_CONTEXT_KEY` to
`RefCell<Option<Rc<LocalLayoutContext>>>`. This fixes the leak and also
results in safe getters.

(Fixes #6282.)
2015-06-04 20:57:34 -07:00
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
bors-servo
bb95e07f8e Auto merge of #6231 - AopicieR:get_elements_by_name, r=Ms2ger
Fixes #1745 
Should I adjust the expected result of the corresponding wpt test cases?

html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.html
html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.xhtml

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6231)
<!-- Reviewable:end -->
2015-06-03 04:14:18 -05:00
James Graham
9af3ceefd9 Disable unstable background-root-103 test 2015-06-03 10:00:50 +01:00
bors-servo
2e93ae7f76 Auto merge of #6267 - brson:system-rust, r=SimonSapin
The existing code for setting up the environment assumes that
the directory layout containing rust and cargo conforms to the
one used by rust-installer's tarballs. This makes overriding
the system root awkward for simple cases where I want to test
my own build directly from the rust build directory. This
patch just adds a second path to PATH and LD_LIBRARY_PATH
to accomodate both disk layouts.

Conflicts:
	python/servo/command_base.py

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6267)
<!-- Reviewable:end -->
2015-06-03 01:54:00 -05:00
bors-servo
b0f3417cff Auto merge of #6219 - zmike:favicons_and_stringlOWWW-MY-HEAD, r=pcwalton
Getting these down to the embedding API level required that I redo the bindings generator again, so this is more commits than anticipated.

@mbrubeck @Manishearth @pcwalton but NOT @larsbergstrom so don't even look at this.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6219)
<!-- Reviewable:end -->
2015-06-03 00:27:41 -05:00
bors-servo
2ca606aaba Auto merge of #6188 - Manishearth:sizeof, r=nnethercote
Fixes #5914

r? @nnethercote for the gfx changes

r? @kmcallister or @jdm for the plugin

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6188)
<!-- Reviewable:end -->
2015-06-02 23:48:03 -05:00
Manish Goregaokar
d347aeda38 fix rebase conflicts 2015-06-03 09:56:43 +05:30
bors-servo
94b4d12cc3 Auto merge of #6269 - zmike:glutinup, r=metajack
r+? @larsbergstrom @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6269)
<!-- Reviewable:end -->
2015-06-02 23:07:22 -05:00
Mike Blumenkrantz
3316dd6798 update glutin 2015-06-02 22:41:04 -04:00