Commit Graph

4777 Commits

Author SHA1 Message Date
Prabhjyot Singh Sodhi
7f352ddb9a servo: Merge #7470 - implemented a pass-through mark_as_root for FlexFlow (from psdh:flexflow); r=pcwalton
Fixes #7467

Source-Repo: https://github.com/servo/servo
Source-Revision: 23d1416cc23d1fb11741a17de17cf79e7591de2b
2015-08-31 18:28:14 -06:00
Glenn Watson
fef23dea81 servo: Merge #7482 - Update glutin to get android build fix (from glennw:glutin-update); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: dbf8c9d2bca87b3e9f656b72f2ac05f8688417ba
2015-08-31 16:58:07 -06:00
Corey Farwell
2186c6c262 servo: Merge #7478 - Update spec link pattern to reflect impl signature changes (from frewsxcv:spec-link-tidy-fix); r=jdm
Relevant to #7416

Source-Repo: https://github.com/servo/servo
Source-Revision: 7474b295104e75c013849e104704019dc4801c91
2015-08-31 15:48:24 -06:00
Bryan Bell
c95fdd3382 servo: Merge #7370 - gfx: Border radius support for asymmetric sized borders (from bjwbell:bugfix-unequal-borders); r=pcwalton
When the border-top/right/bottom/left-widths are not equal, the angle on the border corner arc separating the borders isn't PI/4.

For instance if the top border width is much larger than the left border width then most of the border corner should be drawn using the top border color.

This change adds support for calculating the correct angle in the border
corner arc for switching from one border to another e.g. the left border
to the top border.

It supports elliptical border radii for when elliptical border radii are
added.

A ref test is also included.

r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: afc2c381db9c85eba3c10e87966351f77678dc6e
2015-08-31 14:58:33 -06:00
wilmoz
29f74a2734 servo: Merge #7475 - Make test-tidy check that braces have spaces before or after them (from wilcus:checkBracesSpaces); r=jdm
https://github.com/servo/servo/issues/7413
Posible future/past bug fixed in components/script/timers.rs

