Commit Graph

6338 Commits

Author SHA1 Message Date
Jack Moffitt
cf58fa761d servo: Merge #11143 - Update skia and azure to get ccache support (from metajack:ccache-skia-azure); r=mbrubeck
Thank you for contributing to Servo! Please add an `X` inside each `[ ]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build` 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 change only compilation

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

Source-Repo: https://github.com/servo/servo
Source-Revision: f8b7e1c6ae66a0198e38fb959cd959a6ef69b84c
2016-05-11 18:22:46 -07:00
Rohit Zambre
e8e9371fba servo: Merge #10995 - Interval + CSV time-profiling (from rzambre:master); r=larsbergstrom
This PR fixes #10886. The -p option can be followed by either an interval number or a CSV filename.
* In the interval profiling, the profiler output would be spitted out to the terminal periodically.
Example usage: **./mach run -p 1 http://www.google.com** will print the time-profiling output to the terminal every second.

* In the CSV file profiling, a CSV file will be generate upon termination of servo.
Example usage: **./mach run -x -o out.png -p out.csv http://www.google.com** will generate out.csv upon termination of Servo.

Source-Repo: https://github.com/servo/servo
Source-Revision: d4315855aaddb9d9ed26cd730e9b75e15500c3bd
2016-05-11 17:19:53 -07:00
aeischeid
0ca1c50fb0 servo: Merge #10713 - add tidy test for space after ":" in stucts (from aeischeid:master); r=jdm
Addresses issue #10702

the tidy self-test doesn't seem to catch the `member_name:"Foo"` line like it should. the regex follows similar pattern in the file and works in my regex tester tool, so not really sure what is going on there.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8c2c0bd964bfbf1a2d7494bd8fbbdd263173ef7d
2016-05-11 16:27:37 -07:00
Bobby Holley
dad21c2a95 servo: Merge #11121 - Hoist gecko bindings into their own crate (from bholley:hoist_bindings); r=mbrubeck
This will be helpful for leveraging the bindings with our nsIAtom-backed
string_cache replacement.

Source-Repo: https://github.com/servo/servo
Source-Revision: 49fd06089de8357c0d139f6aa623cde55ccd9ef0

--HG--
rename : servo/ports/geckolib/bindings.rs => servo/ports/geckolib/gecko_bindings/bindings.rs
rename : servo/ports/geckolib/gecko_style_structs.rs => servo/ports/geckolib/gecko_bindings/structs.rs
rename : servo/ports/geckolib/tools/.gitignore => servo/ports/geckolib/gecko_bindings/tools/.gitignore
rename : servo/ports/geckolib/tools/README.md => servo/ports/geckolib/gecko_bindings/tools/README.md
rename : servo/ports/geckolib/tools/regen_style_structs.sh => servo/ports/geckolib/gecko_bindings/tools/regen_style_structs.sh
rename : servo/ports/geckolib/tools/setup_bindgen.sh => servo/ports/geckolib/gecko_bindings/tools/setup_bindgen.sh
2016-05-11 14:59:04 -07:00
Matt Brubeck
633af7b8d2 servo: Merge #11134 - Explicitly list inputs to the style crate's build script (from mbrubeck:style-rerun-if-changed); r=metajack
This avoids unncessary build script runs caused by changes to unrelated files.

Note: Adds a dependency on https://crates.io/crates/walkdir which is MIT licensed and maintained by BurntSushi.

r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: a85db48623d8f5b5dbddbcc1f1ba0eaa0b531249
2016-05-11 13:22:39 -07:00
Matt Brubeck
ae38180d6b servo: Merge #11122 - Use the same build environment and features for CEF, Servo, Gonk, Geckolib (from mbrubeck:unify-builds); r=larsbergstrom
* Remove unnecessary dependencies and features from top-level Cargo.tomls.  The features for each crate will be computed based on the union of features specified in the dependency graph.  Specifying the same ones again just adds more ways for them to get out of sync.
* Move all cargo build environment variables into CommandBase

Fixes #11112. r? @metajack

