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

2057 Коммитов

Автор SHA1 Сообщение Дата
Bryan Bell 563842a0c3 servo: Merge #2426 - Add message to fonts.len() == 0 assert (from bjwbell:add-message-to-assert); r=pcwalton
If msttcorefonts isn't installed, output a more informative error message.

./servo ../src/test/html/about-mozilla.html prints
           "task 'LayoutWorker' failed at 'No matching font(s), are the appropriate fonts installed?',
            ../servo/src/components/gfx/font_context.rs:195"
vs.
            "task 'LayoutWorker' failed at 'assertion failed: fonts.len() > 0',
            ../servo/src/components/gfx/font_context.rs:195"

Source-Repo: https://github.com/servo/servo
Source-Revision: 3ccc81b9dc65afe61dc16486e7f7f0b6794c5093
2014-05-15 12:19:17 -04:00
Cameron Zwarich 041b2df748 servo: Merge #2435 - Switch to using ContravariantLifetime in JSRef<'a, T> (from zwarich:contravariant-lifetime); r=jdm
Since ContravariantLifetime doesn't take up any storage space, this
means that JSRef will be a single word. This fixes #2333.

Source-Repo: https://github.com/servo/servo
Source-Revision: 51d1284c607c00c9363aa0b9d99e185bc8a3963e
2014-05-15 10:40:21 -04:00
Bryan Bell 8dbfb9f670 servo: Merge #2438 - Add dotted border support (from bjwbell:dotted-border); r=pcwalton
Basic support for dotted borders.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9865fddbb60074bfdc26ee752546890576a76e29
2014-05-15 00:40:25 -04:00
Cameron Zwarich 76433bd606 servo: Merge #2436 - Use ContravariantLifetime in LayoutNode (from zwarich:contravariant-lifetime-layout); r=pcwalton
Since ContravariantLifetime uses no storage, this will reduce the size of a LayoutNode from 3 words to 2.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2785fcbce06a33f5988049e345876f17d3b3af67
2014-05-14 18:07:25 -04:00
Simon Sapin 37ce7ff4c6 servo: Merge #2432 - Remove OptNewVector and use Vec instead (from SimonSapin:remove-optnewvector); r=larsbergstrom
Before we had Vec<T>, Option<~[T]> was used as an optimization of ~[T] to avoid allocating for empty vectors when that was the common case. Vec<T> itself does this optimization, so there is no need for this anymore.

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 309c9db2ac313cb78760615e893b2723a380eace
2014-05-14 13:43:15 -04:00
Ms2ger 96c47a6ba2 servo: Merge #2429 - Avoid unnecessary Rc clone in Window::new (from Ms2ger:page-clone); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b4bbf546f452e5c4d2489dc9a752708675695e72
2014-05-14 10:37:42 -04:00
Manish Goregaokar 24aed61616 servo: Merge #2430 - Add a link to easy bugs (from Manishearth:patch-2); r=SimonSapin
I noticed that our CONTRIBUTING file doesn't link to the easy bugs, maybe it should?

Source-Repo: https://github.com/servo/servo
Source-Revision: 2168956a59bda81b8c6f904719a06afa74067576
2014-05-14 08:22:17 -04:00
Cameron Zwarich ebd870cb5b servo: Merge #2428 - Remove addHTMLElement from Bindings.conf (from zwarich:remove-add-html-element); r=jdm
We can just use the defaults for all of the HTML elements for now and
deal with the nonstandard behavior later. This fixes #2207.

Source-Repo: https://github.com/servo/servo
Source-Revision: 288550a2bf034e76a8c1fb46eced6439d38669d3
2014-05-14 01:25:13 -04:00
Tetsuharu OHZEKI c04abf198b servo: Merge #2425 - Move Window helper methods to a WindowHelpers trait (from saneyuki:window_helper); r=jdm
Fix #2418

Source-Repo: https://github.com/servo/servo
Source-Revision: 049fa56fff3493ccba4e4fe6dab49c141b35d766
2014-05-14 00:55:17 -04:00
Ms2ger d31eddaedb servo: Merge #2394 - Cleanup instantiateJSToNativeConversionTemplate (from Ms2ger:instantiateJSToNativeConversionTemplate); r=jdm
This moves all the handling of optional arguments into `CGArgumentConverter`, and leaves `instantiateJSToNativeConversionTemplate` to only deal with the declaration of stack variables.

