Граф коммитов

4300 Коммитов

Автор SHA1 Сообщение Дата
Ms2ger 99cf771646 servo: Merge #6464 - Use Box::into_raw rather than boxed::into_raw (from Ms2ger:into_raw); r=saneyuki
The latter is deprecated.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9eb3cc2a241dff4df57d644fa5257fcf3a52325f
2015-06-26 04:50:54 -06:00
Simon Sapin 951498d312 servo: Merge #6465 - Update to zero-copy* HTML parsing (from servo:tendril); r=pcwalton
html5ever now uses the Tendril string type to minimize copying internally, but Servo still converts from/to `String` at the boundary (which involves copying).

Source-Repo: https://github.com/servo/servo
Source-Revision: 2165c55d645f59ef413f09c2b023d511bc8c402e
2015-06-25 23:12:09 -06:00
Matt Brubeck 0df634fe82 servo: Merge #6449 - Slice TextRuns by byte range instead of char range (from mbrubeck:byte_range); r=pcwalton
Currently only the end of the byte range is used, but I plan to use the full range in some follow-up work.

Fixes #6431. r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 26982cb547f479e1fbe9395b7fd9207078a6d8ee
2015-06-25 22:25:36 -06:00
Michael Wu 08e308dea4 servo: Merge #6460 - Fix indentation in testbindingproxy.rs (from michaelwu:fix-indentation); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: ea06bebca9fab485485ce60bd3f464bc64bf1c36
2015-06-25 13:30:46 -06:00
Ms2ger 18fd8097a2 servo: Merge #6459 - Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0 (from servo:rustup_20150625); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 21b48fc44d0b32627918b4778fed16203eecdba5
2015-06-25 12:03:15 -06:00
Joel Teichroeb c23dfd93eb servo: Merge #6110 - Implement Named constructors and the Image constructor for HTMLImageElement (from klusark:NamedConstructor); r=Ms2ger
I'm not sure if I like how I mostly just duplicated the code in CodegenRust.py, so that might need to be refactored.

Instead of just calling it Image, we might want to call it ConstructorImage, to make it clear that it's a constructor. Anyone have an opinion on that?

There seems to be a bug in the HTMLImageElement getter/setter as the value is 0 regardless of what I do. This seems to be unrelated to my commits, so I'll investigate that separately.

Source-Repo: https://github.com/servo/servo
Source-Revision: 57cc84b2935c429c92774649275625a7fd63973c
2015-06-25 02:18:06 -06:00
Ms2ger 32c77990a8 servo: Merge #6456 - Some cleanup in layout (from Ms2ger:cleanup-layout); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 605b83da54dc7c33def4fb1e3162e377e1715d0b
2015-06-25 01:42:45 -06:00
Corey Farwell e17f736f88 servo: Merge #6458 - Remove unused js::JS_ARGV import in script component (from frewsxcv:unused-import); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 4c9afb2756e7f82f77a66cca3e8cd83462fcd661
2015-06-25 00:56:48 -06:00
Ms2ger 2cdcbb096b servo: Merge #6454 - Make {ThreadSafe,}LayoutNode::get_jsmanaged private (from Ms2ger:opaque); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: e02e7c517c30e87adcb61ef408d1ecddc7fb1458
2015-06-24 14:27:11 -06:00
Glenn Watson df40315592 servo: Merge #6457 - Trigger reflow after requestAnimationFrame callbacks (from glennw:raf-reflow); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 6889f5fb4ec618a949c1308ce58099e7fc139d44
2015-06-24 13:51:15 -06:00
Anthony Ramine e6ba88516e servo: Merge #6223 - Merge generic funs to share them across all bindings (fixes #2684) (from nox:merge-generic-functions); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 6247a96761279979412fb49fa4fbca2fd9a82e1b
2015-06-24 03:54:56 -06:00
Ms2ger e448407e4d servo: Merge #6443 - Various layout cleanup (from Ms2ger:cleanup-layout); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 469b9550f6feec56d87ea5c772cb76453c13036a
2015-06-24 03:00:32 -06:00
Hyowon Kim 423cdb8c21 servo: Merge #6410 - Create pattern from HTMLCanvasElement or CanvasRenderingContext2D (from hyowon:create_pattern); r=pcwalton
r? @nox @pcwalton
cc @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: 95d643c995a271fac11ab3d9aac97f2d0aac8934
2015-06-24 00:39:48 -06:00
Pyfisch 9bacf73484 servo: Merge #6450 - Remove is_some() from mime_classifier.rs (from pyfisch:patch-1); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: b1021c36c53914a42bbc5c6e5ec7795dbf29f9d3
2015-06-23 15:14:30 -06:00
Ms2ger 28afc94297 servo: Merge #6446 - Fix some warnings (from Ms2ger:warnings); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: e4412be1b6c0bd5284b2e177b527a3140053f39c
2015-06-23 14:09:23 -06:00
Glenn Watson 5cd9134a2e servo: Merge #6425 - Implement enough of 3d transforms spec to run the CSS FPS demo (from glennw:3d-transforms); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: dcb1237bb5deb84cdf921bf7b145b07eb2bd1430
2015-06-23 12:13:25 -06:00
Maciej Skrzypkowski c6d1841eec servo: Merge #6405 - Refactoring, return an Atom from Element::parsed_name. #5774 (from mskrzypkows:element_parsed_name_refactor); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: e869e8ad08526bbbfffd390b52e423f58b8269f1
2015-06-23 03:17:46 -06:00
Matt Brubeck 9ec9b28f2c servo: Merge #6445 - Simplify next_fragment and fix obsolete docs (from mbrubeck:next_fragment); r=pcwalton
r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: d86c5879255ec9ced621412d4565a9a66ee4dc72
2015-06-22 16:23:27 -06:00
Robert Knight ca1885dff8 servo: Merge #6373 - Use a faster scroll speed under X11 (from robertknight:gh5660-rob-x11_scroll_speed); r=pcwalton
Platforms may report scroll deltas either in
chunks/lines/rows or pixels, depending on the
platform API and device capabilities.

If the platform reports a line/chunk-based delta
then the application needs to convert the delta
into a suitable number of pixels. Apple's documentation for example states
that the app should interpret the delta as a number of lines or rows to scroll,
depending on the type of view.

This commit just hardcodes it to 57 as
a starting point which matches the value that
Firefox calculates as the max char height
for the root frame on my system.

This depends on this Glutin PR: https://github.com/tomaka/glutin/pull/483

Fixes #5660

Source-Repo: https://github.com/servo/servo
Source-Revision: 7e0f1869984b6ddcbc91b6a8d53dc54e177aca5d
2015-06-22 13:46:56 -06:00
Ms2ger f7ccc39e1b servo: Merge #6444 - Remove some unnecessary clones (from Ms2ger:clone); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: c6ca389d546cbf3f3859a5549e3fc86d5381d680
2015-06-22 05:05:08 -06:00
Ms2ger fa69e55d66 servo: Merge #6440 - Update rust-mozjs (from Ms2ger:finalizeInBackground); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: d85afb744a5538135eca2a2b67c5be3ccc8373be
2015-06-21 23:40:46 -06:00
Simon Sapin 2e3cf397c7 servo: Merge #6427 - Update rust-selectors (from servo:selector-traits-refactor); r=Ms2ger
https://github.com/servo/rust-selectors/pull/30

r? @Ms2ger

This conflicts with the SpiderMonkey upgrade #6150. I’m happy to wait until that lands and rebase.

Source-Repo: https://github.com/servo/servo
Source-Revision: c119b59e82269a84925673236dd896101f27a6f3
2015-06-21 11:12:07 -06:00
Anthony Ramine 7a203febfd servo: Merge #6371 - Implement URL and trivially missing URLUtils members (from nox:url); r=Ms2ger
Fixes #6322.

Still no mutation whatsoever in URLUtils.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8c784ceeea39014cdc79bb4c7f614948cc8beda1
2015-06-21 10:22:06 -06:00
Ms2ger 81faabdc8e servo: Merge #6437 - Implement AttrHelpersForLayout for LayoutJS<Attr> rather than Attr itself (from Ms2ger:AttrHelpersForLayout); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: bf64e2765aeb88611e781abeae4360f69a3a6caa
2015-06-21 08:31:04 -06:00
Ms2ger 1e7e3efa45 servo: Merge #6417 - Require documentation for the memory profiling module (from servo:profile-docs); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: b8c7f49ce8a130a057eea4cfc912bd68c99687aa
2015-06-21 03:54:21 -06:00
Ms2ger e104b4dc8b servo: Merge #6435 - Various CEF refactoring (from Ms2ger:cef); r=zmike
Source-Repo: https://github.com/servo/servo
Source-Revision: 6e04c12bceb04ab3bbf69f83664e9a7e546ea732
2015-06-20 11:17:49 -06:00
Mátyás Mustoha e7a0989a0c servo: Merge #6421 - Fix ARM linker (from mmatyas:arm_build2); r=larsbergstrom
By default, `cc` is used for the final linking of servo, which points to the host's compiler. This patch ensures that the correct linker is used for cross-compiling to ARM.

Part of #6327

Source-Repo: https://github.com/servo/servo
Source-Revision: fa45688191221bf32a7a20188d5a8817c4ab61f2
2015-06-20 09:00:55 -06:00
Hyowon Kim afce9d1b30 servo: Merge #6413 - Check invalid values for the shadow attributes (from hyowon:invalid_shadow_attrs); r=Ms2ger
I left out checking invalid values when setting the shadows attributes.
r? @nox @pcwalton
cc @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: 02303941bef5f5bbdbec750ab0dfa0b77f32345a
2015-06-20 06:44:08 -06:00
Michael Wu 6a46bbff4b servo: Merge #6433 - Fix some warnings caused by the SM upgrade (from michaelwu:fix-smup-warnings); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 72ead882c08fbd66d59457efd1ebf86ee4ee97f2
2015-06-19 20:56:29 -06:00
Emilio Cobos Álvarez 81d4cbeaf1 servo: Merge #6429 - Update jQuery tests usage message (from emilio:patch-1); r=metajack
It was in the wrong order.