(Not included: CI test to make sure #11112 doesn't regress again.)

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f76e3ba74a11f1f4bb46f12e17c06270175908f
2016-05-11 12:35:32 -07:00
Matt Brubeck
1edc0e5780 servo: Merge #11135 - Override $CARGO_HOME only if cargo-home-dir is in .servobuild (from mbrubeck:cargo-home); r=larsbergstrom
This preserves the fix from #11097 in the situation where `$CARGO_HOME` and `cargo-home-dir` in `.servobuild` are both present: `.servobuild` should win.

But it changes the behavior when `$CARGO_HOME` is present and `.servobuild` is not:  Then `$CARGO_HOME` should be used.

We now check the following values in order of priority and use the first one that is found:

1. `cargo-home-dir` in `.servobuild`
2. `CARGO_HOME` in the environment
3. default value (`<servo-repo>/.cargo`)

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: fcebfcc1130b7b3e74f14c8375f825f148e0f152
2016-05-11 11:37:05 -07:00
Zhen Zhang
38c9a9b49c servo: Merge #11076 - Implement File DOM object interface (from izgzhen:fileapi); r=Ms2ger
* Rewrite constructors of `Blob` and `File` with `DataSlice` as argument
* Update WebIDL of `Blob` and `File`
* Implement missing interfaces of `File` (However, due to lack of working `ArrayBuffer/ArrayBufferView` in `Blob`, so it still differs from spec)
* Update WPT test `File-constructor.html`

Source-Repo: https://github.com/servo/servo
Source-Revision: 392135bd0c2f512a0d632a7d76e667bc9af8f4a7
2016-05-11 10:28:05 -07:00
Josh Matthews
4c97edbc2c servo: Merge #11118 - Create pull request template (from servo:jdm-patch-1); r=metajack
r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 81246a7b61214fbbf7cf32208043afa670af1a7e
2016-05-11 08:36:14 -07:00
Josh Matthews
006edb3c13 servo: Merge #11113 - Trace and finalize BrowsingContext (from jdm:trace_browsingcontext); r=Ms2ger
This is a prerequisite for merging #11044, and is an important correctness fix on its own.

r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 91cabf8427ae8a7693a56c11abfd32b5058c21de
2016-05-11 05:43:41 -07:00
Zhen Zhang
8dcba1aa4d servo: Merge #11029 - Add FileManagerThread (from izgzhen:filemanager_thread); r=Manishearth
This is intended to support the File API implementation. Basically an event loop with three kinds of messages:

+ Select a file
+ Read a file with ID
+ Delete the ID from manager-owned map

The design decision in this PR is not the final (or best I think) version, welcome reviews :)

TODOs:

- [x] Add multiple file selection

Source-Repo: https://github.com/servo/servo
Source-Revision: b61ad4190f7fb7d4fa32e01a0e3db77a912cb7cf
2016-05-11 04:28:58 -07:00
Patrick Walton
81a194f9b7 servo: Merge #11125 - layout: Take margins in the inline direction into account when guessing the inline-size of block formatting contexts (from pcwalton:reddit-block-formatting-context-fix); r=mbrubeck
Fixes the layout on reddit.com.

Partially addresses #10571.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 98863746aecea688884ca5a0e3c2f6f139f6e787
2016-05-11 00:41:00 -07:00
Cameron McCormack
f1e8b00a0b servo: Merge #11104 - Support outline-width in geckolib (from heycam:outline-width); r=bholley
While here, we make border-*-width round to pixels like Gecko does.

Source-Repo: https://github.com/servo/servo
Source-Revision: 190103a7d7dee0925bb66341d9bc2387a1572a75
2016-05-10 22:20:51 -07:00
Shing Lyu
43d6b05ad9 servo: Merge #10987 - Bug #10181 - Implement *-reverse flex-directions (from shinglyu:flex-reverse); r=shinglyu
Source-Repo: https://github.com/servo/servo
Source-Revision: 20f0be20d702af3c6f99c929191669b183606eb5
2016-05-10 19:51:04 -07:00
Cameron McCormack
a66dd06def servo: Merge #11086 - Support border/outline-radius properties in geckolib (from heycam:radius); r=bholley
<s>Because of the way Gecko stores outline-width in nsStyleOutline::mOutlineWidth (i.e., as its specified value for keywords) we need separate property implementations for servo/gecko products.</s>

The -moz-outline-radius parsing is a bit of a hack; I was just avoiding the effort of factoring out the parsing into a separate method. Let me know if I should do that.

<s>Gecko-side changes are https://bugzilla.mozilla.org/show_bug.cgi?id=1271168.</s>

Source-Repo: https://github.com/servo/servo
Source-Revision: a834bc1ec700ca6447ee13bda9714f78381f2f80
2016-05-10 19:00:09 -07:00
Matt Brubeck
efac4d0261 servo: Merge #11119 - Make --profile-trace-path work without -p (from mbrubeck:trace-path); r=jdm
Currently `--profile-trace-path` has no effect if `-p` isn't also passed, because the time profiler doesn't start.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8fab68d6a9543248b1e798dfe53036e33654e8cd
2016-05-10 16:00:45 -07:00
Matt Brubeck
1af370c09c servo: Merge #11115 - Use openssl-verify to check certificate + hostname (from mbrubeck:openssl-verify); r=jdm
Fixes #4954.  r? @jdm