Source-Repo: https://github.com/servo/servo
Source-Revision: 48b1938ca3770f52187176e320cfdd148045a142
2014-05-14 00:25:17 -04:00
Ms2ger 1f70f5aa30 servo: Merge #2420 - Merge Page and PageTree (from Ms2ger:merge-Page-PageTree); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 6871e4ccb653c3b5a351e4d64ebf09de9af2acc0
2014-05-13 23:52:21 -04:00
Ms2ger 349e98a113 servo: Merge #2417 - Use a match rather than a for loop for last_loaded_url in ScriptTask::lo (from Ms2ger:scripttask-load-option-iter); r=pcwalton
...ad.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6640f2edd88622ceb392272716ed9db2133cabb6
2014-05-13 17:43:47 -04:00
Brendan Zabarauskas 9d0710537b servo: Merge #2389 - Add wrapper types for glyph, character, and box indices (from brendanzab:indices); r=pcwalton
r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 9fe115192a38648360440a2fbbebeb0b834aedb9
2014-05-13 16:43:27 -04:00
Ms2ger a3fda464cc servo: Merge #2415 - Reuse Constellation::find_all in Constellation::handle_load_iframe_url_m (from Ms2ger:find-all); r=jdm
...sg.

Source-Repo: https://github.com/servo/servo
Source-Revision: 736098eeac49910e652a11670352e240b4c97f74
2014-05-13 13:49:31 -04:00
Ms2ger 57e18c60b5 servo: Merge #2414 - Handle all attributes coming from the HTML parser (fixes #1976) (from Ms2ger:parser-attribute); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: a9f08fd7c4702e96fb993b8c28492ffb7037296d
2014-05-13 06:55:19 -04:00
Cameron Zwarich 70c4b31d6c servo: Merge #2388 - Move the computed style to a new SharedLayoutData struct (from zwarich:cssom); r=jdm
Implementing the CSSOM requires giving the script task access to the
computed style for a node. Moving it into a new SharedLayoutData struct
member of LayoutDataRef seems to be the best way to achieve this.

This is the first step towards #1721.

Source-Repo: https://github.com/servo/servo
Source-Revision: fbcfe78bf675ffb1fdbe549da3b96a0d1a5f0be8
2014-05-12 16:46:10 -04:00
Ms2ger c35e104008 servo: Merge #2410 - Make Pipeline::url a plain Url (from Ms2ger:Pipeline-url); r=pcwalton
It is never mutated, and never None.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8d7883ff1c5f197640ddbe7e3fc5cb2e2216b8f2
2014-05-12 16:13:18 -04:00
Ms2ger e839758a57 servo: Merge #2403 - Move the loading of documents in iframes into HTMLIFrameElement (from Ms2ger:iframe-loading); r=jdm
Right now, the load is kicked off inside the parser glue. This is unfortunate
for several reasons:

1) we'd like to replace the current parser (libhubbub) by our own parser,
   written in Rust, so code intertwined with the parser will have to be
   rewritten;
2) it is impossible to support dynamically (i.e. from script) created iframes
   in this way;
3) the code flow around loading subdocuments is complicated needlessly.

This commit adds the constellation channel (on which the message to actually
load the document is sent) as a field on the Page, to allow HTMLIFrameElement
to access it.

In rewriting the code, support for dynamically created iframes is added, and
a task failure is avoided when the value of the src attribute can not be
parsed.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1e361e8b6f04d7848d40fd19090511c0c3f16a97
2014-05-12 15:25:14 -04:00
Ms2ger 95c7e74c0a servo: Merge #2407 - Avoid unnecessary allocations in try_parse_url (from Ms2ger:try_parse_url-owned); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 3bb81310d4051c80cb9eec04a8382c95159de970
2014-05-12 14:55:22 -04:00
Ms2ger 65994af5bd servo: Merge #2406 - Stop using ~[u8] in http_loader::load (from Ms2ger:http_loader-load); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c6274f9793cf3bab74b58a697961680567dea97b
2014-05-12 14:22:55 -04:00
Ms2ger e089423f90 servo: Merge #2405 - Drop the pointless indirection in Window::active_timers (from Ms2ger:active_timers); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1657a142cc3020a27eb061cb8b5ae5550d7dd004
2014-05-12 13:52:43 -04:00
Ms2ger b531e62219 servo: Merge #2401 - Remove unused and misnamed url field on HTMLIFrameElement (from Ms2ger:iframe-url); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b036bee532fafe3733eb3cb2ccad98fa85c23a92
2014-05-12 09:37:09 -04:00
Ms2ger eed32bc919 servo: Merge #2393 - Remove ScriptTask::initialize_js_info (from Ms2ger:initialize_js_info); r=jdm
There is no particular leason to initilaize js_info lazily.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9a71af38b98560376d3db2c210f91c1cf0770acd
2014-05-10 12:25:09 -04:00
Tetsuharu OHZEKI f1429c0329 servo: Merge #2384 - Add UIEvent::new_uninitialized() and MouseEvent::new_uninitialized() (from saneyuki:2383); r=Ms2ger
Fix #2383