Source-Repo: https://github.com/servo/servo
Source-Revision: de251795c350a4f1ddb4afc78389906491e50e03
2015-06-19 19:31:57 -06:00
Michael Wu 7512d04e93 servo: Merge #6150 - Upgrade to Spidermonkey 39 (from servo:smupgrade3); r=mbrubeck
> Here it is.
>
> ~~There's two major things that are unfinished here:~~
> - ~~Dealing with the unroot_must_root lint. I'm not sure about the value of this lint with the new rooting API.~~ Done.
> - ~~Updating the Cargo.locks to point to the new SM and SM binding.~~ Done.
>
> I also included my fixes for the rust update, but these will disappear in a rebase. A rust update is necessary to support calling `Drop` on `Heap<T>` correctly when `Heap<T>` is inside a `Rc<T>`. Otherwise `&self` points to the wrong location.
>
> Incremental GC is disabled here. I'm not sure how to deal with the incremental barriers so that's left for later.
>
> Generational GC works. SM doesn't work without it.
>
> The biggest change here is to the rooting API. `Root` was made movable, and `Temporary` and `JSRef` was removed. Movable `Root`s means there's no need for `Temporary`, and `JSRef`s aren't needed generally since it can be assumed that being able to obtain a reference to a dom object means it's already rooted. References have their lifetime bound to the Roots that provided them. DOM objects that haven't passed through `reflect_dom_object` don't need to be rooted, and DOM objects that have passed through `reflect_dom_object` can't be obtained without being rooted through `native_from_reflector_jsmanaged` or `JS::<T>::root()`.
>
> Support for `Heap<T>` ended up messier than I expected. It's split into two commits, but only because it's a bit difficult to fold them together. Supporting `Heap<T>` properly requires that that `Heap::<T>::set()` be called on something that won't move. I removed the Copy and Clone trait from `Heap<T>` so `Cell` can't hold `Heap<T>` - only `UnsafeCell` can hold it.
>
> `CallbackObject` is a bit tricky - I moved all callbacks into `Rc<T>` in order to make sure that the pointer inside to a `*mut JSObject` doesn't move. This is necessary for supporting `Heap<T>`.
>
> `RootedCollectionSet` is very general purpose now. Anything with `JSTraceable` can be rooted by `RootedCollectionSet`/`RootedTraceable`. Right now, `RootedTraceable` is only used to hold down dom objects before they're fully attached to their reflector. I had to make a custom mechanism to dispatch the trace call - couldn't figure out how to get trait objects working for this case.
>
> This has been tested with the following zeal settings:
>
> GC after every allocation
> JS_GC_ZEAL=2,1
>
> GC after every 100 allocations (important for catching use-after-free bugs)
> JS_GC_ZEAL=2,100
>
> Verify pre barriers
> JS_GC_ZEAL=4,1
>
> Verify post barriers
> JS_GC_ZEAL=11,1

Source-Repo: https://github.com/servo/servo
Source-Revision: e7808c526c348fea5e3b48af70b7f1a066652097
2015-06-19 16:46:55 -06:00
Glenn Watson 00cf610c8f servo: Merge #6424 - Update gleam to 0.1.1 (from glennw:update-gleam); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: a256f39796270cd3a5f40f33eaa4e407117b0cc6
2015-06-18 21:57:55 -06:00
ecoal95 b32a9cd993 servo: Merge #6423 - Use euclid from crates.io (from emilio:euclid); r=glennw
Sorry for not doing it yesterday, I couldn't.

cc @metajack @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: 4ebb95ccd8e034007eacb447a054919ef4af2bf7
2015-06-18 20:50:22 -06:00
Jack Moffitt bdf71e84d8 servo: Merge #6412 - Remove duplicate package (from metajack:cleanup-dupe-gleam); r=glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: 7355bf1061a21114654c1e8abe1d752624200799
2015-06-17 21:56:38 -06:00
Jack Moffitt 5d2788ae32 servo: Merge #6411 - Don't generate pyc files (from metajack:fix-script-out-dir); r=glennw
This eliminates the last bit of script crate generating in-tree
files. This now allows cargo target dir sharing to fully work.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5dc546b4cf19b3281ee10d2948a75984c62e3763
2015-06-17 21:18:42 -06:00
Glenn Watson e97872727c servo: Merge #6403 - Fix computed value of outline width when outline style is not set (from glennw:fix-outline-width); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: fd44db2190ac4f2d8b71d048600b22554ab86f2e
2015-06-17 20:29:44 -06:00
Jack Moffitt 85fd686b68 servo: Merge #6408 - Generate code into OUT_DIR (from metajack:script-outdir); r=SimonSapin
This is necessary to ensure Cargo knows when to rebuild. Normally
.gitignore would be enough to exclude these from Cargo's freshness
calculation, but https://github.com/rust-lang/cargo/issues/1729 prevents
this currently. This is the new, correct way to do these thigns, just
like the style crate does.

Source-Repo: https://github.com/servo/servo
Source-Revision: ff59e1b8de67f1988522d6b6e6c4adda957fad5b
2015-06-17 16:36:05 -06:00
Hyowon Kim 8d982b374e servo: Merge #6402 - Fill and stroke for all pattern types and check the zero size gradient (from hyowon:canvas_fill_stroke); r=pcwalton
Depends on servo/rust-azure#170 which has been already merged.
So this patch contains the update of rust-azure.
r? @nox
cc @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: e1b28d893e54601bf497d0d5b83d77658ca16bac
2015-06-17 13:32:25 -06:00
James Graham 24c23bd95c servo: Merge #6401 - Implement timeout for url load from WebDriver (from jgraham:load_timeout); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: ee54c89e3f801dcd90a494c65ff8cfd975a6be6f
2015-06-17 10:16:27 -06:00
Hyowon Kim d09678524e servo: Merge #6355 - Implement drawing shadows in canvas (from hyowon:drawing_shadows); r=nox
https://html.spec.whatwg.org/multipage/#when-shadows-are-drawn
r? @nox
cc @mmatyas @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: 48e1d45bffaf7679d1f9487038a104f373a90e5a
2015-06-16 05:30:20 -06:00
Jinwoo Song 787247886d servo: Merge #6397 - WebSocket constructor should not panic (from servo:ws-connect); r=Ms2ger
Make an early return when the WebSocket connection fails in the constructor.
Also let the WebSocket connection to be closed when the connection could
not be established.

Fixes #6082.

Source-Repo: https://github.com/servo/servo
Source-Revision: a5d76e4b2c6ae8e2db82fc5156ad1bebf7961f80
2015-06-16 01:47:10 -06:00
Simon Sapin 1fe2355ac7 servo: Merge #6396 - Use html5ever and string-cache from crates.io (from SimonSapin:crates.io-html5ever); r=Ms2ger
r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 4435e6f42a1b57a3e6a0cfbb1033525fef5db174
2015-06-16 00:42:36 -06:00
Simon Sapin 9f3f7f698e servo: Merge #6395 - Use cgl and gleam from crates.io (from SimonSapin:crates.io-cgl-gleam); r=metajack
r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: 5d89235c5696a65bcf93a5da5244093294eb4fbe
2015-06-15 15:08:43 -06:00
Jack Moffitt a44285c32d servo: Merge #6306 - Use Cargo's target directory sharing (from metajack:shared-target-dir); r=mbrubeck
This speeds up `./mach build --dev` followed by `./mach build-cef` by
25%. When rust-lang/cargo#497 is fixed, this speedup will increase
dramatically.

Source-Repo: https://github.com/servo/servo
Source-Revision: d6263c9b6e969fde4c644034e684a39d68667ad9
2015-06-15 13:08:14 -06:00
Ms2ger 0899326ec7 servo: Merge #6393 - Improve the cef string multimap (from Ms2ger:cef-string-multimap); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: bb39e835f16cf53a8135f873ed6e979640c0a8ba
2015-06-15 12:25:11 -06:00
Manish Goregaokar b6e7083252 servo: Merge #6377 - Upgrade to rustc 1.2.0-nightly (6e7fcc44a 2015-06-13) (from servo:rustup_20140614); r=SimonSapin
See #6376

r? @Ms2ger

Snaps don't exist yet, putting up the @larsbergstrom signal. The snap need not exactly match this commit, anything in the vicinity, or just master, should work really. (yay stability)


There's no particular reason behind this rustup except that I want to keep Servo running on almost-master as much as possible.

Source-Repo: https://github.com/servo/servo
Source-Revision: 67b121c0b82f4a2107d7b015f60bd025e04dc336
2015-06-15 10:33:14 -06:00
Simon Sapin ab51eb3db1 servo: Merge #6388 - Remove usage of String::from_str, deprecated in #6377 (from SimonSapin:from_str); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 91cae119311064cab7f20ff898c1d885054907b5
2015-06-15 09:23:22 -06:00
Ms2ger 758ff53bd9 servo: Merge #6378 - TreeWalker-acceptNode-filter.html fixes (from Ms2ger:callable); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 24af4c4ec638b0484c8acacdf7cb9acb87da24ff
2015-06-14 12:17:21 -06:00
Ms2ger 3ba4358a8a servo: Merge #6325 - Use str::parse() rather than FromStr::from_str (from Ms2ger:from_str); r=nox
The former appears to be preferred.

Source-Repo: https://github.com/servo/servo
Source-Revision: db2eb36e19581eee83247160bbb03e2a671d0479
2015-06-14 03:55:56 -06:00
Francesc Bautista 9516135f35 servo: Merge #6360 - Fix #6315 Set default render mode on tests to cpu (from fbau123:6315-tests-default-cpu-mode); r=Ms2ger
#6315

Set 'mach test-ref' default render mode to cpu and added a cli argument to 'mach test' to be able to select the render-mode, also renamed the 'kind' argument from 'test-ref' to '--render-mode' for coherence with reftest.rs

