Commit graph

17922 commits

Author SHA1 Message Date
Matt Brubeck
9d05f7c141 Add debug_assert_unit_is_safe_to_copy helper function 2016-05-16 15:13:26 -07:00
Nazım Can Altınova
1f5641cd51 Remove num-traits from compositing 2016-05-17 00:41:46 +03:00
bors-servo
043b375ce3 Auto merge of #11208 - nox:greener-than-hulk, r=mbrubeck
Fix all Windows warnings

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11208)
<!-- Reviewable:end -->
2016-05-16 14:38:26 -07:00
Anthony Ramine
8eb363528b Fix all Windows warnings 2016-05-16 23:26:12 +02:00
Anthony Ramine
429c82bdf1 Implement --pref in test-wpt 2016-05-16 23:09:50 +02:00
Evrim Öztamur
b9d3310d00 Remove misleading nonexistant flag hint 2016-05-16 21:27:15 +02:00
bors-servo
3a28aad349 Auto merge of #11206 - mbrubeck:warnings, r=nox
Fix unused item warning on 32-bit platforms

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11206)
<!-- Reviewable:end -->
2016-05-16 11:57:50 -07:00
Matt Brubeck
07f213cb87 Fix unused item warning on 32-bit platforms 2016-05-16 11:45:27 -07:00
Matt Brubeck
36699c5748 Support vertical-align in geckolib 2016-05-16 11:34:02 -07:00
Matt Brubeck
f998a6113e Add some safe setters for nsStyleCoord 2016-05-16 11:33:58 -07:00
bors-servo
9c6e6cb8d8 Auto merge of #11204 - mbrubeck:warnings, r=Manishearth
Fix unused import warning in script::dom::bindings::js

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11204)
<!-- Reviewable:end -->
2016-05-16 10:40:17 -07:00
bors-servo
c921fa6d99 Auto merge of #11200 - paulrouget:quit-on-escape-pref, r=asajeffrey
Make quit-on-escape optional

For browserhtml, we don't want Servo to shut down when the user presses the escape key.

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #11194

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because I don't know how to test shutdown and how to dispatch a non-DOM key event

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11200)
<!-- Reviewable:end -->
2016-05-16 09:51:52 -07:00
Matt Brubeck
eaf4c5e5c5 Fix unused import warning in script::dom::bindings::js 2016-05-16 09:19:55 -07:00
bors-servo
87fd387fa7 Auto merge of #11201 - servo:jdm-patch-1, r=KiChjang
Suggest a faster tidy.

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because documentation update.

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11201)
<!-- Reviewable:end -->
2016-05-16 09:00:45 -07:00
Paul Rouget
911a67b400 Make quit-on-escape optional 2016-05-16 17:39:25 +02:00
bors-servo
66acb1039e Auto merge of #11199 - servo:icon, r=metajack
On desktop, use the same app icon we use on Android

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11199)
<!-- Reviewable:end -->
2016-05-16 07:33:10 -07:00
Josh Matthews
27d7d940bd Suggest a faster tidy. 2016-05-16 09:48:14 -04:00
Patrick Walton
981ad2d89c glutin: On desktop, use the same app icon we use on Android.
This makes the app easier to pick out in Instruments.app and so forth.
2016-05-16 15:27:49 +02:00
bors-servo
252b0d8fa5 Auto merge of #11188 - nox:n-better-than-z, r=Ms2ger
Use JS_NewStringCopyN for the representation of interface objects

This removes the need for the final null byte and we can make NonCallbackInterfaceObjectClass::new safe again I guess.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11188)
<!-- Reviewable:end -->
2016-05-16 06:26:13 -07:00
Anthony Ramine
4af3e9028d Use JS_NewStringCopyN for the representation of interface objects
This removes the need for the final null byte and we can make
NonCallbackInterfaceObjectClass::new safe again I guess.
2016-05-16 15:22:07 +02:00
Anthony Ramine
d0b7a9f533 Update servo-glutin to 0.4.17 2016-05-16 15:14:31 +02:00
Anthony Ramine
27b00c62d9 Update cocoa to 0.3.3 2016-05-16 15:14:07 +02:00
bors-servo
2c674d0397 Auto merge of #11192 - perlun:remove-unused-imports, r=Manishearth
Removed unused imports

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11185
- [X] These changes do not require tests because it only removes dead code.

----

This fixes #11185.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11192)
<!-- Reviewable:end -->
2016-05-15 15:41:16 -07:00
Per Lundberg
2f7ed1d73e Removed unused imports
This fixes #11185.
2016-05-15 22:24:26 +03:00
bors-servo
c193af8c32 Auto merge of #11186 - perlun:reformat-servo-css, r=Wafflespeanut
Reformatted servo.css

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because it doesn't introduce new functionality.

----

As discussed in #10553, we should consider splitting the long lines in this file onto separate lines (one per css attribute), to make it more readable and maintainable in general.

I also added blank lines where I felt it was applicable.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11186)
<!-- Reviewable:end -->
2016-05-15 01:21:29 -07:00
bors-servo
f8fb33be42 Auto merge of #11187 - aneeshusa:rename-inherited-svg, r=emilio
Rename SVGInherited to InheritedSVG

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they simply rename a struct

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

