Commit Graph

2335 Commits

Author SHA1 Message Date
Ms2ger
2bb9da787f servo: Merge #8548 - Remove the unused arguments to hit_test and mouse_over (from Ms2ger:unused-tna); r=pcwalton
I don't think this code is called when there is no document element, but I
added assertions to make sure we notice in case I was wrong.

Source-Repo: https://github.com/servo/servo
Source-Revision: 20d26853e145e275695463662b6cee334cd27085
2015-11-17 01:35:52 +05:00
Ms2ger
1be8cd53a2 servo: Merge #8545 - Remove AutoJoinScriptTask (from Ms2ger:AutoJoinScriptTask); r=pcwalton
I don't believe there is a case where it would make sense to drop the
ScriptReflow struct without joining the script thread. This approach should
be somewhat more robust, and avoids the code smell of a RAII guard in an
otherwise unused variable.

Source-Repo: https://github.com/servo/servo
Source-Revision: db94fda10e3351c96a0df61099d2fdfa481cc62b
2015-11-17 00:48:45 +05:00
Michael Howell
f4fab444d3 servo: Merge #8538 - Ignore <meta name=viewport> if @viewport is ignored (from notriddle:github_resize); r=mbrubeck
Fixes #8373

Source-Repo: https://github.com/servo/servo
Source-Revision: c1e6bc0714a11518afc608981ece954ac70bec93
2015-11-17 00:01:49 +05:00
Toothbrush
046dc31058 servo: Merge #8550 - Fixes #8546 (from toothbrush7777777:patch-1); r=frewsxcv
Fixes issue #8546.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4b0330937ab1f99e47c2ce312150a6dd44068380
2015-11-16 23:14:58 +05:00
Ms2ger
1535f2b370 servo: Merge #8533 - Remove the legacy module (from Ms2ger:legacy); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: b6f519cd0a9bdec909dcc5498f36f33e05f1115a
2015-11-15 18:43:13 +05:00
Roman Klauke
5022efc1ce servo: Merge #8527 - Replace Atom::from_slice("sizes") with atom!("sizes") (from romankl:atom-slices); r=Ms2ger
This PR replaces all occurrences of Atom::from_slice("sizes") with atom!("sizes"). It also updates string_cache to v0.1.17 from 0.1.16.

Right now I've split the crate update and the replace in different commits - should I squash them?

Fixes #8488.

Source-Repo: https://github.com/servo/servo
Source-Revision: c722e0e6f4de9de1b22ca6a8fa58ec5f49caa729
2015-11-15 17:56:33 +05:00
Corey Farwell
ce9719cac4 servo: Merge #8526 - Fix parse_length 0 values, implement <hr> 'width' (from frewsxcv:parse-length); r=eefriedman
Follow-up to https://github.com/servo/servo/issues/8424

Source-Repo: https://github.com/servo/servo
Source-Revision: 3ef0a9a79dffcde41cdd6081ef79a0f0593b5104
2015-11-15 03:00:46 +05:00
Ms2ger
19fa49ff78 servo: Merge #8529 - Remove unused lifetime parameters from LayoutTask methods (from Ms2ger:unused-lifetime); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 33c97b2ebbd7b77177b3e3874dc91dc487e64bad
2015-11-15 01:02:35 +05:00
Michael Howell
1ecc343c91 servo: Merge #8524 - Draw layers that are under sub-displaylists (from notriddle:paint_task_deep); r=jdm
Fixes #8325

Source-Repo: https://github.com/servo/servo
Source-Revision: 8f2a3a64f141f175e417e240766f9d7f06be0482
2015-11-14 21:56:22 +05:00
Paul Rouget
0a62891bdd servo: Merge #8449 - mozbrowsericonchange event (Browser API) (from paulrouget:favicon); r=jdm
fixes #8347

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f076c628bffa9d95dca61e003adb9ab3ab0a316
2015-11-14 19:24:03 +05:00
Ravi Shankar
83ede2b37c servo: Merge #8523 - Listen for cancellation message during loads and redirects (from Wafflespeanut:redirects); r=jdm
fixes #8495

