João Oliveira
728883c59d
servo: Merge #7208 - replace .len() == 0 with is_empty() (from jxs:master); r=Ms2ger
...
closes #7198
Source-Repo: https://github.com/servo/servo
Source-Revision: 85022a4c347dca3f5d28cec3010f7e9410217df4
2015-08-14 00:51:59 -06:00
Corey Farwell
538f0e1d7c
servo: Merge #7199 - Prefer if..let over if..is_some..unwrap in codegen (from frewsxcv:codegen-if-let); r=Manishearth
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 2e1ca10eeaf6a62326c1b864345f624ed2974a52
2015-08-13 15:35:21 -06:00
Corey Farwell
a971e619db
servo: Merge #7196 - Avoid marking codegen method bodies as unsafe twice (from frewsxcv:double-unsafe); r=jdm
...
`CGAbstractMethod` takes a couple boolean parameters, among others:
* `extern`: will mark the method as `unsafe` and `extern`
* `unsafe`: will wrap the method body in an `unsafe` block
Passing both as `True` should not mark it as `unsafe` twice.
Example from a generated `HTMLCollectionBinding.rs`:
Before:
```
unsafe extern fn get_length(..) -> u8 {
unsafe {
// code here
}
}
```
After
```
unsafe extern fn get_length(..) -> u8 {
// code here
}
```
Source-Repo: https://github.com/servo/servo
Source-Revision: 289decb064b44937f570fdc299de9af961296dd6
2015-08-13 15:00:37 -06:00
Ms2ger
0f64f190b6
servo: Merge #7190 - Correct the default value for Node#cloneNode's deep argument (from Ms2ger:node-clone); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 42d74324e22be0f105d2412938df8b05c20feff6
2015-08-13 13:51:06 -06:00
Bogdan Cuza
e4347f5a6a
servo: Merge #7097 - Measure heap memory usage for more types. Fixes #6951 (from boghison:memtypes); r=jdm
...
Also adds HeapSizeOf implementations/derive for some types. I've used "Cannot calculate Heap size" as a reason everywhere, because my imagination is rather limited. If you'd like me to change this message for specific types, please write something like this: "Trusted - Cannot calculate Heap size for Trusted" so that it would be easier for me to replace them through a script :)
Source-Repo: https://github.com/servo/servo
Source-Revision: a03616f379c255cc6c9b6e1d04dd7d98bd9926ce
2015-08-13 13:16:14 -06:00
Josh Matthews
23744c5983
servo: Merge #7132 - Document the use and meaning of the devtools control messages. Fixes … (from jdm:docenum); r=ms2ger
...
…#6922.
Source-Repo: https://github.com/servo/servo
Source-Revision: f3b7c5cb4b0fab20db51b7560c3b3bb2d115be69
2015-08-13 12:41:48 -06:00
Ms2ger
6edc2a7333
servo: Merge #7176 - Merge the fragment handling into handle_navigate (from Ms2ger:navigate-fragment); r=jdm
...
This is handled in the 'navigate' algorithm in the specification.
Source-Repo: https://github.com/servo/servo
Source-Revision: e44ae6404fd25ed51a543141ca8f9cc2a3443817
2015-08-12 12:22:47 -06:00
Ms2ger
3d6204b63a
servo: Merge #7171 - Remove ScriptControlChan (from Ms2ger:ScriptControlChan); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 3ad49fc689ceb6067cd6dea1aa0d004321704b8e
2015-08-12 08:28:29 -06:00
Maciej Skrzypkowski
3fbaa32432
servo: Merge #6757 - Implementing document.hasFocus method, needs tests. #6475 (from mskrzypkows:document_hasFocus); r=jdm
...
I'm not sure if I have to implement some test for a new document method. As I remember there were tests for document methods, is it changed now? Where should I add tests?
Source-Repo: https://github.com/servo/servo
Source-Revision: 0c5158587d997c69ce3c76062b369b8f0714306e
2015-08-11 15:35:21 -06:00
David Zbarsky
d94b35417e
servo: Merge #7104 - CanvasGradient#addColorStop should throw for invalid colors and offsets (from dzbarsky:add_color_stop); r=Ms2ger
...
The new test failure is because the color stop has a value of 'currentColor' which we don't support yet.
Source-Repo: https://github.com/servo/servo
Source-Revision: d9925f5f929a951f5e2545de0d5c36ee790293e1
2015-08-11 06:24:35 -06:00
David Zbarsky
9758de7854
servo: Merge #7151 - Make CSSStyleDeclaration setters rethrow errors instead of unwrapping (from dzbarsky:style-setters); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: b8d464f5dc44bdf8382bf6d7b6a5814bf440bbad
2015-08-10 23:04:34 -06:00
Brandon Fairchild
ad94b41657
servo: Merge #7136 - Rename SendConsoleMessage to ConsoleAPI (from nerith:consoleapi); r=jdm
...
Fixes #7131 .
Source-Repo: https://github.com/servo/servo
Source-Revision: 41166fdb5bd16e96827118b9ab5543c65418c200
2015-08-10 15:10:57 -06:00
Anthony Ramine
22f8c5ff5e
servo: Merge #6778 - Optimise Node.childNodes (from nox:childnodes); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 2b9590c5a53f273c13c6fb36f95fbf593bbffd8b
2015-08-10 14:05:02 -06:00
David Zbarsky
3a9c02226b
servo: Merge #7089 - Implement HTMLTableElement#createTBody (from dzbarsky:createtbody); r=Ms2ger
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 44d93bc37aa8226554fc73bba20421a150b002de
2015-08-09 13:56:47 -06:00
Ms2ger
d2aea50602
servo: Merge #7114 - Introduce a follow_hyperlink function to implement the "follow a hyperlink" algorithm (from Ms2ger:follow-hyperlink); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: a74f3d1d9c09b40a81fa4410797e8c4920225c78
2015-08-09 12:10:08 -06:00
David Zbarsky
54064f2d7c
servo: Merge #7092 - Clean up and fix PutImageData (from dzbarsky:putimagedata); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 6a8bc8528498c0cbb2e50567d765a989cde2d115
2015-08-09 07:00:56 -06:00
David Zbarsky
db43768f37
servo: Merge #6975 - Fix getImageData with sizes < 1 pixel (from dzbarsky:get-tiny); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: dbce4c5bd8ec005ba78ac8c2f8754bd137c87f25
2015-08-09 06:32:30 -06:00
David Zbarsky
5f934816a1
servo: Merge #7063 - Implement createCaption and deleteCaption on HTMLTableElement (from dzbarsky:caption); r=Ms2ger
...
Source-Repo: https://github.com/servo/servo
Source-Revision: f41834e3217bb571ead68e870ab0b1e88c4b5764
2015-08-09 04:45:28 -06:00
Adrián Arroyo Calle
7215985f11
servo: Merge #7107 - Removed unused object_to_string method (from AdrianArroyoCalle:master); r=Ms2ger
...
Closes #7100
Source-Repo: https://github.com/servo/servo
Source-Revision: 28abc55d9b55ce8488cbcba9730a0b0ff5badcee
2015-08-09 04:16:55 -06:00
Ms2ger
aa878ef549
servo: Merge #7046 - Implement a base_url getter and use it for style attributes (from Ms2ger:base-url); r=dzbarsky
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 530d4547c945fbf120d546d6e9a31b8f3bacc78f
2015-08-08 06:53:32 -06:00
Ms2ger
a03aa718ba
servo: Merge #7075 - Improve code around Window::load_url (from Ms2ger:load_url); r=dzbarsky
...
Source-Repo: https://github.com/servo/servo
Source-Revision: a0af7a1581ffaa6b40149affdd5519caa2be015f
2015-08-08 06:09:13 -06:00
Ms2ger
ca4d4b77c1
servo: Merge #7066 - Dispatch message events for WebSocket (from Ms2ger:ws-event); r=metajack
...
Source-Repo: https://github.com/servo/servo
Source-Revision: d8b4611a79fbb8c4675d9de763280ada34e63b13
2015-08-08 03:00:50 -06:00
Harrison G
4521a1fd16
servo: Merge #7073 - Fix requestAnimationFrame timestamps in queue (from HarryLovesCode:master); r=SimonSapin
...
This resolves #7044 which involved callbacks in a queue not receiving the same timestamp despite the specification saying they should. An extra test was added to verify the correct behavior.
Source-Repo: https://github.com/servo/servo
Source-Revision: d36a10023a9d37a24e2eb182918d790a4b8f55e3
2015-08-07 17:14:48 -06:00
James Graham
7de96c0710
servo: Merge #6415 - Add DOMLoad message to constellation that is sent after the DOM Load event is dispatched (from jgraham:dom_load); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 361d94d23ebf2897a240763d28fbb77b3d831b34
2015-08-07 11:30:33 -06:00
Ms2ger
8a18cbe024
servo: Merge #7000 - Remove some stray whitespace (from Ms2ger:space); r=nox
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 29c12dfc56b9d2398fd2b4d26404a850b99d73dd
2015-08-07 09:40:50 -06:00
Corey Farwell
008e67e9f0
servo: Merge #6993 - Remove dead Python code in binding generating code (from frewsxcv:rm-dead-codegen); r=Ms2ger
...
Fixes #6956
Source-Repo: https://github.com/servo/servo
Source-Revision: 9ed2df3de704261399942b82a047a6a757501d53
2015-08-07 04:51:31 -06:00
Patrick Walton
8c7f5b96ae
servo: Merge #7043 - script: Make the legacy presentational attributes on <td> apply to <th> too (from pcwalton:th-width); r=Ms2ger
...
Makes the Google SERPs not so narrow.
r? @Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 17263a525b316d1d02b1cc3181ec9aef3b7001e6
2015-08-07 00:40:54 -06:00
Manish Goregaokar
c75548bdb3
servo: Merge #7054 - Rollup of 3 pull requests (from Manishearth:rollup); r=Manishearth
...
- Successful merges: #7028 , #7034 , #7039
- Failed merges:
Source-Repo: https://github.com/servo/servo
Source-Revision: 76b4bae6ee45317f2ca0aefbc48b89169d2450c8
2015-08-06 17:43:09 -06:00
Ms2ger
825e60e57a
servo: Merge #7027 - Lock stderr while printing the alert() message (from Ms2ger:lock-stderr); r=jdm
...
2a7f262b7df8761261a0fa618394f4e991733a5e was unsufficient for the case where
the interleaved output was actually on stderr rather than stdout, such as
output from the error macro.
Source-Repo: https://github.com/servo/servo
Source-Revision: 522ebe7a3bd55d4572b670fa32ffc9979b3f7a74
2015-08-06 12:46:31 -06:00
Ms2ger
31b73c4643
servo: Merge #7002 - Remove the unused WorkerGlobalScope::eventtarget method (from Ms2ger:eventtarget); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 0a8ea98183ec813e490096b20e2c04db425d7b0b
2015-08-06 10:31:58 -06:00
James Graham
ab51ba9953
servo: Merge #6451 - Add onkey* global event handler attributes (from jgraham:onkey_attributes); r=Ms2ger
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 106361443d58f57ac140e4b4033b60e98fdaad2b
2015-08-06 07:44:51 -06:00
farodin91
f3b79f17e1
servo: Merge #7001 - Remove Unnecessary Code in FileReader #6753 (from farodin91:filereader); r=Ms2ger
...
@jdm r?
Source-Repo: https://github.com/servo/servo
Source-Revision: ddd2840eed6a9c119b188c7c3aa7258f25702697
2015-08-06 06:13:56 -06:00
David Zbarsky
71aaf5a0fc
servo: Merge #6970 - GetImageData should return un-premultiplied alpha values (from dzbarsky:getimagedata); r=Ms2ger
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 4726f58d15a6bfed9614b7ceaaab7765a5c01d03
2015-08-06 04:34:20 -06:00
David Zbarsky
128dbf87ae
servo: Merge #6985 - Refactor DrawImage implementations to avoid code duplication (from dzbarsky:drawimage_refactor); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 1b54e9c30c12b42d2a6eaf5b81b88a0f4e02ebb9
2015-08-06 00:24:02 -06:00
Ms2ger
44bb750aa1
servo: Merge #6990 - Update Animation Timing links and terminology to the HTML specification (from Ms2ger:update-animatiom-timimg); r=saneyuki
...
Source-Repo: https://github.com/servo/servo
Source-Revision: afe3d7e747ca75afd8b641e2e4ab99f280a32e26
2015-08-05 14:55:55 -06:00
David Zbarsky
2fa7668fde
servo: Merge #6974 - Fix createImageData with sizes < 1 pixel (from dzbarsky:tiny-create); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: debd7d87d61e6e6d772181a1076ee29519e479c7
2015-08-05 11:40:20 -06:00
David Zbarsky
cf83db09d2
servo: Merge #6971 - Make createRadialGradient throw for negative radii (from dzbarsky:negative-radius); r=Ms2ger
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 95269bba39313e7a221947a6b20fecc92e87a201
2015-08-05 10:42:57 -06:00
Ms2ger
f3b1b29ec1
servo: Merge #6964 - Cleanup DedicatedWorkerGlobalScope::run_worker_scope (from Ms2ger:dwgs-eventloop); r=jdm
...
It was getting overcrowded.
Source-Repo: https://github.com/servo/servo
Source-Revision: b3d61878dc28418e5427e965f26a06766f47358c
2015-08-05 09:21:10 -06:00
James Graham
8a181b2713
servo: Merge #6416 - Use hosts-replaced URL only when loading resources (from jgraham:hosts_replaced); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 8602d01af2b2081ea1e9d600abdb1ea609a65038
2015-08-05 08:01:03 -06:00
Josh Matthews
eed904f282
servo: Merge #6959 - Fix warnings (from servo:warnings_); r=jdm
...
Adds on top of #6949 .
Source-Repo: https://github.com/servo/servo
Source-Revision: 0d8825c25c6eed4dc22b10e668b03fc79056702b
2015-08-05 03:44:22 -06:00
r0e
3dfad89883
servo: Merge #6944 - Fix for issue #6768 . Refactor ReadData and BlobBody (from r0e:testing); r=jdm
...
Fix for issue #6768 .
Merge common fields of ReadData and BlobBody to avoid passing redundant information to functions.
Source-Repo: https://github.com/servo/servo
Source-Revision: ac533b146660922d7d4e6f1836f189a63334df65
2015-08-04 20:21:35 -06:00
David Zbarsky
268435409a
servo: Merge #6943 - Clean up some methods in CanvasRendeingContext2D (from dzbarsky:context); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 447c991ebb8cca1601d7c5ecde5dffb14199ddca
2015-08-04 00:46:09 -06:00
Josh Matthews
f99a26cba8
servo: Merge #6874 - Start reporting memory usage for Window and all nodes in all DOM tree… (from jdm:domreporting); r=njn
...
…s for frame treese in script tasks.
This underreports by a significant amount, since only Document, Window and CharacterData (ie. text) nodes are fully represented. That being said, every HTML element in the tree is measured, but only counted as a Node. It's easy to improve this, it just requires adding the appropriate HeapSizeOf derives and increasing the granularity of `measure_memory_for_eventtarget`. google.com shows a dom-tree value of 0.24 MB for me at the moment.
r? @nnethercote
Source-Repo: https://github.com/servo/servo
Source-Revision: 84e25befdd97cf74fb00707dbe150d59d980e977
2015-08-03 21:24:41 -06:00
Glenn Watson
c51526ac99
servo: Merge #6784 - Implement offsetParent/Top/Left/Width/Height (from glennw:offset-ext); r=pcwalton
...
Source-Repo: https://github.com/servo/servo
Source-Revision: d66c59a15213dec17f38af0653e9e7e1bf579a95
2015-08-03 18:39:43 -06:00
Ms2ger
0d0e55fa6b
servo: Merge #6926 - Implement a WorkerGlobalScopeInit struct to pass arguments to WorkerGlobalScope::new_inherited more easily (from Ms2ger:dwgs-args); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 3c5d24dbf43e22176d382b6f8bd9a88805c1d8b2
2015-08-03 17:42:15 -06:00
Matt Brubeck
ddb5d97a58
servo: Merge #6721 - Implement the unicode-bidi CSS property (from mbrubeck:unicode-bidi); r=pcwalton
...
r? @pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 5922ac606c63b91fdbd8c84fd0abb35450bee547
2015-08-03 15:37:12 -06:00
Ms2ger
ed66d152e5
servo: Merge #6917 - Lock and flush stdout in Window#alert (from Ms2ger:lock-alert); r=metajack
...
We use alert() to communicate test results to wptrunner. Unfortunately,
sometimes the alert output is interleaved with other output on stdout,
causing wptrunner to classify the test result as a timeout. I hope this will
avoid that scenario.
Source-Repo: https://github.com/servo/servo
Source-Revision: 86476804cac668133b6964c8f551918163aa66d7
2015-08-03 13:17:47 -06:00
Glenn Watson
902d5e4513
servo: Merge #6903 - Fix percentage height calculation, absolute containing block height calculations (from glennw:fix-height-again); r=pcwalton
...
It's not possible to correctly determine during the css cascade whether the container height
is explicitly specified. Additionally, the spec https://drafts.csswg.org/css2/visudet.html#the-height-property says this should affect the *used* height, rather than the computed height.
This significantly improves the layout in #6643 .
Source-Repo: https://github.com/servo/servo
Source-Revision: 028707f5cd3263fd1476669207f67d5b9d5d4806
2015-08-03 10:38:21 -06:00
Harrison G
590b59d477
servo: Merge #6893 - Fixes Issue #6866 (from HarryLovesCode:master); r=jdm
...
Source-Repo: https://github.com/servo/servo
Source-Revision: 1809748dc12ec63e3179b66109c91983f744c235
2015-08-02 16:05:14 -06:00
Patrick Walton
09c20effcf
servo: Merge #6896 - script: Use Arc::make_unique instead of Arc::get_mut when updating inline styles (from pcwalton:fix-particles-crash); r=SimonSapin
...
Transitions make the reasoning in the comment in the relevant sections
not true.
r? @SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 0c6e271cd3d5e2a7f141cae811d92b8fd6370b18
2015-08-02 10:10:39 -06:00