I saw this listed on https://public.etherpad-mozilla.org/p/aligning-style-structs.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11187)
<!-- Reviewable:end -->
2016-05-14 16:45:11 -07:00
Aneesh Agrawal
5457169871 Rename SVGInherited to InheritedSVG 2016-05-14 17:44:53 -04:00
Per Lundberg
d2469f0cde Reformatted servo.css
As discussed in #10553, we should consider splitting the long lines in this file onto separate lines (one per css attribute), to make it more readable and maintainable in general.

I also added blank lines where I felt it was applicable.
2016-05-15 00:27:49 +03:00
bors-servo
7bede60272 Auto merge of #10668 - dzbarsky:read_pixels, r=emilio
Implement WebGLRenderingContextBase::readPixels().

@emilio
Anything obviously wrong stick out to you? Haven't had a chance to debug why tests/wpt/web-platform-tests/webgl/conformance-1.0.3/conformance/programs/gl-bind-attrib-location-long-names-test.html and co. get the wrong results from ReadPixels.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10668)
<!-- Reviewable:end -->
2016-05-14 14:13:44 -07:00
bors-servo
dfd0883663 Auto merge of #11183 - servo:rustup, r=emilio
Update to Rust 1.10.0-nightly (2b79e05a0 2016-05-13)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11183)
<!-- Reviewable:end -->
2016-05-14 12:52:07 -07:00
Per Lundberg
a2695709bf Added info about browserhtml
I feel it would make sense to make mention of this here, especially since Browser.html is part of the [road map](https://github.com/servo/servo/wiki/Roadmap) for what we aim to achieve during the year.
2016-05-14 22:25:37 +03:00
Anthony Ramine
78e3b1a326 Update to Rust 1.10.0-nightly (2b79e05a0 2016-05-13) 2016-05-14 21:16:48 +02:00
bors-servo
e2990766dc Auto merge of #11180 - mbrubeck:text-cleanup, r=pcwalton
Minor cleanup and optimizations in glyph/style caching

Gets rid of some unnecessary String and Arc clones during text shaping and style matching.

r? @pcwalton

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11180)
<!-- Reviewable:end -->
2016-05-14 09:06:53 -07:00
bors-servo
d6509dc4c6 Auto merge of #11178 - mrmiywj:use-doc-base-URL, r=nox
Make Node::BaseURI use the document's base URL

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11145  (github issue number if applicable).

Either:
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11178)
<!-- Reviewable:end -->
2016-05-14 01:12:32 -07:00
mrmiywj
6ade433196 Make Node::BaseURI use the document's base URL
update expectations
2016-05-14 14:44:06 +08:00
Matt Brubeck
dc6be7bba5 Remove unnecessary clone in LRUCache::touch 2016-05-13 18:20:59 -07:00
Matt Brubeck
d2717c4475 Eliminate unneeded clones in find_or_create
...and use it to eliminate duplicate hash lookups and string copies in shape_text.
2016-05-13 18:20:25 -07:00
Matt Brubeck
1c5ec6f3ec Make some Font fields private 2016-05-13 16:33:20 -07:00
Matt Brubeck
4361f92067 Remove unnecessary ServoFont type alias 2016-05-13 16:20:59 -07:00
Matt Brubeck
45dc587d42 Remove unnecessary pub 2016-05-13 16:18:47 -07:00
bors-servo
9e766f4d6e Auto merge of #11177 - metajack:cargo-up, r=jdm
Update Cargo to 2016-05-12

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because it doesn't affect the code

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11177)
<!-- Reviewable:end -->
2016-05-13 14:11:08 -07:00
Jack Moffitt
b9db81d45c Update Cargo to 2016-05-12 2016-05-13 13:00:29 -06:00
bors-servo
21be9e8768 Auto merge of #11176 - mbrubeck:stylo-zindex, r=bholley
Support z-index in geckolib

r? @bholley

cc @heycam

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11176)
<!-- Reviewable:end -->
2016-05-13 11:54:42 -07:00
Matt Brubeck
b37bb45919 Support z-index in geckolib 2016-05-13 11:53:57 -07:00
bors-servo
3990191431 Auto merge of #11174 - connorimes:hbs-sys-021, r=metajack
Update hbs sys dependencies

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they only update dependencies

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11174)
<!-- Reviewable:end -->
2016-05-13 09:18:49 -07:00
Connor Imes
88ea598211 Update hbs sys dependencies 2016-05-13 10:52:15 -05:00
bors-servo
ea84601bf0 Auto merge of #11173 - servo:requests, r=nox
Stop using JSAutoRequest.

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

Either:
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because no functional change

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11173)
<!-- Reviewable:end -->
2016-05-13 06:41:22 -07:00
Ms2ger
735480c184 Stop using JSAutoRequest. 2016-05-13 15:34:38 +02:00
bors-servo
221db56b08 Auto merge of #11155 - emilio:codegen-dict-keyword, r=Ms2ger
codegen: Fix dictionary handling and semantics

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #11152 (github issue number if applicable).

Either:
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

Fixes #11152

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11155)
<!-- Reviewable:end -->
2016-05-13 02:47:08 -07:00
Emilio Cobos Álvarez
91101f6226
codegen: Throw a more descriptive invalid enum message 2016-05-13 11:44:39 +02:00