Source-Repo: https://github.com/servo/servo
Source-Revision: bedfa74b1f66a87dac00c46ac6560fa012f033d9
2015-06-14 03:14:00 -06:00
ecoal95 126dc71f5c servo: Merge #6357 - Add missing WebGL interfaces, and a few gl calls (from emilio:more-webgl); r=pcwalton
See the commit descriptions for more details.

Blocked on https://github.com/servo/gleam/pull/24

Source-Repo: https://github.com/servo/servo
Source-Revision: ceaca2e2885be89d47553090a45cf9048812e3b4
2015-06-13 15:05:08 -06:00
Corey Farwell 711c6ca962 servo: Merge #6349 - rust-geom API changes (from frewsxcv:geom-api-changes); r=pcwalton
Shouldn't be merged until these have merged:

https://github.com/servo/rust-geom/pull/81

https://github.com/ecoal95/rust-offscreen-rendering-context/pull/13

https://github.com/servo/rust-layers/pull/178

~~I'll also need to update the Cargo lock files once they merge~~

Source-Repo: https://github.com/servo/servo
Source-Revision: cfcd8589d06935f83b903f76477ea03e4d4652d0
2015-06-13 13:52:07 -06:00
Ms2ger ef47ae4530 servo: Merge #6370 - Update the Cargo.locks (from Ms2ger:locks); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: a9aa50683fec9ade7969e1ed29a9bc21d798f97e
2015-06-13 10:49:00 -06:00
ecoal95 11343d804e servo: Merge #6356 - Add WebGL android support (from emilio:webgl-android); r=jdm
This just bumps `offscreen_gl_context`, which added egl support
recently.

Source-Repo: https://github.com/servo/servo
Source-Revision: b0a80de92bf946696fdc9c227439796b094bfde7
2015-06-13 02:31:33 -06:00
Hyowon Kim 97b64f7e8d servo: Merge #6157 - Implement pattern fill style for canvas (from hyowon:canvas_pattern_fill); r=nox
Issue #6056
Depends on servo/rust-azure#160

Source-Repo: https://github.com/servo/servo
Source-Revision: 9474e62d38f61f2b3a385ca32d64cab975b014ce
2015-06-13 01:49:50 -06:00
Sumith 87cbc76930 servo: Merge #6362 - Entries in servobuild.example file (from Sumith1896:servobuildexample); r=Manishearth
Entries in the servobuild.example file that are not defaults were
commented out, defaults were mentioned in comments.
Fix to https://github.com/servo/servo/issues/6361

Source-Repo: https://github.com/servo/servo
Source-Revision: 3c1b8041d496746189c03dcd0f6e2af1ebca56b0
2015-06-12 23:39:01 -06:00
Patrick Walton d2ff8bc1ff servo: Merge #6308 - script: Make `PartialEq` on element type IDs generate a lot less code (from pcwalton:debloat-partialeq); r=nox
This makes the difference between selector matching scaling on the ARM
Cortex-A9 and not, because the auto-derived `PartialEq` implementation
blows out the 32KB I-cache. With this change, there is a 2x improvement
in selector matching over sequential when using all 8 cores. (More work
needs to be done; this is a start.)

r? any DOM expert

Source-Repo: https://github.com/servo/servo
Source-Revision: c3d242544e809aca945cf0ca6c2bf0f45ce6a602
2015-06-12 21:04:05 -06:00
Eduard Burtescu 3c5a945f75 servo: Merge #6302 - Preserve UserAgent header on redirect (from eddyb:preserve-ua-on-redirect); r=nox
This unblocks facebook.com's feed, after a few months of it being accidentally broken.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8063e342359615552b26ea10d42b2c6a827331fb
2015-06-12 19:51:26 -06:00
Nicholas Nethercote 514fcbb039 servo: Merge #6334 - Measure LocalLayoutContexts in LayoutTask and LayoutWorkers (from nnethercote:report-local-contexts); r=pcwalton
Passing a function that measures TLS to WorkQueue is a bit weird, but I can't see how else to measure that data.

Source-Repo: https://github.com/servo/servo
Source-Revision: f03f584895f80deb08c77c817f6655609c4ee97c
2015-06-12 18:42:32 -06:00
Patrick Walton 3dca4cd0c1 servo: Merge #6347 - layout: Divide DOM nodes and flows into chunks, and perform work stealing over those instead of working on nodes one-by-one (from pcwalton:chunking); r=mbrubeck
This reduces the overhead of the work-stealing traversal function
significantly. It's especially important on ARM, where memory barriers are
expensive.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 836ac8a0b6daeecb865bcf35d2b39602398870ef
2015-06-12 17:14:23 -06:00
Avi Weinstock 23f0359eb3 servo: Merge #6340 - Remove some unnecessary allocations in text input handling (from aweinstock314:reduce-textinput-allocations); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 2168ec3c96ca9e8e1174be22be07d1168061b4b6
2015-06-12 15:00:37 -06:00
Mátyás Mustoha a48503b881 servo: Merge #6354 - Remove gfx_traits from the dependencies of [script] (from mmatyas:canvas_remdep); r=Ms2ger
It seems @hyowon uploaded her canvas shadow patch faster than me; I've handled the color dependency a bit different, this way `gfx_traits` is not required by the script module.

Source-Repo: https://github.com/servo/servo
Source-Revision: c8c7bd900dde73d4fddafea8239f44440f1c863b
2015-06-12 10:22:54 -06:00
Patrick Walton a5ebfdb55e servo: Merge #6345 - util: Reduce memory barriers and integer divisions in the work queue (from pcwalton:workqueue-arm-optzns); r=glennw
Improves scaling on multicore ARM devices.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 9ea50957fcf502e48acaa074e08872a73df9ac23
2015-06-12 07:28:19 -06:00
Anthony Ramine ae3def062a servo: Merge #6348 - Update azure to b9bb83c733507f3f57e2c334499f38432056e26c (from nox:azure); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 5b318d53e223707fa2da16c5ad38f04ce7cf52de
2015-06-12 05:49:32 -06:00
Nicholas Nethercote 8ef165e5c2 servo: Merge #6346 - Improve unit testing of util::mem (from nnethercote:improve-mem-unit-testing); r=Manishearth
r? @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: b9d53a2950e41ec9291d3d4fe5efa7eeb57a5253
2015-06-12 04:08:53 -06:00
Hyowon Kim a540721b23 servo: Merge #6337 - Add attributes for canvas shadows (from hyowon:shadow_attrs); r=nox
The first step of the implementation for shadows in canvas.
r? @nox @jdm
cc @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: f163f2bf0d32861ea20470d405bb517ed5b09e84
2015-06-12 03:27:07 -06:00
Ms2ger 3e4e83073b servo: Merge #6353 - Revert "WebSocket constructor should not panic" (from servo:revert); r=Ms2ger
This reverts commit 877c369e0bc5db4286457be36d015eeb1f0ae2f2.

Source-Repo: https://github.com/servo/servo
Source-Revision: 85d839fb5c6ff023897828b0873caa8972842969
2015-06-12 02:44:37 -06:00
Jinwoo Song fb5908901f servo: Merge #6338 - WebSocket constructor should not panic (from servo:ws-connect); r=Ms2ger
Make an early return when the WebSocket connection fails in the constructor.
Also let the WebSockect connection to be closed when the connection could
not be established.

Fixes #6082.
Fixes #6086.

Source-Repo: https://github.com/servo/servo
Source-Revision: a3eb253bdce7ed4ad5bcc2c2e7af9cfe01826d99
2015-06-11 05:58:56 -06:00
Nicholas Nethercote 446d20512c servo: Merge #6335 - Ignore CollectReport messages when shutting down the LayoutTask (from nnethercote:fix-layout-task-shutdown-panic); r=metajack
Prior to this change, a panic would occur if a CollectReport message was
received while the LayoutTask was shutting down. Now it just gets
ignored.

Source-Repo: https://github.com/servo/servo
Source-Revision: 74ef31cfc4805d6dbeaa9e4769f0ceb14d124733
2015-06-11 00:58:41 -06:00
Brandon Fairchild 2c8e608418 servo: Merge #6336 - Appease Github's Linguist (from nerith:master); r=Manishearth
According to #6332, Github's Linguist reported Servo as being
written in HTML instead of Rust. This fixes that by overriding
the linguist-vendored attribute for the tests directory.

Source-Repo: https://github.com/servo/servo
Source-Revision: 37fcced0fa6b23a43596333aa9f057b21d0e6157
2015-06-10 22:30:58 -06:00
Matt Brubeck 2a94995bac servo: Merge #6328 - Fix indices in Line::range doc comment (from mbrubeck:line-comment); r=pcwalton
r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: a8b6632a5ade7b1f6fff243abb9223daf260284b
2015-06-10 17:44:55 -06:00
Nicholas Nethercote 679452a543 servo: Merge #6309 - Instrument FreeType allocations (from nnethercote:instrument-freetype); r=glennw
This will allow reporting of memory usage by FreeType instances, which
are measured in the MiBs for LayoutWorker threads.

This change also makes FreeType allocations happen with jemalloc instead
of the system malloc, which is a good thing.

Finally, the change documents some dubiousness involving
FontContextHandle.