These changes introduce `FooEvent::new_uninitialized()` constructor. This constructor use to create `FooEvent` without calling `FooEvent::InitFooEvent`.

#2383 says integrating `FooEvent::new()` and `InitFooEvent`, but we need to preserve simple `FooEvent::new_uninitialized()` for `document.createEvent()`.

@jdm r?

Source-Repo: https://github.com/servo/servo
Source-Revision: 5334d8bb255c64f6d33250972a7ccf22de2afe34
2014-05-10 03:01:13 -04:00
Guro Bokum c8c8024c22 servo: Merge #2390 - Convert as many of Page's RefCell fields to Cell as possible (fixes #1990) (from Ms2ger:1990-Page-RefCell); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: d985b6d7c233ba55175f66545bb79efbca741676
2014-05-09 18:01:16 -04:00
Glenn Watson 31a06e7b2a servo: Merge #2387 - Remove unneeded code now that image libraries use Vec<T> (from glennw:image-fixups); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: eb67f69b2daff29ffc6b8e962114e47eaac0d270
2014-05-09 16:31:24 -04:00
Manish Goregaokar a5ae316ba0 servo: Merge #2357 - Basic synchronous GET with XHR (from Manishearth:xhr-syncget); r=ms2ger
This gets a basic synchronous GET request working. I've also tried to implement a portion of the procedures mentioned in the spec.


Blocks #2282

Source-Repo: https://github.com/servo/servo
Source-Revision: 14776522952df9990685e20151e74f4fed8742c9
2014-05-09 11:34:07 -04:00
Ms2ger 5e2e3c3c06 servo: Merge #2381 - Move debug functions to Window IDL (from Ms2ger:mozjs-spring-cleanup); r=jdm
This is a cleaner way to expose those functions, and makes it possible to
remove a significant amount code in rust-mozjs.

The assert() function is no longer exposed, as it was unused and not very
useful.

Source-Repo: https://github.com/servo/servo
Source-Revision: 78917f4e0f15c7e0dad3c9a1fc07c005bd090487
2014-05-09 10:28:10 -04:00
Simon Sapin e84fc9c04b servo: Merge #2345 - Parse and cascade declarations in reverse order (from SimonSapin:reverse-declarations); r=pcwalton
… and deal with properties whose initial value can be affected at computed-value time.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 9bca8a706e3187c6f7c154c59921f80c18249a52
2014-05-09 09:40:15 -04:00
Glenn Watson b1b534f0d1 servo: Merge #2378 - Change image library use of ~[T] -> Vec[T]. Update rust-stb and rust-png (from glennw:png-update); r=larsbergstrom
... submodule pointers.

Source-Repo: https://github.com/servo/servo
Source-Revision: 146eccdf80cbc37a30d2812bd848ff4e703a911b
2014-05-09 08:37:10 -04:00
aydin.kim 15348adae1 servo: Merge #2377 - Fix hidpi parameter of android (from aydinkim:hidpi); r=larsbergstrom
Fix for android rendering.
Need to consider about getting accurate size framebuffer & window parameter respectively from android stack and follow up the stuffs on another platform.

Source-Repo: https://github.com/servo/servo
Source-Revision: 052d3cb0835470da281669b8dce1c9c51e8e7b9e
2014-05-08 23:31:15 -04:00
aydin.kim 7e9d46c1fa servo: Merge #2376 - update android guide in README.md (from aydinkim:readme); r=larsbergstrom
Android build guide in README.md is out-dated.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4fb36cd0bea35e6bc8a6b5b9cc6648efd72f08ec
2014-05-08 22:55:10 -04:00
Martin Robinson df63571571 servo: Merge #2372 - Use == instead of match for tests against a single enum value (from mrobinson:issue-1596); r=metajack
The performance of using == should now equal that of match, so many
identity methods can be simplified to a single line.

Fixes #1596.

Source-Repo: https://github.com/servo/servo
Source-Revision: 78a768ae5c39e1a2f2a666fc574a0332bf1ca28e
2014-05-08 20:16:21 -04:00
Cameron Zwarich 046d1d6c73 servo: Merge #2375 - Rename an unused parameter to silence a warning (from zwarich:progressevent-rename); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: a28665d3fd63a854d1808b19ae8267dec0f64e6c
2014-05-08 19:40:16 -04:00
Cameron Zwarich 2117ef4b83 servo: Merge #2373 - Remove an unused field from CodegenRust.py (from zwarich:remove-default-visibility); r=Ms2ger
The defaultVisibility field was cloned from the C++ implementation,
where it tracks the difference between struct and class visibility.
Since no similar concept exists in Rust, it should be removed.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6d381959db18acc5c2f0c1891df8afe5df8372cb
2014-05-08 17:46:15 -04:00
Cameron Zwarich 8c3de38943 servo: Merge #2371 - Suppress dead code warnings for start when building servo.rs as a dylib (from zwarich:start-dead-code); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: f94ad73396b25bf4c3fbf5d7c46d084e1b767901
2014-05-08 15:01:30 -04:00
Glenn Watson ae3148f37a servo: Merge #2369 - Fix for parallel data race in layout code. Fixes #2308 (from glennw:issue-2308); r=metajack
There might be a "cleaner" rust way to separate the scope and invoke the drop() call?