Source-Repo: https://github.com/servo/servo
Source-Revision: bda46179b6d349eae1b88e2b08a065905236e02d
2015-11-14 18:55:33 +05:00
Greg Guthe
3b37407de6 servo: Merge #7242 - Perf timing dom props (from g-k:perf-timing-dom-props); r=jdm
I think this is closer to what https://github.com/servo/servo/issues/7045 describes, but it panics trying to load a page (trace: https://gist.github.com/g-k/a9911467889cdb6fdbf9) and all reftests fail.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7de8b0a7ff2038f9fb643141d8759f40fb6ef093
2015-11-14 10:56:23 +05:00
Ralph Giles
e62837c359 servo: Merge #8517 - Use the correct .png extension for the image placeholder (from rillian:rippy); r=larsbergstrom
This was changed to the mozilla broken image resource
without changing the filename, even though the file
type changed.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3f1b62d7d88d4ea83407ba45294142f4b4f0fe7c
2015-11-14 00:48:08 +05:00
Ms2ger
4020b8186e servo: Merge #8515 - Update string_cache_shared (from servo:usc); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 4f855dc63a0b6cc80737972ab3f79953321a900b
2015-11-13 22:30:33 +05:00
Josh Matthews
9e3888b693 servo: Merge #6935 - Make SSL cert verification errors work again. Add a horrible, no-good… (from jdm:sslverify); r=Manishearth
…, very bad regression test.

Here are the list of awful things this test exploits:
- Servo can't load HTTPS content in WPT tests (#6919)
- Our web workers don't report error events to the parent worker object after the initial network load completes
- Our worker resource load don't have a same-origin check

The good news is that this test should start failing if any of those "features" change, so this should not silently break on us.