Source-Repo: https://github.com/servo/servo
Source-Revision: fdeebf86a1424e9fffa122efa08fe397f6e7cd7d
2015-06-10 16:53:55 -06:00
Glenn Watson 172144e575 servo: Merge #6331 - Updates for changes in rust-geom and rust-layers (from glennw:remove-generic-again); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 752e03a502413f21cfb30e55d68110c50e034da6
2015-06-10 16:05:20 -06:00
Patrick Walton bab79d9ff9 servo: Merge #6330 - Revert "Updates for changes in rust-geom and rust-layers" (from servo:revert-6329-remove-generic)
Source-Repo: https://github.com/servo/servo
Source-Revision: 93a45c91d16c0ae2c6b7e507f66a7267206772ac
2015-06-10 14:15:01 -07:00
Glenn Watson 119937c831 servo: Merge #6329 - Updates for changes in rust-geom and rust-layers (from glennw:remove-generic)
Source-Repo: https://github.com/servo/servo
Source-Revision: 053296e1319239fbfe2842edb31bbf46eb8f28d7
2015-06-10 14:14:24 -07:00
Simon Sapin 3db1108120 servo: Merge #6326 - Pick up memory safety fix in rust-smallvec (from servo:sound-smallvec); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 8c943b30ce4759b038b5ae581159481b8a92e801
2015-06-10 09:30:43 -06:00
Corey Farwell f95f1555cf servo: Merge #6317 - Remove fnv & smallvec crate reexports from util (from frewsxcv:rm-util-crate-reexports); r=Ms2ger
The util component specified fnv and smallvec as dependencies and publicly
reexported both of them. Several other components utilized these reexports,
presumably because fnv and smallvec used to live in the tree so reexporting
made the transition easier.

These indirect dependencies through the util component are unnecessary.

This commit removes the fnv & smallvec crate reexports in the util component.
It exchange, it adds fnv & smallvec as dependencies to non-util components
wherever needed. Finally, it removes the fnv dependency from util as it is not
utilized anywhere in the util component.

Source-Repo: https://github.com/servo/servo
Source-Revision: 35000a9b854dc0989cc473aaec0ea8c082521c66
2015-06-10 08:23:11 -06:00
Ms2ger 1bb7c4d069 servo: Merge #6323 - Fix a typo in the DOM documentation (from Ms2ger:typo); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: c86e461555902ad88d25163724798b333d21c0ef
2015-06-10 07:30:09 -06:00
Mátyás Mustoha 86df863d26 servo: Merge #6324 - Add ARM build support (from mmatyas:arm_build); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 9df13b906902fa298264816e0c3c88aea64c77df
2015-06-10 06:46:13 -06:00
Ms2ger 19c2399332 servo: Merge #6320 - Remove null_str_as_empty and null_str_as_empty_ref functions (from Ms2ger:as-empty); r=nox
With just one caller between the two functions, there doesn't seem to be
much point in having the abstraction.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6bd798a69f0ae0fe19f6385a8c1bb3204185da68
2015-06-10 05:40:26 -06:00
Ms2ger 199e8eedb1 servo: Merge #6318 - Optimize lookupPrefix (from Ms2ger:optimize-lookup-prefix); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 3ece6bc166c06b1b63f417742cb30dde0e34e63e
2015-06-10 04:30:38 -06:00
Mukilan Thiyagarajan d0d7a0e325 servo: Merge #6319 - Fix codegen for overload resolution. Fixes #6300 (from mukilan:overload-codegen); r=Ms2ger
The cause of the issue is that the index of the overload to be invoked was being derived from the wrong lists (that contain only a subset of the overloads)  - `possibleOverloads` and `interfaceSigs` rather than the `method.signatures()` (which contains all possible overloads).