Source-Repo: https://github.com/servo/servo
Source-Revision: bfffbe94eacb63fe7fe3fc2cfed433cb20cd4c41
2014-05-08 12:16:12 -04:00
Manish Goregaokar 0d95fe5493 servo: Merge #2361 - Add ProgressEvent interface (from Manishearth:progressevent); r=jdm
Adds the ProgressEvent webidl and implementation according to the XHR spec.

Blocks #2282

Source-Repo: https://github.com/servo/servo
Source-Revision: a0922f9d7274e0781f30cdacf978104c224010f7
2014-05-08 11:46:16 -04:00
Glenn Watson ee6e48cac5 servo: Merge #2355 - Allow resource load failures to send an error string which is reporting (from glennw:http-fail-errors); r=jdm
...during task failure.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0a647baacb6eeb6d96dd3e0e2c6eb1e2f2b7f2e5
2014-05-08 11:16:41 -04:00
Cameron Zwarich 2013ef04bd servo: Merge #2368 - Remove the name of an unused parameter that triggers a warning (from zwarich:net-unused-param); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 6cbcd98132389c7914c232ea8c25365a96df49d5
2014-05-08 00:46:22 -04:00
aydin.kim 44df3fb486 servo: Merge #2367 - fix android build (from aydinkim:PR); r=larsbergstrom
With Rust syntax changing..

Source-Repo: https://github.com/servo/servo
Source-Revision: d2d109578496a1d508062fc05381e3a17246036f
2014-05-07 22:07:17 -04:00
Gulshan Singh 88bdd19cd9 servo: Merge #2346 - Add Performance object to Window and implement Performance::Now() (from gsingh93:master); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 86a6de209ef6d5beeb19661bd48ff4f5c87e9b4a
2014-05-07 18:58:18 -04:00
Brendan Zabarauskas 711b04311c servo: Merge #2365 - Make range generic over signed integers (from brendanzab:generic-range); r=pcwalton
Signed integers allow for generic +ve/-ve offsets.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 8e0febb1091fa601f4caff9a2ce2f4e58944f6c3
2014-05-07 18:10:22 -04:00
Cameron Zwarich f4b880bbe7 servo: Merge #2364 - Open a background non-focus-stealing window for tests on OS X (from zwarich:issue-2363); r=larsbergstrom
Use false for the glfw::Visible window hint to open a background window
on OS X. This requires an upgrade to glfw 3.0.4 in order for this to
also not steal focus.

This requires adding a new parameter to WindowMethods<A>::new.

Fixes https://github.com/mozilla/servo/issues/2363. r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 2a7889c061852b7d63782176cb35bfbc55c98f3f
2014-05-07 17:34:33 -04:00
Ms2ger d2b40d13ed servo: Merge #2360 - Replace some ~[T] by Vec<T> (from Ms2ger:vec); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 15d3257a29125103e368787f7e9790ee4314b29f
2014-05-07 09:28:27 -04:00
Cameron Zwarich 12637a4487 servo: Merge #2358 - Make configure recognize the '-h' option in addition to '--help' (from zwarich:configure-dash-h); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 5300846f331d8706dfbdcf0a23a6b3e412df5ca3
2014-05-07 05:29:11 -04:00
Glenn Watson 4cc79f8a27 servo: Merge #2339 - Modify node traversal loop to avoid JS roots assertion. Fixes #2321 (from glennw:js-event-assert); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e9ac0d1e2cab62cbef2b23bd7ba93374b52f4c02
2014-05-07 03:04:21 -04:00
Glenn Watson 70403ec7f8 servo: Merge #2356 - Fix a few mutability warnings (from glennw:warnings); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c872764a7c6e9d8d08566ce0ac4c044c28f8dad8
2014-05-07 01:16:22 -04:00
Glenn Watson b85da72874 servo: Merge #2340 - Fix JS roots assertion when clicking on an element (from glennw:js-click-assert); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: dc49e7d1a021f0b1513492a9f01febae66796712
2014-05-07 00:46:21 -04:00
Brendan Zabarauskas a85a083b31 servo: Merge #2336 - Use fmt::Show for outputting debug information (from brendanzab:debug_str); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 38bf7fd0982a71151630753982af36badd9c7c24
2014-05-06 23:37:35 -04:00