Source-Repo: https://github.com/servo/servo
Source-Revision: 60c72f601c4dd7cfbc8a4a983099a4b323f1516a
2015-08-31 13:18:23 -06:00
Matt Brubeck
b58fd6468e servo: Merge #7434 - Remove unused font shaping code and flags (from mbrubeck:drop-table); r=pcwalton
r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 108251bece897b96a8b205df22e7d3e790979331
2015-08-31 12:20:49 -06:00
Avi Weinstock
d73f17c92b servo: Merge #7471 - Prevent ClipboardContext::new from panicing on OSX if NSPasteboard#ge… (from aweinstock314:update-clipboard-20150831); r=Manishearth
…neralPasteboard fails (https://github.com/servo/servo/issues/7380).

8c4c31e73a

Source-Repo: https://github.com/servo/servo
Source-Revision: aee011a524c096d7535bb95a1e76a1586784aeb8
2015-08-31 07:22:06 -06:00
Anthony Ramine
a6ba5f48c0 servo: Merge #7466 - Implement FromIterator<Root<A>> for RootedVec<JS<A>> (fixes #5117) (from nox:rootedvec-from-iter); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: fea36ceb9a2d5114e41ce9067911b01f8e4fa5fd
2015-08-31 03:02:05 -06:00
Anthony Ramine
29a0490c0d servo: Merge #7463 - Implement the ch unit as 0.5em (from nox:css-ch); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 1093f6bdcf501bec37dc3d422b24c05eea8e1c23
2015-08-31 02:19:55 -06:00
Sam Gibson
b05493adbc servo: Merge #7139 - Testable net load (from samfoo:testable-net-load); r=jdm
*The goal of this PR is to get early feedback on this before I go too far down the rabbit hole. This new code path is working, and there's several tests I've written as a proof of concept. There are still some regressions that I'll be fixing in the coming days.*

I've abstracted out the request/response cycle so that it's no longer dependent on the Hyper request/response structs. Since request/response @ hyper are structs, not traits, it made mocking them for tests impossible.

Current issues/concerns:

* This relies on boxing the `HttpResponse` that gets returned from the `HttpRequester` because `HttpResponse` is unsized. I don't know if there's a more idiomatic rust-y way of doing this?
* This relies on boxing the `Read` that is now returned from `load` for the same reason.
* The devtools and resource manager channels are still passed into `load`. It might be easier to inject these as trait dependencies instead of chans as well?
* Needs more tests.

🎩

#6727

Source-Repo: https://github.com/servo/servo
Source-Revision: 7dda183022f9bee8b4bdffe8b4cf31e09b885d94
2015-08-30 20:07:40 -06:00
Anthony Ramine
33554ce78f servo: Merge #7407 - Optimise most basic case of .replaceChild() when updating childNodes (from nox:childnodes-replace); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 86da67bb1e229f16b13892c42bd2a444b1b97644
2015-08-30 13:22:41 -06:00
Anthony Ramine
45e79cf82c servo: Merge #7228 - Implement setters in URLUtils (from nox:urlutils-setters); r=jdm
This fixes #6145 and takes care of most of #4250.

Source-Repo: https://github.com/servo/servo
Source-Revision: 347e9b6ef45fb8b0e5a824944e4b1c7338d15554
2015-08-30 12:40:53 -06:00
Anthony Ramine
43d95e4258 servo: Merge #7455 - Do not allow some warnings in codegen anymore (from nox:rm-unused-warnings); r=jdm
This fixes #395.

Source-Repo: https://github.com/servo/servo
Source-Revision: a855669d4ff3ff635cfb84c072ba68650525f275
2015-08-30 11:37:04 -06:00
erneyja
acced968c3 servo: Merge #7445 - Issue #6934 - Implement onerror event handler for AbstractWorker (from JoshTheGoldfish:Issue6934); r=Manishearth
Please review.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3062e0c7b11196e478a7e530e5b969adcce8bf4b
2015-08-30 10:19:15 -06:00
ecoal95
96038bef64 servo: Merge #7442 - Add WebGL shader validation and translation (from emilio:shader-validation); r=jdm
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 79328c11e320ad10a19d64d280df2e292eaf2e03
2015-08-30 09:29:42 -06:00
Josh Matthews
e97b25662a servo: Merge #7432 - Add dashed CSS properties in CSSStyleDeclaration (from jdm:dashedprops); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 940bcadc134d1cf123518bebd84635b0053d6858
2015-08-30 08:20:57 -06:00
Corey Farwell
ad213d5384 servo: Merge #7433 - Cleanup, refactor FormDataMethods::Get (from frewsxcv:formdata-get); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 89a5e2b3d098fc2afdb95ebcebeb8d7beeebc96a
2015-08-30 07:00:33 -06:00
Corey Farwell
2d6351b526 servo: Merge #7439 - Prefer JSTrue/JSFalse to 1/0 (from frewsxcv:jsfalse-jstrue); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 67cbda4be35a63222553ca806d475581030bea4e
2015-08-28 22:15:21 -06:00
Ms2ger
87fd899fef servo: Merge #7435 - Send the start and end half of a TimelineMarker to the devtools … (from Ms2ger:markers); r=jdm
…PullTimelineMarkers thread together.

Source-Repo: https://github.com/servo/servo
Source-Revision: b68b31a062c245684c3b41132c568fd3836fb30c
2015-08-28 13:51:32 -06:00
Josh Matthews
930db63368 servo: Merge #7436 - Improve debuggability of http_loader panics (from jdm:netthreadname); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 645dd7ba03ea56f01f2e162c590ea047516320ac
2015-08-28 13:14:28 -06:00
Glenn Watson
f52d5f3651 servo: Merge #7417 - Fix requestAnimationFrame in headless mode. Fixes #7296 (from glennw:headless-raf); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 064b72ac97197e7d1c6cbfd14a4546822c662332
2015-08-28 11:26:09 -06:00
Josh Matthews
b308b8b05e servo: Merge #7391 - Replace catch-all experimental flag with fine-grained boolean prefere… (from jdm:prefs); r=Ms2ger
…nces initialized from a JSON document.

Source-Repo: https://github.com/servo/servo
Source-Revision: 72125f070d7faa0f3a927cf8150fabfb382648e7
2015-08-28 10:08:32 -06:00
Johann Tuffe
d9be999626 servo: Merge #7227 - rewrite of mime_classifier.rs to use more iterators (from tafia:tafia-mime_classifier); r=jdm
Rewrite few parts of the file to use more iterators.

Note that I have **no idea** what the code is actually doing functionally, I just tried to mimic exactly what was being done. All tests are ok

Source-Repo: https://github.com/servo/servo
Source-Revision: 9708c63b9c7ae03d65c7add358a98f7213322a3d
2015-08-28 09:35:47 -06:00
Corey Farwell
bd3049eecd servo: Merge #7431 - Merge adjacent identical impl sections (from frewsxcv:dom-methods-cleanup); r=Ms2ger
Prior to #7416 and #7401, many of these `impl` sections were not
identical

Source-Repo: https://github.com/servo/servo
Source-Revision: 2f227a034a12158e2592b645c061d92c87c8eba6
2015-08-28 08:49:00 -06:00
Simon Sapin
7352f8e6d0 servo: Merge #6854 - Remove usage of slice_chars in script (from servo:slice_chars); r=jdm+Ms2ger
It’s deprecated in the #6850 rustup.

The first commit changes some behavior which was previously incorrect: the spec says indices in DOM strings are UTF-16 code units, not `char` code points.

The second commit should not change behavior, unless I made a mistake.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 2ca48ca4047e83e69abf1fad6978de46ef11c3a7
2015-08-28 05:16:03 -06:00
Ravi Shankar
b22431f8c2 servo: Merge #7428 - tidy will now show its expectation of uses! (from Wafflespeanut:tidy); r=Ms2ger
closes #7427

(pretty errors "inherited" from rust's type checker) :P

![screenshot](https://cloud.githubusercontent.com/assets/6691262/9543298/8cabfdaa-4d95-11e5-9101-14e62781e74e.png)

Source-Repo: https://github.com/servo/servo
Source-Revision: 18de1f2357144d86ea83cd0cb66922e8a2157597
2015-08-28 03:35:53 -06:00
benshu
0d2fab2fb7 servo: Merge #7341 - Add profiling to the script event loop (#5331) (from benschulz:script-profiling); r=Manishearth
I fear the category names are unimaginative; in some cases they may even be misleading or downright incorrect. Requests to rename categories as well as any other feedback are highly appreciated.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6431e8da43817e8a6b1e4757afbcf45c1a629707
2015-08-27 17:00:15 -06:00
Anthony Ramine
c327bc7867 servo: Merge #7416 - Make the traits for the IDL interfaces take &self (from nox:methods-ref); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: 71b277d5675556e61a82ae9dbf3105449c3a8275
2015-08-27 15:08:41 -06:00
Corey Farwell
9cfa971047 servo: Merge #7389 - Implement 'do nothing' methods on Window and Document (from frewsxcv:implement-nihilistic-methods); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 8c301c291a210fb75b1b5c4eba928a146578e3e4
2015-08-27 12:30:28 -06:00
Dhananjay Nakrani
9c0ef7bd59 servo: Merge #7394 - Exclude minified js files and tests/jquery from 'mach grep' (from dhananjay92:Issue#6670); r=Manishearth
Solves Issue #6670.
Now `./mach grep` will not grep from minified js files or from `tests/jquery` directory.

Works only with git >= 1.9.0.

Source-Repo: https://github.com/servo/servo
Source-Revision: ae55b31a7f99633d0fad0cb78cb2043ae18ae437
2015-08-27 10:51:15 -06:00
Anthony Ramine
d2ee701ee9 servo: Merge #7401 - Remove helper traits (from nox:rm-helpers); r=Manishearth
Now that `JSRef<T>` is gone, there is no need to have helper traits.

Source-Repo: https://github.com/servo/servo
Source-Revision: 909429702972d53bf02dfe9a4aa93ea0cb588cf4
2015-08-27 09:38:48 -06:00
João Oliveira
d39bd47b08 servo: Merge #7361 - make dom_struct derive HeapSizeOf (from jxs:master); r=Ms2ger
closes #7357

Source-Repo: https://github.com/servo/servo
Source-Revision: 532fd19d69fd11d06bca7539c722a46fab2c4419
2015-08-27 02:35:45 -06:00
David Rajchenbach-Teller
d56115cce8 servo: Merge #7387 - Fixes #2240 - NamedGetter and NamedSetter do not assume that the arg is named name (from Yoric:2240-2); r=Ms2ger
I'm not totally sure about how to test this.

Source-Repo: https://github.com/servo/servo
Source-Revision: a897795dabf8d84c2da2935c54346a75987bcec5
2015-08-27 00:38:46 -06:00
Manish Goregaokar
672b1a1667 servo: Merge #7395 - Document InheritTypes (from Manishearth:doc-inherit); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 98728a6c751a8959459f80286833152e21fa6cfc
2015-08-26 20:56:02 -06:00
João Oliveira
d5f3a6c35b servo: Merge #7403 - Remove get_unsound_ref_forever function (from jxs:delete_get_unsound_ref_forever); r=nox
closes #7383

Source-Repo: https://github.com/servo/servo
Source-Revision: 7a6d8a30d316fb65c2c846d3d6d0d5e33b29bc5c
2015-08-26 18:37:58 -06:00
Corey Farwell
729a408da3 servo: Merge #7399 - Mention tracking issue for implementing document.all (from frewsxcv:document.all-tracking-issue); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: af4c3901d88b12eba89201f5ff1eb99a80b81061
2015-08-26 16:43:18 -06:00
Manish Goregaokar
8c0333b4f1 servo: Merge #7397 - Remove doublepointer in VirtualMethods, and from_borrowed_ref (from Manishearth:doublepointer-meet-fire); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 48945b0fc1b1f1bee77f6cb30ac10e17614ef283
2015-08-26 15:01:12 -06:00
Martin Robinson
f531c59492 servo: Merge #7392 - Split out layered child stacking contexts in display lists (from mrobinson:layered-separate); r=pcwalton
This patch is in preparation for more dynamic layerization of the
pieces of display lists. It also prevents having to sort the children
by z-index multiple times.

Source-Repo: https://github.com/servo/servo
Source-Revision: fa5ad1c6b4faa2c43ff79e77962b94034a4f2bd0
2015-08-26 11:38:34 -06:00
David Rajchenbach-Teller
d82b2d3407 servo: Merge #7032 - Issue 7031 (from Yoric:issue-7031); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 98d9203d1c768fb5b6cda436d760c97cae35840f
2015-08-26 09:34:42 -06:00
Ms2ger
966df6e301 servo: Merge #7386 - Remove Emitter::markers (from Ms2ger:emitter); r=jdm
The vector is filled in and immediately emptied again. It is clearer to
keep the vector in the caller instead.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0e78815242440dee9bcf84e60c0a1d1fb68d67ad
2015-08-26 08:52:16 -06:00
David Zbarsky
44b7abeb51 servo: Merge #6880 - Don't try to unwrap the result of requestAnimationFrame callback (from dzbarsky:rAF); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 186c1d14d5b5fd8e9fcd5147d47ebe998dfe45cd
2015-08-26 08:13:11 -06:00
Ms2ger
76c624c13b servo: Merge #7378 - Update url (from Ms2ger:url); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 9e52dd8ceee6a1af05f3d167e690b6e80c50fab5
2015-08-26 07:18:34 -06:00
Matt Brubeck
6d588bec56 servo: Merge #7368 - Quit when the glutin window closes (from mbrubeck:closed); r=jdm
Fixes a regression from #7096.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5f9097c0b409c51cb8bc7e2d603747ba716a8d9d
2015-08-26 06:32:27 -06:00
Sara Tang
41aeeb280f servo: Merge #7352 - BinaryOrPlaintextClassifier::classify_impl does not need to return Option (from saratang:issue_7347); r=Ms2ger
Fixes for Issue #7347, though I wasn't sure how to test my code afterwards.

Source-Repo: https://github.com/servo/servo
Source-Revision: 78d72f6a9bfa6c2f4828a6e8c83265526b666f1a
2015-08-26 05:53:38 -06:00
wilmoz
f245e43238 servo: Merge #7360 - Make handle_potential_webgl_error more ergonomic (from wilcus:ErgonomicSignature); r=Ms2ger
https://github.com/servo/servo/issues/7358

Source-Repo: https://github.com/servo/servo
Source-Revision: 06ba2167ba3a247c1e7473a208ee4e692f6fa30e
2015-08-26 05:21:42 -06:00
Patrick Walton
f9b32545e1 servo: Merge #7369 - layout: Fix calculation of overflow for stacking contexts that contain position: relative fragments (from pcwalton:relative-layer-overflow); r=glennw
Fixes placement of the header on espn.go.com.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: a1cd27e6a3b961129fd4710513cc29e4f7c9cc67
2015-08-25 17:16:34 -06:00
Avi Weinstock
d32a3e191d servo: Merge #7364 - Update rust-clipboard to a version that works on Windows and Mac (from aweinstock314:update-clipboard-20140825); r=jdm
Possibly completes #5376.

Source-Repo: https://github.com/servo/servo
Source-Revision: ab55e3ec1012bf6032803c2036059297b19e3b94
2015-08-25 13:59:45 -06:00
wilmoz
bdec4f07d0 servo: Merge #7362 - Forbid multiline imports (from wilcus:ForbidMultilineImports); r=jdm
https://github.com/servo/servo/issues/7356

Source-Repo: https://github.com/servo/servo
Source-Revision: 121110a52a549b44e65aa4ba0669bd75702588ea
2015-08-25 11:29:56 -06:00
ecoal95
d21c34c8ad servo: Merge #6770 - Add multiple WebGL calls and improve error detection (from emilio:webgl-again); r=jdm
Since it probably won't merge until multiprocess lands, I plan to use this PR to keep improving WebGL support until it can land.

Main TODOs are integration of tests, since it seems https://github.com/KhronosGroup/WebGL/issues/1105 is going nowhere, adding missing calls and proper painting via native surfaces instead of readback.

I can't resolve conflicts right now because of time but I will do it soon.

Source-Repo: https://github.com/servo/servo
Source-Revision: a109a333f1f95d4fc677b29e3613b2615514c080
2015-08-25 09:23:00 -06:00
Ms2ger
1ada2ef029 servo: Merge #7359 - Fix the build (from servo:build); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4d0b4a7b8cda681d1cd6b6cd8e690c0793532d0b
2015-08-25 08:34:13 -06:00