Source-Repo: https://github.com/servo/servo
Source-Revision: b46ab0c60d53461d639c74d9c6b39d0c6c2d78c9
2015-06-10 03:50:42 -06:00
Corey Farwell a869e68c38 servo: Merge #6316 - Utilize `if let` instead of `match` in a few places (from frewsxcv:if-let); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 6e0d0072b83bade910a6c2a0dee06d94f6f9fb17
2015-06-10 03:11:13 -06:00
Francesc Bautista e5a8317929 servo: Merge #6284 - Fix #6242 testbinding add specialoperations (from fbau123:6242-testbinding-add-specialoperations); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 44a4b7886d05b6e219f71f958d913657b08eea7d
2015-06-09 17:12:43 -06:00
Glenn Watson 99758bac5e servo: Merge #6280 - Partial implementation of transform animations spec (from glennw:transform-transitions); r=nox
Also tidy up some of the ComputedMatrix code.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8236221acf0f23f2217bf8b2346411396bd04f3c
2015-06-09 16:32:54 -06:00
Nicholas Nethercote 2b915bbedc servo: Merge #6289 - Make LOCAL_CONTEXT_KEY safe and non-leaky (from nnethercote:unleak-LOCAL_CONTEXT_KEY); r=pcwalton
`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.)

Source-Repo: https://github.com/servo/servo
Source-Revision: 0dec64caf01c98d10e72b73e35b994127c23e81f
2015-06-09 15:52:45 -06:00
Manish Goregaokar 3a4ae3831a servo: Merge #6314 - Audit and reduce usage of unstable features (from Manishearth:feature_audit); r=mbrubeck
Will post audit report in a bit

Source-Repo: https://github.com/servo/servo
Source-Revision: 88c1cdc9fca6568d1075ea9577ac996c5f73b98f
2015-06-09 14:31:42 -06:00
Maciej Skrzypkowski 91e65e3be8 servo: Merge #6146 - New html page for testing DOM binding performance #5760 (from mskrzypkows:dom_performance_tests); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: da2ea385bad2f9c22c1dc75bd52b32206cf9d9bb
2015-06-09 12:15:12 -05:00
ecoal95 ed9a142a22 servo: Merge #6293 - Implement new WebGL interfaces and methods (from emilio: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.

Source-Repo: https://github.com/servo/servo
Source-Revision: e09c555a41b0803388e54013ac8885fb789a0fa6
2015-06-09 10:06:37 -05:00
Corey Farwell 7a244c3d74 servo: Merge #6310 - Remove unused file: components/util/fnv.rs (from frewsxcv:rm-unused-file); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 1c636dd2d0c254e694db0353d4da6aba132763d4
2015-06-08 23:29:47 -05:00
Anthony Ramine c164336f84 servo: Merge #6305 - Update gleam to 98f889861aa1c8dee088ac751ab03ca639715bbe (from nox:update-gleam); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 41095c01a771c44f57da7f63b533741bf037918a
2015-06-08 12:44:04 -05:00
Hyowon Kim 93ae8060b7 servo: Merge #6290 - Replace fill_color & stroke_color with fill_style & stroke_style in CanvasContextState (from 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

Source-Repo: https://github.com/servo/servo
Source-Revision: ce30807be594d62b75772eac6356f84089a18c09
2015-06-08 09:49:13 -05:00
Jack Moffitt 279afd6ff8 servo: Merge #6295 - Clean up dependencies (from 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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 96311aa9b71abb31fd8e4283de9e1b58813108a3
2015-06-07 13:15:20 -05:00
Daniel Le 40dcea91f9 servo: Merge #6299 - Avoid casting in the callers (from GreenRecycleBin:#6271); r=Ms2ger
get_proto_or_iface_array now returns *mut ProtoOrIfaceArray

Fix #6271

Source-Repo: https://github.com/servo/servo
Source-Revision: ca6a34a1cdf3b74f9eab04cf6ff914e47b37b640
2015-06-07 10:47:14 -05:00
Eduard Burtescu 1ef27572ef servo: Merge #6301 - Use the correct log crate and setup env_logger in main (from eddyb:fix-logging-2); r=larsbergstrom
Fixes #6103.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1587d8a301983b881b038c7e443ba6d1deb1f72f
2015-06-06 15:49:56 -05:00
Brian Anderson 72f556065f servo: Merge #6297 - Convert inline(always) to inline in CodegenRust and jstraceable (from 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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 78665336e6a3d57e43610365f52ce038ba0d9e8b
2015-06-06 08:25:29 -05:00
Ms2ger e09e8b57a1 servo: Merge #6291 - Use if let in HTMLTableElement::SetCaption (from Ms2ger:caption); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 493f96b9ab73d41286407a78930f481a6f1b94e9
2015-06-06 07:45:43 -05:00
Wafflespeanut d5241ec13c servo: Merge #6292 - window.performance.now values are way too big #5690; r=jdm (from Wafflespeanut:timestamp); r=jdm
Changed the operator and updated the wpt-test for `hr-time`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 458a5324618b8e58565d686fdea3363a31e11973
2015-06-05 11:46:48 -05:00
Mukilan Thiyagarajan c626ecda45 servo: Merge #6294 - Simplify handle_load_start_msg function (from mukilan:simplify); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 0a93ed26e85319fe217a706be52cdb9e4060120f
2015-06-05 09:59:37 -05:00
Corey Farwell ff75ac488c servo: Merge #6286 - Bump rust-url version: 0.2.16 → 0.2.35 (from frewsxcv:bump-url); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: ad5846f2e14ac15aca9f561975ae9476d0f13244
2015-06-04 16:34:40 -05:00
Matt Brubeck 2db21edb00 servo: Merge #6285 - Better command-line error handling (from mbrubeck:nofile); r=metajack
* Don't hang silently when passed a non-existant file.
* Fix uncaught exception in `mach run` when Servo fails.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9b5a01e0455dde921b57d8e802e4554418477d8f
2015-06-04 15:53:11 -05:00
Corey Farwell 5ddbba3c32 servo: Merge #6279 - Add flake8 to the tidy process for Python files (from frewsxcv:flake8); r=jdm
Fixes #6236

Also included in this commit are the changes need to make flake8 pass
for the existing python file

Source-Repo: https://github.com/servo/servo
Source-Revision: ccfe29d8f284dedc0101045d574a98fb1f69aa62
2015-06-04 10:41:36 -05:00
Glenn Watson 026692ccea servo: Merge #6251 - Only count outline width in overflow calculation if outline style is active (from 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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 610de77e23626c68cbdc334eb84da468517e1c07
2015-06-04 03:53:14 -05:00
Corey Farwell 6ef7489efa servo: Merge #6278 - Pass release/dev arguments to command function for jQuery update (from frewsxcv:patch-3); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 907c051bd1d59621449a399ccf6845b617bdff9d
2015-06-03 18:30:08 -05:00
Matt Brubeck f8eb6ac8d7 servo: Merge #6277 - Update expat-sys (from mbrubeck:expat); r=metajack
For servo/libexpat#5

Source-Repo: https://github.com/servo/servo
Source-Revision: cc8ad768b98059eea925985bd64147108a3a5a0f
2015-06-03 17:25:25 -05:00
Corey Farwell 884b95cf1a servo: Merge #6274 - Run tidy everything in the tree, remove directory whitelist (from 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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 055182dae1d895ba2422e3da85c20a9a64beea71
2015-06-03 11:12:34 -05:00
Corey Farwell ffea06f28f servo: Merge #6268 - Tidy files in python/, fix issues brought up by tidy (from frewsxcv:tidy-python); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 9aa1d932828d15f6590816c638af1e3f451130a4
2015-06-03 08:04:11 -05:00
Josh Matthews c4cc28789a servo: Merge #6247 - Trace the prototype array on the global object (from jdm:tracefix); r=Ms2ger
This should allow the jQuery testsuite to complete.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9edc296c46b05606c74920a42ba0effb5c953db0
2015-06-03 05:26:26 -05:00
Philipp Hartwig 789c1bea66 servo: Merge #6231 - Restrict output of getElementsByName to HTML elements (from 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

Source-Repo: https://github.com/servo/servo
Source-Revision: bb95e07f8e75663706f9077138912c4e06c3eac9
2015-06-03 04:14:18 -05:00
Brian Anderson f51f93b5f6 servo: Merge #6267 - Support a system root with correct on-disk directory layout (from 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

Source-Repo: https://github.com/servo/servo
Source-Revision: 2e93ae7f76f9ceb6733352cfd0e16ab478f1d0a3
2015-06-03 01:54:00 -05:00
Mike Blumenkrantz 6cb20728b5 servo: Merge #6219 - Favicon support: way more work than anyone expected or considered (from 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.

Source-Repo: https://github.com/servo/servo
Source-Revision: b0f3417cffb211d547853b8069e7a444a1d9964f
2015-06-03 00:27:41 -05:00
Manish Goregaokar 96973b6240 servo: Merge #6188 - Add plugin for autoderiving HeapSize (from Manishearth:sizeof); r=nnethercote
Fixes #5914

r? @nnethercote for the gfx changes

r? @kmcallister or @jdm for the plugin

Source-Repo: https://github.com/servo/servo
Source-Revision: 2ca606aaba432741ce4e8274835f26db3a3581fc
2015-06-02 23:48:03 -05:00
Mike Blumenkrantz 355dc1d801 servo: Merge #6269 - update glutin (from zmike:glutinup); r=metajack
r+? @larsbergstrom @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 94b4d12cc3ca8e66f4f4c9a29094a939683dda24
2015-06-02 23:07:22 -05:00
James Graham 42b359c633 servo: Merge #6161 - Changes to improve the stability when running multiple tests with servodriver (from jgraham:webdriver_stability); r=glennw
This fixes various race conditions that affect test execution when using the servodriver product. It doesn't yet do enough to make servodriver a viable alternative to the normal servo test executor.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0b7886b15fa986612e81e7da3dd88b2d7949e719
2015-06-02 21:11:44 -05:00
Glenn Watson 983c939c6a servo: Merge #6214 - First step towards 3d transforms (from glennw:parse-transforms); r=pcwalton
* Add parser support for 3d transforms.
 * Change ComputedMatrix to a representation that suits interpolation.
 * Switch stacking contexts to use 4x4 matrices.

The transforms themselves are still converted to 2d and handled by azure for now, but this is a small standalone part that can be landed now to make it easier to review.

Source-Repo: https://github.com/servo/servo
Source-Revision: 05212b702dbafacd3d1d44e600139af8d7516308
2015-06-02 19:56:17 -05:00
Hyowon Kim bf011a9eaf servo: Merge #6253 - Serialize colors for fill and stroke styles in canvas (issue #4761) (from hyowon:serialize_colour); r=nox
Fixes #4761
cc @yichoi
r? @jdm @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 4b1e955069509aa224c62119b78f731f102221ec
2015-06-02 19:15:09 -05:00
Corey Farwell dd305cc61d servo: Merge #6260 - Remove trailing whitespace on Python files (from frewsxcv:trailing); r=SimonSapin
Trailing whitespace was found using flake8

This is working towards making flake8 part of the tidy process: #6236

Source-Repo: https://github.com/servo/servo
Source-Revision: 93f09b88c4f316804d13deaadac8ee91afedfb3b
2015-06-02 13:47:01 -05:00
Manish Goregaokar def53ee6c3 servo: Merge #6254 - Move to latest hyper everywhere, more package updates (from servo:rustup_20150601); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 20f63459ef198bf96679cbb72355917e7a774265
2015-06-02 12:53:37 -05:00
Simon Sapin a7c77ec3ba servo: Merge #6258 - Drop support for `box-sizing: padding-box` (from SimonSapin:drop-box-sizing-padding-box); r=jdm
This reverts commit 945adab /  PR #6033.

The CSS Working Group resolved to drop this value from the spec:
http://log.csswg.org/irc.w3.org/css/2015-05-20/#e555680

The group was unable to come up with even a theoretical use case. Gecko only implemented this value for completeness. Other browsers vendors have clearly expressed they have no interest in implementing this.

Source-Repo: https://github.com/servo/servo
Source-Revision: 300c36f250f7838d8008d800644dc466bcd90a72
2015-06-02 08:57:04 -05:00
Corey Farwell 2196fc505a servo: Merge #6230 - Remove `get_` prefix on getters (from frewsxcv:getters-get); r=nox
Part of #6224

I certainly didn't remove all of them; I avoided `unsafe` areas and also `components/script`

Source-Repo: https://github.com/servo/servo
Source-Revision: f6fe1953343a417b62fb310a380af7c6973849b0
2015-06-02 08:17:03 -05:00
James Graham 5e7bef5cd5 servo: Merge #6248 - Allow Window implementations to indicate that they don't support a clipboard (from jgraham:window_supports_clipboard); r=gw
This is important for the SERVO_HEADLESS configuration, because
creating a clipboard on linux creates an X context which then causes
reftest instability.

Source-Repo: https://github.com/servo/servo
Source-Revision: 64012cb10e7881038e3f359fb2df888732ead2fd
2015-06-02 05:26:47 -05:00
Jacob Parker 1276c4474f servo: Merge #6193 - fixes #5232, more console log levels sent to devtools (from j3parker:fix-5232); r=nox
fixes #5232

The correct styling shows up in the Firefox devtools (e.g. a caution symbol beside warning messages.)

I couldn't quickly find the corresponding Firefox code that handles log-levels so the values I'm sending are "guesses" (but they work seem to work.) I'll look today because I'm sending "log" for Debug-level, Error for failed asserts etc.

Source-Repo: https://github.com/servo/servo
Source-Revision: ec79881471bf3e952f40ee7021b561532a9020c6
2015-06-01 20:13:30 -05:00
ringmaster101 2869fd8367 servo: Merge #6246 - Ensure installed git version is above 1.8.1 [Bug #5637] (from frewsxcv:git-version-check); r=nox
Versions of git before 1.8.1 do not support git submodule --recursive sync
This commit makes update_submodules() exit with an error message if the version is <1.8.1

https://github.com/servo/servo/issues/5637

--------------------

This was originally written by @ringmaster101. The commit was cherry-picked by @frewsxcv and modified to address the comments brought up in #5648

Source-Repo: https://github.com/servo/servo
Source-Revision: 2fb8d31b0619a749256dfcd7c241f4b96e1a6d46
2015-06-01 18:18:21 -05:00
James Graham 35d7b3b717 servo: Merge #6009 - Add support for switching frames with the webdriver API (from jgraham:webdriver_frames); r=jdm
This moves webdriver_traits into msg to avoid a circular dependency.

Source-Repo: https://github.com/servo/servo
Source-Revision: d08995e1a94fa093b7fc1e5d918d9dca79f260d6
2015-06-01 17:30:37 -05:00
Matt Brubeck 6ed17c03e5 servo: Merge #6245 - Change not(ndebug) to debug_assertions (from mbrubeck:ndebug); r=SimonSapin
The name of this directive changed in rust-lang/rust#22980.

Source-Repo: https://github.com/servo/servo
Source-Revision: c724444ccb85551b5a0a581d673875ec9bce3d1f
2015-06-01 15:53:02 -05:00
Manish Goregaokar 2d55a77795 servo: Merge #6243 - Upgrade to rustc 1.2.0-dev (474c6e0ae 2015-05-30) (from servo:rustup_20150601); r=nox
cc @nox

r? @Ms2ger @kmcallister @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 83a0b7822181b26862f26fd0cd1da02da7ea6210
2015-06-01 11:45:42 -05:00
Jack Moffitt 1bf663cb58 servo: Merge #6220 - Switch task_info to use modern Cargo tools (from metajack:task-info-build-cleanup); r=nox
This is the first bit of build cleanup on my quest to make Cargo faster.

Source-Repo: https://github.com/servo/servo
Source-Revision: e6c4ca4960cc9f6ac9bd17c35a10b78350b70c73
2015-06-01 11:04:23 -05:00
ecoal95 6679e6dff7 servo: Merge #6240 - WebGLRenderingContext getters and `getParameter` (from emilio:webgl-context-enhancements); r=nox
This implements the `canvas`, `drawingBufferHeight` and `drawingBufferWidth` getters to `WebGLRenderingContext`, and an initial version of `getParameter`.

r? @jdm or @nox?

Source-Repo: https://github.com/servo/servo
Source-Revision: 042737793b1995ad93dc093ea12ec986b99e64b8
2015-06-01 10:20:14 -05:00
ecoal95 73d5e20fe6 servo: Merge #6183 - Add WebGLContextAttributes support (from emilio:webglcontextattributes); r=nox
r? @jdm

I couldn't add the `getContextAttributes` method since `CodegenRust`
doesn't know how to return a dictionary value, I'll take a look at it ASAP.

I think the helper functions can return directly the renderer, since they're used just for that, but I wanted to hear your opinions about this.

By the way I'm interested in adding more serious tests for WebGL, and I think the [khronos conformance suit](https://github.com/KhronosGroup/WebGL/tree/master/conformance-suites/1.0.3) should be the best option.

Should I try to integrate it in wpt, or making a `tests/webgl` directory (or similar) inside the servo tree? (Maybe this question should be for @Ms2ger)

Source-Repo: https://github.com/servo/servo
Source-Revision: 0de09b936e5e37c15b7865157a98ad78b1077659
2015-06-01 08:37:48 -05:00
Hyowon Kim 1ffadc119a servo: Merge #6239 - Correct the calculation of rects for drawimage (from hyowon:drawimage_rects); r=jdm
https://html.spec.whatwg.org/multipage/#dom-context-2d-drawimage
The source and destination rectangles have four points (x, y), (x+w, y), (x+w, y+h), (x, y+h), which doesn't mean rect(x, y, w, h).
cc @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: 2a8d5952892e050a3d604741dd1007e3bd563315
2015-06-01 07:36:42 -05:00
Glenn Watson 44bb82aa42 servo: Merge #6201 - Add jQuery test runner and mach integration (from glennw:jquery-runner); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 713f18a58d9ba39d0f2cd1cc987774a28a9035ee
2015-05-31 21:20:57 -05:00
Corey Farwell 98aedda40e servo: Merge #6232 - DRY submodule updating by utilizing existing update-submodules command (from frewsxcv:update-submodules-dry); r=jdm
This might allow us to merge #5648

Source-Repo: https://github.com/servo/servo
Source-Revision: 1d19338a93348c4e817a0b1619dc236881ba18f6
2015-05-31 20:40:21 -05:00
Corey Farwell ed1c05d4a4 servo: Merge #6234 - Clarify Python version checking conditional (from frewsxcv:patch-2); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: ce3debbc82e14523657974d1f6110e22272a178e
2015-05-31 19:08:45 -05:00
Corey Farwell 31d222b6ae servo: Merge #6235 - Remove unused imports in the Python files (from frewsxcv:rm-python-unused-imports); r=metajack
Found using flake8

Source-Repo: https://github.com/servo/servo
Source-Revision: cdc0b88f6984b7cb395a98a59e4829eb62b1e451
2015-05-31 18:28:29 -05:00
Tony Baker c40d341771 servo: Merge #6218 - Update dependencies for js, fontconfig-sys and mozjs_sys (from asbaker:update-dependencies-for-6088); r=SimonSapin
Fixes servo/servo#6088

Source-Repo: https://github.com/servo/servo
Source-Revision: 591614347f9ca5568974861e82c0c918e51e2974
2015-05-31 16:04:22 -05:00
Lars Bergstrom c551433314 servo: Merge #6225 - Add a simpler concurrency demo for linuxcon (from larsbergstrom:linuxcon_test); r=metajack
r? @metajack @mbrubeck @glennw
(or anybody, really)

This is just a simple version of summit3.html that has only the spinning rust logo and matrix multiplication calculator. Longcat currently has regressed and has both some rendering issues (margins have reappeared between the segments) and it only works as a standalone page and no longer within an iframe. I'll look into those enough to fix or at least log bugs when I get back.

Source-Repo: https://github.com/servo/servo
Source-Revision: c63fc4dc13a23cf5b9f8c0972111b3f9436d2143

--HG--
rename : servo/tests/html/summit3.html => servo/tests/html/linuxcon.html
2015-05-30 20:21:42 -05:00
Peter fe672294d7 servo: Merge #5972 - Makes Node::remove recursively remove all descendants of removed node from the doc (from pgonda:remove-children-from-doc); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: bf4fc6f388676cdc31cebc742a52e9d8896575f5
2015-05-29 12:03:28 -05:00
Nicholas Nethercote 346d1ef22d servo: Merge #6199 - Measure paint task buffer maps in the memory profiler (from nnethercote:instrument-paint-task-buffer-map); r=pcwalton
Example output from the memory profiler:

```
|       1.04 MiB -- url(http://en.wikipedia.org/wiki/Main_Page)
|          0.26 MiB -- display-list
|          0.78 MiB -- paint-task       # new output line
|             0.78 MiB -- buffer-map    # new output line
```

The buffer maps aren't huge, but they're worth measuring, and it's good
to get the memory profiler plumbing into PaintTask.

Source-Repo: https://github.com/servo/servo
Source-Revision: 10127d6b5a71ee8927413ab746300e32a54b079d
2015-05-28 22:45:34 -05:00
Mike Blumenkrantz 45f8cc9ea0 servo: Merge #6209 - force cef browser resize check on initial load (from zmike:rendersizing); r=mbrubeck
ensure that the output render size matches the desired size

Source-Repo: https://github.com/servo/servo
Source-Revision: 09f2977cc945850a35f7a5ef1ed014bc42cb265a
2015-05-28 15:41:44 -05:00
Mátyás Mustoha 5f241b25b2 servo: Merge #6065 - Enable antialiasing for the canvas (from mmatyas:canvas_antialias); r=jdm
This patch turns on antialiasing for the canvas, and updates the painting code to use the updated Azure DrawOptions defined in servo/rust-azure#158.

Source-Repo: https://github.com/servo/servo
Source-Revision: c97c0a9f94208828c617cbd99efd8e3e410c69ee
2015-05-28 14:59:36 -05:00
Ms2ger c319a40e9e servo: Merge #6208 - Avoid a build warning in the glutin port without the window feature enabled (from Ms2ger:warning); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 952e953237220847c53b91eb8750939b233d3398
2015-05-28 12:45:13 -05:00
Nicholas Nethercote e24ddfafcc servo: Merge #6200 - Recursively sort memory report sub-trees (from nnethercote:sort-memory-sub-trees); r=pcwalton
This puts the larger sub-trees first. E.g. this:
```
|       1.04 MiB -- url(http://en.wikipedia.org/wiki/Main_Page)
|          0.26 MiB -- display-list
|          0.78 MiB -- paint-task
|             0.78 MiB -- buffer-map
```
becomes this:
```
|       1.04 MiB -- url(http://en.wikipedia.org/wiki/Main_Page)
|          0.78 MiB -- paint-task
|             0.78 MiB -- buffer-map
|          0.26 MiB -- display-list
```
This matches how Firefox's about:memory works.

Now that this is done for all sub-trees, the ad hoc sorting done for
Linux segments is no longer necessary, and has been removed.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1d9b5ced38a9b3f161795f16daf28fc449edb187
2015-05-28 11:11:27 -05:00
Nicholas Nethercote e5ec07f5a0 servo: Merge #6202 - Freetype fixes (from nnethercote:freetype-fixes); r=jack
Because #6198 wasn't quite right.

Source-Repo: https://github.com/servo/servo
Source-Revision: dddd222d2967bcf29dbb29856ddd7265c83e4d08
2015-05-28 09:04:08 -05:00
Anthony Ramine 248f6a2dbb servo: Merge #6206 - Make throw_not_in_union() throw a TypeError (fixes #6194) (from nox:typeerror-for-unions); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: df74ed136cd7de07fd1563129b9828f5425a8dbf
2015-05-28 06:24:00 -05:00
Jinwoo Song 6a080bd126 servo: Merge #5981 - Implement NodeIterator (from Jinwoo-Song:nodeiterator); r=Manishearth
Implement NodeIterator's basic functionality. (Fixes #1235)  But the cases for node removals are not implemented yet.

r? @jdm
cc @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: 2b52006b1c503a24d5e832934d3265d45e425f40
2015-05-28 05:14:08 -05:00
Jinwoo Song aafaa7ed0d servo: Merge #6198 - Use FT_Done_Library instead of FT_Done_Freetype (from Jinwoo-Song:freetype); r=metajack
It is recommended to use FT_Done_Library with FT_New_Library
from freetype document.

Fixes #6191.

r? @jdm @nnethercote
cc @yichoi

Source-Repo: https://github.com/servo/servo
Source-Revision: af81db54790efbeb86ee03e6ca63fb9046c6111a
2015-05-27 21:06:12 -05:00
Matt Brubeck abff7d2965 servo: Merge #6196 - Update azure and its dependencies (from mbrubeck:metadata); r=SimonSapin
#6088. r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: b1a773a15bd2e022aa45c3672e51467e994badfe
2015-05-27 14:57:41 -05:00
Mike Blumenkrantz 2dc4375f93 servo: Merge #6175 - Embedding: revenge of cargo (from zmike:embedding-REVENGE_OF_CARGO); r=larsbergstrom
Adds a bunch more embedding interfaces/callbacks/functionality

@larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 94ebfe81e454ca6dd68210b4475b4091e836dd1a
2015-05-27 14:17:32 -05:00
Anthony Ramine f3ca7195dc servo: Merge #6192 - Cleanup URLSearchParams (from nox:cleanup-urlsearchparams); r=Manishearth
It now uses rust-url for its serializer.

Source-Repo: https://github.com/servo/servo
Source-Revision: d87af8ac52b16a3763420fb7ad8fb45af785a23b
2015-05-27 05:21:05 -05:00
Tamir Duberstein 29a5385bee servo: Merge #6187 - Avoid extra O(n) scan in `validate_and_extract` (from tamird:cleanup-validate-and-extract); r=mbrubeck
Also `debug_assert!`s that `splitn` was called with the
correct `count` argument.

Adaptation of #5778.

Source-Repo: https://github.com/servo/servo
Source-Revision: df2f8d0636922a7e89895fa61fdba30099cec9ea
2015-05-26 16:29:42 -05:00
Simon Sapin c4ddaa287d servo: Merge #6186 - Use harfbuzz bindings from crates.io (from SimonSapin:harfbuzz-crates.io); r=Manishearth
https://github.com/servo/rust-harfbuzz/issues/39
https://www.mail-archive.com/dev-servo@lists.mozilla.org/msg01289.html

r? @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: 54afa01dd665b8facbbba7d49974ac5532e3b83f
2015-05-26 15:16:40 -05:00
Patrick Walton a9af0b6fd4 servo: Merge #6028 - script: Reflow 200 milliseconds after the `<body>` is parsed, like Gecko does (from pcwalton:reflow-timer); r=jdm
It would be nice if HTML parsing didn't have to hog the event loop, so I didn't have to do this polling in `content_changed()`, but maybe the way we do it is unavoidable.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: e604b663f4e664b9a94d61569082b2b62de2151d
2015-05-26 13:18:26 -05:00
Tamir Duberstein 905e1fd54b servo: Merge #6168 - Implemented `GetCachedMessages` (from tamird:get-cached-messages); r=jdm
Rebase of #4175, closes #4175. r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 8759d42559bc5c10f8d90903f33f75bddf44d9fe
2015-05-26 10:34:03 -05:00
Anthony Ramine 9512a913c9 servo: Merge #6140 - Cleanup some gratuitous or inefficient uses of RootedVec (from nox:cleanup-rootedvec); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 7d0409b8421e1b0c055507acc7d784cac890f47e
2015-05-26 08:36:29 -05:00
Alexander Putilin 20769db92d servo: Merge #6171 - fixes 4184: no-sniff and check-for-apache-bug for mime sniffing (from eleweek:fix-4184-ok); r=Manishearth
I tried fixing #4184 , here is the code I have right now.

I haven't tested it, because I don't know what is the best way to test this part of code. Would like some help with testing this. Should I write an autotest or should I just test manually?

Source-Repo: https://github.com/servo/servo
Source-Revision: be6c251e4c01be61400786e25442f6df36f135f6
2015-05-25 23:10:18 -05:00
Philipp Hartwig 5fd9e25365 servo: Merge #6179 - Use byte string instead of handcrafted byte array (from aopicier:byte_strings); r=jdm
Fixes #3257
In eventtarget.rs I'm not sure whether ARG_NAMES actually needs to be static!?

Source-Repo: https://github.com/servo/servo
Source-Revision: 999325460ecc71b02160e8c79e71a694987d9acd
2015-05-25 17:13:27 -05:00
r0e 37b47dc902 servo: Merge #6162 - Pending load guard does not assert if thread is panicking (from r0e:testing); r=jdm
Fixes issue #6148

@jdm After mulling over this for a little while, i'm not sure if this approach is correct. Any comments?

Source-Repo: https://github.com/servo/servo
Source-Revision: 6595ebed0f50658b8f6d12f9c37017df5ea26efa
2015-05-25 16:33:43 -05:00
Tamir Duberstein a69d841adc servo: Merge #6169 - Use a struct variant for clarity (from tamird:struct-variant); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 34a617aaa133b0bc0756dd7d904203c9d633e69a
2015-05-25 15:53:56 -05:00
Mike Blumenkrantz d190af2390 servo: Merge #6125 - Renderrenderrenderrender: Now for embedding! (from zmike:renderrenderrenderrender); r=larsbergstrom
A collection of commits which improves embedding integration and rendering.

@larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 4a95bce9f260b183660dab44ef3044618be6840c
2015-05-24 19:26:00 -05:00
Corey Farwell 333cc6c59d servo: Merge #6174 - Reduce max line length from 150 to 120 characters (from frewsxcv:cleanup-long-lines); r=SimonSapin
Part of https://github.com/servo/servo/issues/6041

Source-Repo: https://github.com/servo/servo
Source-Revision: 542519ebfd073662bc9421ac5fa0aa01ebc0d6fe
2015-05-24 18:27:26 -05:00
Alexander Putilin 2ba83cc42b servo: Merge #6170 - fixes 6111: WebSocket close event shouldn't be Cancelable (from eleweek:fix-6111); r=Ms2ger
This fixes #6111 , @jdm said that I can work on this issue

Source-Repo: https://github.com/servo/servo
Source-Revision: 16f19b628fa630aab8cfd275a90128da7b59723b
2015-05-24 10:27:41 -05:00
Patrick Walton eccdc2ade1 servo: Merge #5607 - layout: Implement per-glyph font fallback (from pcwalton:per-glyph-font-fallback); r=mbrubeck
This improves numerous pages, for example Wikipedia and Ars Technica.

Built on #5493.

Closes #177.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7561f7b83f27811683c1e724d75a935573a72813
2015-05-22 19:16:54 -05:00
Christian Stadelmann 83e5e716d8 servo: Merge #6163 - doc/howto install: Fedora replaces yum with dnf (from jdm:yumupdate); r=jdm
According to the official change set [1] for Fedora 22 which will be released in some days [2] yum will be replaced by dnf. The syntax is basically the same (in these simple cases here it is exactly the same, tested with dnf). After that only Fedora 21 and 22 will be supported, both come with dnf shipped by default.

[1] https://fedoraproject.org/wiki/Releases/22/ChangeSet#Replace_Yum_With_DNF
[2] https://fedoraproject.org/wiki/Releases/22/Schedule?rd=Releases/22

Source-Repo: https://github.com/servo/servo
Source-Revision: 19b443ecc8d40f95958e26656613280ddf2c687a
2015-05-22 15:33:08 -05:00
Simon Sapin b84cfbc5a9 servo: Merge #6159 - Remove usage of the mod_path compiler plugin (from SimonSapin:no_mod_path); r=Manishearth
https://github.com/rust-lang/rust/pull/20179 makes its use case much weaker.

r? @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: e04d9c32a98ff4673f413ed17f66e7466e2ff974
2015-05-22 03:13:13 -05:00
Manish Goregaokar cf38062366 servo: Merge #6156 - Fix deprecated plugin APIs (from Manishearth:warn_fix); r=larsbergstrom
r? @larsbergstrom


(The diff is borked here, but I only just added `if let`s and wrapped/unwrapped in `Annotatable`s)

Source-Repo: https://github.com/servo/servo
Source-Revision: ef7fa99bd2c4ff52be1c6361d9f1eca3775c88c5
2015-05-21 13:27:27 -05:00
Josh Matthews afb6727d56 servo: Merge #5727 - Make external script sources load asynchronously, yet still block furthe (from jdm:parserinterrupt2); r=mbrubeck
...r parsing. Hook up document loading to async networking events.

Relies on https://github.com/servo/html5ever/pull/107, so we'll likely need to backport it rather than wait for the next rustc upgrade.

Source-Repo: https://github.com/servo/servo
Source-Revision: dd319c1a998bbd3eeb84fdc4ca8a41ee7877ca37
2015-05-21 12:37:06 -05:00
Lars Bergstrom 0be1747830 servo: Merge #6155 - Rustup to 1.2.0 (from servo:rustup_2015-05-21); r=Manishearth
r? @Manishearth

(there's just the one plugins-related change required)

Source-Repo: https://github.com/servo/servo
Source-Revision: a0fccea670124d5ccfef1c13fe1b5d2e58891236
2015-05-21 10:50:53 -05:00
Paul Faria e75d4a7ceb servo: Merge #6154 - Adding in a missed algorithm step number in the comments (from Nashenas88:websocket-parse-url-typo); r=jdm
This is a really small typo fix for an issue I worked on recently.

Source-Repo: https://github.com/servo/servo
Source-Revision: b84aa41c229a18fa77f4ae815fc0166cb3fbb1b6
2015-05-21 06:59:06 -05:00
Glenn Watson de0de69bad servo: Merge #6152 - Fix document load event firing after pipeline is closed (from glennw:runnable-panic); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1060cfde68c8d355b54a271923c9682721c5ed19
2015-05-20 20:01:32 -05:00
Manish Goregaokar bfbc7a20aa servo: Merge #6151 - Upgrade rust to 716f920b7e234b450f272346fea961832505c06e (from servo:rustup-2015_05_13); r=larsbergstrom
(Tue May 19 05:39:29 2015 +0000)

Source-Repo: https://github.com/servo/servo
Source-Revision: 7ae5d1129f9fd1227678db9ad26471727dc9fa27
2015-05-20 18:23:13 -05:00
Patrick Walton f8784adc92 servo: Merge #5586 - net: Don't load the placeholder image for background images, only for image fragments (from pcwalton:no-broken-background-image-redux); r=glennw
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 77099b25d590fdaac76721e7f98f4e83672e64a6
2015-05-20 16:43:31 -05:00
ecoal95 9dbd03da1c servo: Merge #6083 - First steps to layerize canvas (from emilio:layerize-canvas); r=pcwalton
I've done a bit of job to get this done. Right now readback is still used, but we have a `LayerId` -> `CanvasRenderer` map on the paint task, that we can use to get rid of that.

I'd want review, to see if this is a good approach (I know it's not the initial `CanvasId` -> renderer approach, but it's pretty similar, since a canvas involves a `PaintLayer`).

I had to do a bit of refactoring to avoid cyclic dependencies between canvas and gfx. I'd want you to review them too.

It's mergeable and doesn't break any tests :P

Some of my main concerns:
* Does the canvas render really need to be behind an `Arc<Mutex<T>>`?
* I can't clone a `NativeSurface` right now (that's why the `SendNativeSurface()` msg is unimplemented in the WebGL task). It should be easy to add that to rust-layers, supposing the caller is responsible to mark it as non-leaking, any reason to not do it?

cc @jdm @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: ad53e95080144485e74cd9b9d48ce75e20de4e36

--HG--
rename : servo/components/gfx/color.rs => servo/components/gfx_traits/color.rs
2015-05-20 15:42:06 -05:00
Peter a1a04609a4 servo: Merge #5858 - fixes #5603, added support for tabindex field (from pgonda:tabindex-focus-flag); r=jdm
Added support for the tabindex field, also added its correct defaults (-2 TODOs for things not supported in Servo yet).  Also added tabindex logic into Element::is_focusable_area.

Source-Repo: https://github.com/servo/servo
Source-Revision: fada39164cbaba3a9885f08fad6f10a2353a4838
2015-05-20 14:34:31 -05:00
Patrick Walton 5f40a54beb servo: Merge #5577 - script: Implement the `width` and `height` attributes for iframes per HTML5 § 4.8.6 (from pcwalton:iframe-size-attributes); r=jdm
Improves Amazon and Ars Technica.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: ee147c164a8a13743dec2def60b13997145e7a55
2015-05-20 13:51:05 -05:00
Patrick Walton a72b4c7c70 servo: Merge #6077 - compositing: Support multiple events per frame (from pcwalton:multiple-events-per-frame); r=glennw
Improves scrolling performance significantly on Mac.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 071f89aa5f11075894e0702860d88f1353ecd95e
2015-05-20 13:06:52 -05:00
Peter 67ce0c76d2 servo: Merge #6074 - Allows the unrooted_must_root lint to deal with struct variant enums, #6069 (from pgonda:lint-fix-struct-enum-variants); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: d68730a0fc755149c1093021e34e7d34693429b7
2015-05-20 10:29:48 -05:00
Michael Wu 6b72c7862a servo: Merge #6143 - Avoid selecting bitmap fonts from fontconfig (from michaelwu:truetype-only); r=pcwalton
I have a number of pcf fonts installed. One of them is Adobe Helvetica, and it turns out many websites try to use Helvetica. This crashes servo.

Source-Repo: https://github.com/servo/servo
Source-Revision: 165bfd6d5f901ef2e2619dbcc010166106cebd0b
2015-05-20 02:36:43 -05:00
Michael Wu d49fb75099 servo: Merge #6139 - Rustup fixes (from michaelwu:rustup-fixes); r=SimonSapin
Mutable transmutes and wrong transmutes fixed.

Source-Repo: https://github.com/servo/servo
Source-Revision: 64810583093dadfacbda942562853af1ae82e34e
2015-05-20 01:55:43 -05:00
Paul Faria 8af3f9a70e servo: Merge #6127 - Throw a SyntaxError if the WebSocket URL can't be parsed. Fix #6061 (from Nashenas88:websockets-invalid-urls); r=Ms2ger
Fix #6061.

Source-Repo: https://github.com/servo/servo
Source-Revision: d869a3c7a8378a77a9a5e86c118115f969ade193
2015-05-20 01:13:57 -05:00
Paul Faria 175f0c39b1 servo: Merge #6094 - Fixed definition of Close and Send in WebSocket.webidl and updated im… (from Nashenas88:websockets-USVString); r=Ms2ger
Fix #6063
Fix #6062
Fixed definition of Close and Send in WebSocket.webidl and updated implementation in websocket.rs.

Source-Repo: https://github.com/servo/servo
Source-Revision: fe8760cce206ede76b71ccf3cc94fa37addddfc9
2015-05-20 00:20:06 -05:00
Keith Yeung 3156188545 servo: Merge #6129 - Implement fetch (partial #4576) (from KiChjang:fetch-spec); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 79ed6250f0535d62a12b1d7e47e48926d6e3925a
2015-05-19 23:08:41 -05:00
Matt Brubeck 73ab0aad18 servo: Merge #6138 - Enable 'direction' without --experimental (from mbrubeck:enable-rtl); r=pcwalton
r? @pcwalton or @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: fed48ca59b122f733c74957b6be39b067d792d17
2015-05-19 22:27:17 -05:00
Glenn Watson a6f3ad40b3 servo: Merge #6131 - Fix several hangs / panics during pipeline cleanup of in progress loads (from glennw:jquery-exit-fix); r=jdm
This fixes a hang found while testing the jQuery test suite.

Source-Repo: https://github.com/servo/servo
Source-Revision: c51e9f04559f04f1e820b792261e1653c6869ee5
2015-05-19 21:44:45 -05:00
WriterOfAlicrow fe77002c4f servo: Merge #6084 - Fix for Issue #6073 (from WriterOfAlicrow:radiobutton-fix); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e2b0922d42e18362ec9ae79feaffed601142e586
2015-05-19 20:49:32 -05:00
Patrick Walton b776a7f734 servo: Merge #6053 - compositing: Implement display ports and avoid creating display lists for items outside it (from pcwalton:displayports); r=glennw
This improves Servo's performance on large pages.

Please double-check the logic when it comes to nested layers—I'm sure I've messed up some of the geometry calculations :)

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 0880e54f987bac7c34c934ef6ee36f46475b06e3

--HG--
rename : servo/tests/html/lipsum.html => servo/tests/html/lipsum-large.html
2015-05-19 19:40:36 -05:00
Patrick Walton 0d3e12d7c8 servo: Merge #5989 - script: Implement the `color` attribute of the `<font>` element (from pcwalton:font-color); r=jdm
Improves Hacker News.

r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: ba340ec71bcfca8ab7b8ae04a22005e4fb860a23
2015-05-19 18:33:03 -05:00
Patrick Walton 9863bb0a54 servo: Merge #5993 - layout: Support percentage widths in inline-blocks (from pcwalton:inline-block-percentage-widths); r=mbrubeck
Improves Twitter.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: acb9824229bf9e02eaabdb9d924f7db242a1ac85
2015-05-19 16:03:15 -05:00
r0e a14044c69c servo: Merge #6136 - forces user to update cargo packages individually or enable flag to update all packages (from r0e:master); r=mbrubeck
Fixes issue #6112
update-cargo and cargo-update both require that the user specifies the "-p" flag along with a specified package OR specify the "-a" flag to update all packages.

Let me know if this is not the right functionality.

Source-Repo: https://github.com/servo/servo
Source-Revision: c981e9b2e36d4428cd3d55c7f2073f398251e777
2015-05-19 14:39:23 -05:00
Patrick Walton 5d9538d101 servo: Merge #6124 - layout: Support inline incremental reflow, and stop reconstructing all flows when mousing over the document (from pcwalton:inline-incremental-reflow); r=mbrubeck
r?

Source-Repo: https://github.com/servo/servo
Source-Revision: 16793d0e24ed49245e5777bc282839e4c157a091
2015-05-19 13:51:30 -05:00
Mike Blumenkrantz b8f26b8d1e servo: Merge #6120 - update glutin repo ref (from zmike:cmap); r=larsbergstrom
@larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 0a737d90f2aafa5653d2ce1a5c5a809ebf4aa3a1
2015-05-19 13:10:44 -05:00
Ms2ger e29f24a0f3 servo: Merge #6134 - Cleanup the fetch code (from Ms2ger:fetch); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 40dded8b3a2e9eb9c0f0b7af189df27f3ad6414a
2015-05-19 12:13:37 -05:00
Matt Brubeck 137ee1c88c servo: Merge #6130 - Fixes for layout of RTL floats (from mbrubeck:float-rtl); r=pcwalton
This fixes panics in RTL pages with floats (#6113) and partially fixes the positioning of RTL floats.  There are some remaining issues with the layout of floats in RTL flows, which I'll file follow-up issues for.

Source-Repo: https://github.com/servo/servo
Source-Revision: 360c5d8235ae6fb5c51fba391be92c6cafe88425
2015-05-19 11:29:34 -05:00
Matt Brubeck f66ab794b5 servo: Merge #6121 - Clarify how Servo rust snapshots work (from servo:mbrubeck-readme); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: cbc06ef62cbe67242b5eccea02d44046bd6f7885
2015-05-19 10:45:31 -05:00
Kevin Butler 19b3888e80 servo: Merge #6118 - Skip empty fragments when justifying inline fragments (from Ryman:gh5856); r=pcwalton
Fixes #5856

This stops the panic, but the empty fragments tend to be non-empty if extended by `info.range_end_including_stripped_whitespace`, so I'm unsure if it's a requirement to include that instead of skipping for correctness? Perhaps there's a testcase needed for this behaviour?

Source-Repo: https://github.com/servo/servo
Source-Revision: 913c5677ab190ee6764c93c46899eb82ad067699
2015-05-18 16:19:34 -05:00
Keith Yeung 30bcca955a servo: Merge #5824 - Implemented http fetch (partial #4576) (from KiChjang:http-fetch-spec); r=jdm
This is a work-in-progress for the implementation of HTTP fetch. Currently, it does not compile, as I haven't figured out how to solve the issues regarding borrows and lifetimes.

Source-Repo: https://github.com/servo/servo
Source-Revision: 90aacf00f866c7ef3b858d84585bd5142f74c9ee
2015-05-18 09:23:43 -05:00
Glenn Watson 7b091a0d36 servo: Merge #6109 - Fix android - it now renders the default wikipedia page correctly (from glennw:android-fix); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: ab145c43ac29183baf41da31ec853bcd8f5e47d0
2015-05-17 21:37:32 -05:00
Glenn Watson 334d32f1bc servo: Merge #6107 - Remove ms ttf fonts dependency that is no longer required. Fixes #6080 (from glennw:fonts-readme); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: c50754961c69f94e69189c2009e7e0da3ded0a68
2015-05-17 20:56:44 -05:00
Glenn Watson 5a8d446319 servo: Merge #6108 - Fix android logging since the rustup (from glennw:android-logs); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 57e3710ba2e2b27989e11cc531851f95d408cce2
2015-05-17 19:18:14 -05:00
Anthony Ramine 1608837686 servo: Merge #6064 - Fix overflow in CharacterData (from nox:characterdata-overflow); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 0f1f71b56f55c0cf4cb0d075916f34ebfc706783
2015-05-17 13:40:30 -05:00
Keith Yeung 476a71a377 servo: Merge #6102 - Made open event in WebScoket not cancelable (fixes #6101) (from KiChjang:websocket-open-event-noncancelable); r=Ms2ger
Fixes #6101

Source-Repo: https://github.com/servo/servo
Source-Revision: d6c3ddd8fd80853b6f679c5a9539ae86587c9b8e
2015-05-17 12:57:58 -05:00