This is based on hyperium/hyper#472, though it doesn't re-use that code directly because Servo configures its own OpenSSL context.

Source-Repo: https://github.com/servo/servo
Source-Revision: 40be84df26ce3ce80851e751374154c015506921
2016-05-10 15:00:48 -07:00
Patrick Walton
b6bde70e16 servo: Merge #11103 - gfx: Map CSS normal font weight to Regular font weight on the Mac (from pcwalton:mac-font-matching); r=metajack
This series of commits fixes #9487, and improves the look of nytimes.com among others.

r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 1fd9c5583455b873fca1c95b2784f969870073bd
2016-05-10 14:11:35 -07:00
Ulf Nilsson
abe21b5d60 servo: Merge #11109 - Make text-align: justify incremental layout safe (from kaksmet:justify-fix); r=mbrubeck
Closes #10499
Closes #9057

Source-Repo: https://github.com/servo/servo
Source-Revision: 069be91e8451d197c8f66790fbf53086f22150d7
2016-05-10 12:54:26 -07:00
Fabrice Desré
6f84ad545f servo: Merge #11041 - armv7 update (from fabricedesre:armv7); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 82cc51280e6819ab9f4cb2ef9c4d80266d2fce8a
2016-05-10 11:54:42 -07:00
Alan Jeffrey
eb73fbef1e servo: Merge #11049 - Added webdriver delete session command (from asajeffrey:webdriver-delete-session); r=jgraham
Delete session is needed by the web platform test `webdriver/navigation.py`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0c673ef3a2adb3ffd8c3181ee4ec5546d610db5b
2016-05-10 11:05:12 -07:00
Tetsuharu OHZEKI
b9d8671144 servo: Merge #11097 - Override always 'CARGO_HOME' env variable (from saneyuki:cargo_home); r=larsbergstrom
This use always `cargo-home-dir` in `/.servobuild` even if you set `CARGO_HOME` in your shell.

If you use [racer][racer] with [rustup (multirust.rs)][rustup], you may set `CARGO_HOME` env variable to your shell. Then the previous code would be a problem which does not use `cargo-home-dir` in `/.servobuild`.

[racer]: https://github.com/phildawes/racer
[rustup]: https://github.com/rust-lang-nursery/rustup.rs

Source-Repo: https://github.com/servo/servo
Source-Revision: 0617727f5b58d1c4ebb10cf081f5952b7961fbf4
2016-05-10 08:20:47 -07:00
Nick Fitzgerald
c11fd6b931 servo: Merge #11098 - Update trace-dump.{js,css} from upstream (from fitzgen:update-trace-dump); r=jdm
Part of making the trace-dump.js code unit testable was moving it out to another
repo. This brings in all the changes made while writing unit tests, and making
the code more unit testable.

Unfortunately, there are a lot of whitespace changes; here is the diff ignoring whitespace: https://pastebin.mozilla.org/8870346

Fixes #10905.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 835f443865fbaa8784722ad6f950a2c8879fab31
2016-05-10 06:34:32 -07:00
Daniel
bb11573405 servo: Merge #11072 - Implement IsShader fn and IsTexture fn for WebGLRenderingContext (from DDEFISHER:master); r=emilio
fixes #11064

Source-Repo: https://github.com/servo/servo
Source-Revision: f45a99c9fe5a4b05dd0d27f129d53ed1f75ea8ff
2016-05-10 03:16:20 -07:00
Tetsuharu OHZEKI
3867862e33 servo: Merge #11090 - Move ConvertPipelineIdFromWebRender to compositing (from saneyuki:fix11082); r=jdm
Fix #11082

Source-Repo: https://github.com/servo/servo
Source-Revision: 500b0a6d36f5f7524ed817b0b49ad57181c1576b
2016-05-09 13:50:05 -07:00
Patrick Walton
969a1ef5d7 servo: Merge #10937 - gfx: Map sans-serif to Helvetica on Mac and DejaVu Sans on Linux (from pcwalton:mac-helvetica); r=metajack
This matches what I believe the OS native defaults to be.

Partially addresses #9487.

r? @metajack
cc @paulrouget