Other attempts to test this included:
- iframes (didn't work because of #6672 and #3939)
- XMLHttpRequest (I was hit by CORS, I think; maybe I could have made it work if I returned the right headers)

r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 0735cec3513f86d78dc2f1de58304b4ec5e85629
2015-11-13 21:30:57 +05:00
Ms2ger
c62a737f8c servo: Merge #8510 - Update mozjs (from servo:mozjs); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 50be4bb09ea42926a3bddb75a024e92a75e2047e
2015-11-13 19:19:35 +05:00
Corey Farwell
43a8a7f7fa servo: Merge #8505 - Implement 'bgcolor' IDL attribute for 'HTMLTableCellElement' (from frewsxcv:html-table-cell-element-bgcolor-idl-attribute); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: f078f8fdf4157b4e57cef35eba00419c9c15464d
2015-11-13 14:37:53 +05:00
Keith Yeung
d31d4aba8f servo: Merge #8478 - Split chan and receiver_port into script and compositor flavors (from KiChjang:constellation-two-receivers); r=Ms2ger
Partial #8356. Currently this doesn't build because of a lint denying me to user unsafe code, which unfortunately the select! macro falls under. Not sure what to do there.

Source-Repo: https://github.com/servo/servo
Source-Revision: 231bf425f26a1c2aa993e3adfed1e3cfae0da027
2015-11-13 14:05:08 +05:00
Corey Farwell
ac2f1cc66a servo: Merge #8504 - Prefer atoms over strs for string comparisons (from frewsxcv:more-atoms); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1763a37e3be8be46dc86bf4bf76bcd7c892566da
2015-11-13 10:26:13 +05:00
Corey Farwell
af35417f73 servo: Merge #8500 - Consolidate 'subpage finding' script_task logic (from frewsxcv:subpage); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: ef74bf5d42e80f9420a197dbe3d7da609ba158b0
2015-11-13 08:22:18 +05:00
Michael Howell
d461132ff3 servo: Merge #8493 - Clean up use of Option in font_cache_task (from notriddle:fct_cleanup); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 118fbd6120fdcbec04858ecddb3ac8be882f4da1
2015-11-13 07:34:50 +05:00
Alan Jeffrey
128ce4b968 servo: Merge #8477 - Opaque DOMString (from asajeffrey:opaque-domstring); r=asajeffrey
This patch makes DOMString an opaque wrapper round String (currently it's a transparent wrapper).

The changes are:

* Replacing DOMString(foo) by DOMString::from(foo).
* Replacing foo.0 by String::from(foo).
* Adding functions clear, push_str and extend for in-place mutation of DOMStrings.
* Replacing DOMString by String in other threads (devtools, storage and filereader).
* Making DOMString implement !Send.
* Removing the pub attribute from the contents of DOMString.

This enables experimenting with other string representations in the DOM.

Source-Repo: https://github.com/servo/servo
Source-Revision: 62acdd303b78951885c2c90747b31f318907d6c9
2015-11-13 06:47:30 +05:00
Anthony Ramine
aa95b1efa2 servo: Merge #8147 - Implement weak-referenceable JS-managed objects (from nox:weakref); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: e63b1e83d4acd272cdf293292f2a496455405098
2015-11-13 05:52:40 +05:00
Patrick Walton
b0cfd94d48 servo: Merge #8492 - script: Make timer events e10s-safe (from jdm:e10s-timer-events); r=jdm
Closes #8235.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9eaa8e7b1f2e462f62b73477c30183c836a18399
2015-11-13 04:49:48 +05:00
Corey Farwell
2a87f91a4c servo: Merge #8479 - Implement Default trait for DOMString (from frewsxcv:domstring-default); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 1720595a85ff0a593994fed1d086288746c56aa3
2015-11-13 04:21:32 +05:00
Anthony Ramine
de9439de24 servo: Merge #8498 - Properly handle variadic arguments preceded by default values (from nox:fix-variadic-and-default-arguments); r=jdm
I broke that in #8197.

Source-Repo: https://github.com/servo/servo
Source-Revision: c44c73aa00ced6235266bd692833e22018f31138
2015-11-13 03:52:11 +05:00
Josh Matthews
bd9c531662 servo: Merge #8430 - Invoke specialized callback behaviour for OnErrorEventHandler (from jdm:errorhandler); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: fafc280179ddafab878dd261121cee17ba3b921c
2015-11-13 03:24:00 +05:00
Hayden Faulds
1ea1913405 servo: Merge #8485 - Make layout task fields private (from hfaulds:make-layout-task-fields-private); r=Ms2ger
For https://github.com/servo/servo/issues/8471

The second commit I'm slightly less sure about but with `chan` made private this warning was shown:

```
components/layout/layout_task.rs:152:5: 152:21 warning: struct field is never used: `chan`, #[warn(dead_code)] on by default
```

There might be some cleanup around `layout_chan` in https://github.com/hfaulds/servo/blob/make-layout-task-fields-private/components/layout/layout_task.rs#L244-L261 as well but that was a bit beyond me.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1e10b67b1806a481d3080d243e5d64022cee51a0
2015-11-13 01:56:12 +05:00
Ms2ger
30837e1d9b servo: Merge #8428 - Update js (from Ms2ger:conversions); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: b40882093a306032d38ad02e30f0095e0a49ec21
2015-11-13 00:43:52 +05:00
Ravi Shankar
b1d7525d43 servo: Merge #7844 - Cancelable network requests! (from Wafflespeanut:requests); r=jdm
fixes #4974

Source-Repo: https://github.com/servo/servo
Source-Revision: 4848e37e2e0da2f83b1d7f0d231d59047012ff95
2015-11-12 18:29:58 +05:00
Corey Farwell
e1a5400832 servo: Merge #8481 - Simplify IterablePage::find (from frewsxcv:iterablepage-iter); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 743ca24819490c24ab3cf713fc9fdcd0f58957e0
2015-11-12 17:59:12 +05:00
Corey Farwell
e845513dd3 servo: Merge #8482 - Remove unnecessary '*_mut' methods (from frewsxcv:no-mut); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 448c7fb2e6758ca069104820fd5ac6b94725a1d5
2015-11-12 16:14:09 +05:00
Martin Robinson
31e4f96fbd servo: Merge #8376 - Properly make stacking contexts for inlines (from mrobinson:fix-inlines); r=pcwalton
Instead of making a stacking context out of inline fragments parent
flow, make the inline fragment itself the stacking context. This fixes
positioning and rendering of these sort of fragments and prevents
over-layerization.

Fixes #7424.
Fixes #5812.

Source-Repo: https://github.com/servo/servo
Source-Revision: efc31e619d0d4024faafbfecbd01aa4cff523904
2015-11-12 11:56:39 +05:00
Corey Farwell
969fc79bf7 servo: Merge #8483 - Cleanup PageIterator::next (from frewsxcv:cleanup-pageiterator-nxt); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: de832efd5d46422394804a93979e4cae8b465698
2015-11-12 10:26:49 +05:00
Corey Farwell
cb2890914e servo: Merge #8476 - Remove unnecessary 'node changed' notification (from frewsxcv:unnecessary-document-notification); r=nox
This same notification already happens in `CharacterData::SetData`

Source-Repo: https://github.com/servo/servo
Source-Revision: 1b20bc90ee8321aaa95e1906321753549ad166e6
2015-11-12 05:03:19 +05:00
benshu
6bdbd3ac26 servo: Merge #8475 - Execute XHR timeout callbacks directly. (Fixes #8468.) (from benschulz:xhr-timeout-ordering2); r=jdm
This is a fix for #8468.

Currently XHR timeouts schedule themselves for execution via `CommonScriptMsg::RunnableMsg`s. This was necessary when these timeouts used a separate thread to schedule themselves. Now it's a potential race that should have been eliminated as part of #8168.

Source-Repo: https://github.com/servo/servo
Source-Revision: 49d48a8680003267f29ebf8cd47c244b07f4c4d2
2015-11-12 04:01:13 +05:00
Emilio Cobos Álvarez
bb37511847 servo: Merge #8412 - Add WebIDL sequence return values (from emilio:webidl-sequence-return); r=jdm
And use it for `WebGLRenderingContext::getSupportedExtensions`.
Part of #544

Source-Repo: https://github.com/servo/servo
Source-Revision: 12f6ba29a74029fa8c83cc7274181d441e1e52dd
2015-11-11 22:45:15 +05:00
Corey Farwell
2ed3924aea servo: Merge #8466 - Simplify script::dom::node NodeValue implementations (from frewsxcv:node-value); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 01ff78b438fe905b02735762d696408b4d073e90
2015-11-11 21:13:21 +05:00
Corey Farwell
d0db054547 servo: Merge #8459 - Simplify iterating over Element attributes (from frewsxcv:namednodemap-iter); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 5e6efd62c1f19408f2d0dd50c48345b4122c0269
2015-11-11 19:49:49 +05:00
Anthony Ramine
3ab3bf76c2 servo: Merge #8197 - Support variadic interface arguments (fixes #8159) (from nox:variadic-interface-argument); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: f03a8261c58f650eda789b1f9f5363af6e15f59c
2015-11-11 19:02:26 +05:00
Corey Farwell
1a4c362d74 servo: Merge #8453 - Prefer Atoms over strs for comparison (from frewsxcv:atoms); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: fd5540df626508a57f6698b71d4d8ac8e95fb12e
2015-11-11 06:25:39 +05:00
benshu
d6d60e2e22 servo: Merge #8168 - XHR timeouts use same abstraction as scripts timers. (fixes #3396) (from benschulz:xhr-timeout-ordering); r=jdm
Alright, this is it. Finally the fix for #3396. :D

I'll add two comments via reviewable in a second.

Source-Repo: https://github.com/servo/servo
Source-Revision: df81cd7ce9de4823ad966f873639ed06ca368e4c
2015-11-11 05:38:28 +05:00
Michael Howell
cc8be9fb25 servo: Merge #8256 - Write reflow results, even with no root node (from notriddle:master); r=eefriedman
Fixes #8240

Test in w3c/csswg-test#928.

Source-Repo: https://github.com/servo/servo
Source-Revision: 532f9a053a318fc3022de8bd5cd8b853ff27b37e
2015-11-11 04:19:49 +05:00
Bobby Holley
7f2310076d servo: Merge #8381 - Implement attribute restyle hints (from bholley:attr_restyle_hints); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 13226f847234cd0130820338d5a272277780d278
2015-11-11 00:57:45 +05:00
Corey Farwell
7a69d816ad servo: Merge #8447 - Implement 'width' IDL attribute on <table> (from frewsxcv:htmltableelement-width-idl-attribute); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 81f094b129f4df5f8287eb6613108b673211a546
2015-11-10 12:24:30 +05:00
Rizky Luthfianto
d60a173be6 servo: Merge #8444 - refactor(htmlhrelement.rs): color setter now uses macro (from rilut:patch-2); r=frewsxcv
Changed the function in #L44-47 to a macro usage. Fixes #8433.

Source-Repo: https://github.com/servo/servo
Source-Revision: 32a91bc6566ab23318a902392ade7096ccbb9e36
2015-11-10 11:42:25 +05:00
Rizky Luthfianto
3e1e3a580d servo: Merge #8442 - refactor(devtools/lib.rs): Remove unused import (from rilut:patch-1); r=Manishearth
Removed `RecvError` imports from #L57. Fixes #8442.

Source-Repo: https://github.com/servo/servo
Source-Revision: cff917320809acab007918e4597e9257d02004c3
2015-11-10 09:05:53 +05:00
Matt Brubeck
d9b83393aa servo: Merge #8440 - Remove unused method from Range (from mbrubeck:range-unused); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 4ec96963f8d0560f032d800ee6d568dbbc87e262
2015-11-10 08:13:59 +05:00
Corey Farwell
086231106b servo: Merge #8434 - Add Dimension member to AttrValue (from frewsxcv:dimension-attrvalue); r=eefriedman
Fixes #8417

Source-Repo: https://github.com/servo/servo
Source-Revision: cd6813ea3930d0d98cace8bf730286e1802fd280
2015-11-10 07:45:37 +05:00
Ms2ger
016b743252 servo: Merge #8378 - Reduce LayoutTaskData to the fields used for RPC (from Ms2ger:rwdata); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 0d21158eb3bc8cb64a1953ab77b57e813bd429ed
2015-11-10 07:17:45 +05:00