Source-Repo: https://github.com/servo/servo
Source-Revision: 180a9813aa5ecce0a3013cdd30c1ef99ed1d1f6d
2016-05-09 13:02:23 -07:00
Matt Brubeck
b33763b392 servo: Merge #11096 - Profile time spent saving the screenshot image (from mbrubeck:profile-image-saving); r=metajack
I did this to see if it was a significant factor in automated test runs.  (Spoiler: it isn't.)

Source-Repo: https://github.com/servo/servo
Source-Revision: 7b8bb0c2485eb46303d97918d91fce73bd98fea9
2016-05-09 10:21:00 -07:00
Ms2ger
dd4a5e5242 servo: Merge #11092 - Move some code from ServoThreadSafeLayoutNode::text_content into script (from Ms2ger:text_content); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 71eaba2c352fa714198bb65737476d75384e6883
2016-05-09 08:57:05 -07:00
Michael Howell
da374f073c servo: Merge #11022 - Use tag names in all user-agent selectors (from notriddle:master); r=SimonSapin
Fixes #11004

Source-Repo: https://github.com/servo/servo
Source-Revision: 58a9b31de274d952a390f672fdc541c7d502ad59
2016-05-09 07:34:08 -07:00
Connor Brewster
c4277e661c servo: Merge #11093 - Update xml5ever (from cbrewster:update_xml5ever); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 3bd6c2088bc6e0e70f8e7024270706f3c76b03fc
2016-05-09 06:42:08 -07:00
AgostonSzepessy
4fc3b7fe82 servo: Merge #9890 - update.sh downloads all *.py tests from mozilla central (from AgostonSzepessy:update-webidl-tests); r=nox
components/script/dom/bindings/codegen/parser/update.sh downloads all *.py tests from https://dxr.mozilla.org/mozilla-central/source/dom/bindings/parser/tests

Source-Repo: https://github.com/servo/servo
Source-Revision: b054cb82a6b50b07209c9a8670076d1d9ed61605
2016-05-09 05:04:57 -07:00
Kosov Eugene
531ca297be servo: Merge #11084 - move trait ConvertPipelineIdToWebRender to a better place (from kevgs:layout_traits); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 9a8c81773a7dc51301e52ce3f02f8ea55984365a
2016-05-09 03:14:03 -07:00
Kosov Eugene
a5dbc07d8a servo: Merge #11083 - move struct ImageMetadata to a better place (from kevgs:image_metadata); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 33fa63a3c5f2f2df27b68ca67cf46bf9788d8723
2016-05-09 02:25:37 -07:00
Adrian Utrilla
dab36bd33c servo: Merge #11073 - Added tox.ini (from autrilla:tox); r=Ms2ger
The default maximum line length Python linters use is 79, so a bunch of editor plugins complain about line lengths, unless you have a tox.ini telling the linter to ignore line lengths (E501) explicitly.

Source-Repo: https://github.com/servo/servo
Source-Revision: c3323f3c70ab53e5fe2f9aae7ba26b1a21cd622a
2016-05-09 01:37:09 -07:00
mrmiywj
6cee307af5 servo: Merge #11051 - 'closeevent' argument for Document::createEvent (from mrmiywj:closeevent-argument); r=Ms2ger
Add "close event" argument for Document::createEvent
Fixes #10737

Source-Repo: https://github.com/servo/servo
Source-Revision: a76db9af54692f47ca592b062c1165fbc5ed2433
2016-05-09 00:48:41 -07:00
Anthony Ramine
90376e75e6 servo: Merge #11080 - Update Rust to 2016-05-07 (from servo:rustup); r=KiChjang
WOOOO RUST_NEW_ERROR_FORMAT

Source-Repo: https://github.com/servo/servo
Source-Revision: 06c2ab79e6002a41cae0555260bd3be0a7b54562
2016-05-08 03:57:09 -07:00
Adrian Utrilla
4833c5ded6 servo: Merge #11067 - Mach now shows stderr when a virtualenv or pip call fails (fixes #11055) (from autrilla:mach-errors); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: c226bf85a9476a7a701a69974dfa0893c0e6bcb5
2016-05-07 13:15:40 -07:00
Matt Brubeck
b40d3af015 servo: Merge #11032 - Filter out whitespace glyphs from display list (from mbrubeck:no-whitespace); r=pcwalton
Fixes #10244. r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: df8008cfe6a0113ae9153e9eb3424f8b3a4030e8
2016-05-07 11:05:14 -07:00
UK992
c0899a0bc6 servo: Merge #11066 - Remove auto and try branch from appveyor.yml (from UK992:appveyor); r=larsbergstrom
Closes #9953

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: e2e495e58e85aaab620d7a15123810d2fa748c2c
2016-05-07 07:27:18 -07:00
Bobby Holley
3fb5bcc6cc servo: Merge #11058 - Geckolib: minor robustness fixes (from bholley:minor_wikipedia_fixes); r=mbrubeck,bholley
Source-Repo: https://github.com/servo/servo
Source-Revision: aa62a1466e86482822f4b4325f232fabdc12c0ca
2016-05-07 04:25:31 -07:00
Matt Brubeck
ec3d2c19c3 servo: Merge #11054 - Update hyper, openssl, wayland, threadpool, offscreen_gl_context (from mbrubeck:always-be-updating); r=Ms2ger
Gets rid of duplicate versions of bitflags and xml-rs!

Source-Repo: https://github.com/servo/servo
Source-Revision: e94f489e55e0fafed1c88b4d8f833f23545fc48b
2016-05-07 03:19:24 -07:00
Matt Brubeck
62459e1c7b servo: Merge #11039 - Remove redundant code in whitespace stripping (from mbrubeck:strip-trailing); r=pcwalton
LineBreaker calls Fragment::strip_trailing_whitespace_if_necessary and then recalculates the fragment's inline size.  But this isn't necessary because strip_trailing_whitespace_if_necessary already recalculates the size.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: f80641e7a16b832ce755cf936ed9ea6a9289fda9
2016-05-06 21:53:27 -07:00
zakorgy
a0cd31e623 servo: Merge #11028 - Remove BluetoothDevice members (from szeged:webbluetooth); r=jdm
Five of the BluetoothDevice members has been deleted in the spec:
8d148ba3c3

These were the vendorID, vendorIDSource, deviceClass, productID, productVersion.

Source-Repo: https://github.com/servo/servo
Source-Revision: a153e20c5503b6720d7abbfe36acfdda33a8d4dd
2016-05-06 17:07:55 -07:00
askeing
fc61208984 servo: Merge #10821 - Checking the browsing_context before change title (from askeing:fix_10782); r=jdm
fix #10782

Source-Repo: https://github.com/servo/servo
Source-Revision: 17ba9fb5da73e6edd265c8e126344259e897c095
2016-05-06 14:20:45 -07:00
Fabrice Desré
cfb82bae7b servo: Merge #11042 - Fix a build warning in compositor.rs (from fabricedesre:compositing-warning); r=metajack
Stops the compiler complaining about `root_pipeline` being an unused variable.

Source-Repo: https://github.com/servo/servo
Source-Revision: 29ed65016047ee10dabf18894ba00ece6227e865
2016-05-06 08:10:23 -07:00
Maciej Skrzypkowski
c52bc44160 servo: Merge #11050 - Update cssparser to fix CSS.escape test failures (from mskrzypkows:css_issue); r=Ms2ger
Fixes #10685

Source-Repo: https://github.com/servo/servo
Source-Revision: d7fa1d8eeda0fa5c3007fa81e97a2f9a631c3eb4
2016-05-06 06:39:18 -07:00
Olaf Buddenhagen
43797c2d3d servo: Merge #11013 - mach run --debug: Use nicer syntax in rust-gdb/rust-lldb check (from antrik:rust-gdb-cleanup); r=Ms2ger
After actually reading a Python tutorial, I realised this can be handled
in a more elegant fashion :-)

Source-Repo: https://github.com/servo/servo
Source-Revision: 283eb4129664593f050e95c092e672a18f4658fc
2016-05-06 05:43:58 -07:00
Cameron McCormack
8e6b901b3f servo: Merge #11045 - Add Servo_GetComputedValuesForOtherNonElement (from heycam:non-element); r=bholley
Source-Repo: https://github.com/servo/servo
Source-Revision: 50f2349551228f5773c431a3cc3f42e2018ba454
2016-05-06 04:30:47 -07:00
Matt Brubeck
6fb78368b3 servo: Merge #11037 - Don't let restyle damage infect siblings (from mbrubeck:parent-damage); r=pcwalton
Currently `compute_layout_damage` does the following for each child of the node it's processing.

1. Update the child with damage from the parent.
2. Update the parent with damage from the child.

When these steps are repeated for the next child, the parent's damage may include flags that came from its previous sibling(s).  This means that damage ends up propagating to later siblings, and not just between parents and children as indended.

This patch propagates the same damage to all children, not including any damage from their siblings.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: bd871d613e9ed1ae4b7f1674275e69ba6da6133b
2016-05-06 02:01:03 -07:00
Cameron McCormack
d75cddcc7b servo: Merge #11043 - Pass in string lengths to Gecko_GetAttrAsUTF8 (from heycam:attr); r=bholley
Source-Repo: https://github.com/servo/servo
Source-Revision: 0558687d71295023b27860436e7a5aa5da7f49d0
2016-05-05 23:51:54 -07:00