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

3188 Коммитов

Автор SHA1 Сообщение Дата
Ms2ger 386fed34ff servo: Merge #4678 - Document structuredclone.rs (from Ms2ger:doc-clone); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 89645391bf42edd9977ed1b6f9b430ad786f209e
2015-01-20 07:21:48 -07:00
Ms2ger 16be5944e2 servo: Merge #4679 - Stop calling is_not_null (from Ms2ger:is_not_null); r=larsbergstrom
It has been removed from Rust.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2d5b0e085571594e7da2ee519605dd6fac2caa54
2015-01-20 06:00:47 -07:00
Ms2ger 003cea7472 servo: Merge #4674 - Document js.rs (from Ms2ger:doc-js); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 2629445748b047434db01bee15273576e229d802
2015-01-20 04:13:01 -07:00
Glenn Watson 745e24c940 servo: Merge #4676 - Fix change of src attributes on iframe (prevents SetLayerOrigin crash) (from glennw:iframe-src-fix); r=mrobinson
Source-Repo: https://github.com/servo/servo
Source-Revision: 0c87faae64ff450caa30b3d050a0e2f0498f0915
2015-01-20 00:09:45 -07:00
Martin Robinson ae41298481 servo: Merge #4668 - Fix set_ids naming in Constellation (from mrobinson:constellation-cleanup); r=glennw
The set_ids name is a holdover from a previous design and no longer
reflects what this method does. Instead move the content into
grant_paint_permission and rename it to
send_frame_tree_and_grant_paint_permission. Also move out the handling of
evicted iframes into its own method.

Source-Repo: https://github.com/servo/servo
Source-Revision: 49c949803a96d675ea5ba6ab0426e06ababf0356
2015-01-19 20:33:45 -07:00
Glenn Watson 229b2a2c16 servo: Merge #4672 - Switch the default windowing system to glutin. See below for details (from glennw:make-glutin-default); r=larsbergstrom
This change makes glutin the default windowing system on mac/linux.

If you run into any issues with the glutin system, you can temporarily
build the GLFW system with the following command:

cd components/servo
../../mach cargo build --no-default-features --features=glfw

Once any glutin related issues have been sorted out, the GLFW
port will be removed.

Source-Repo: https://github.com/servo/servo
Source-Revision: ccf5f96fa91540ca73cfb24dd130d5124975fc6e
2015-01-19 16:30:47 -07:00
Bruno de Oliveira Abinader e73ce43a7b servo: Merge #4667 - Share supported CSS properties between style and CSSStyleDeclaration (from brunoabinader:share-css-properties-style-script); r=SimonSapin
Avoids duplicated code when implementing the CSS properties accessors in
CSSStyleDeclaration WebIDL. Servo internal CSS properties are not
accessible.

CSS property "float" is unnacessible because we currently lack support
for BinaryName IDL annotation (#4435).

Fixes #4429, #4430.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1e85bb67b24483d08edfdc868454fd86dee3ece8
2015-01-19 14:54:46 -07:00
glennw 8dfaa37e6c servo: Merge #4669 - Add libosmesa6-dev to debian dependencies (from servo:glennw-patch-1); r=larsbergstrom
Needs to be updated for arch / fedora too, but I'm not sure what the relevant packages are.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0a787ddb671afda148734c6e499bce29fc33a743
2015-01-19 13:30:47 -07:00
Glenn Watson 3553e1d199 servo: Merge #4655 - Switch CEF build from glfw -> glutin. Add glutin key bindings (from glennw:cef-glutin); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: e4f0b816d50f751ee0ea4678d485e1627dcce0e5
2015-01-19 12:57:46 -07:00
Ms2ger ec6187c22f servo: Merge #4664 - Stop using Vec::from_elem (from Ms2ger:from_elem); r=larsbergstrom
It is obsolete on Rust master.

Source-Repo: https://github.com/servo/servo
Source-Revision: d747a33df9c167a3defbbdcfe356ee25eeb672ad
2015-01-19 09:12:46 -07:00
Ms2ger b3ff89bc52 servo: Merge #4662 - Disallow lines that span more than 160 columns (from Ms2ger:overlong); r=larsbergstrom
The Rust style guide suggests 100, but we have too many violations in the
tree already. This check can be tightened over time.

Source-Repo: https://github.com/servo/servo
Source-Revision: ee94b3e8bf659c847bda967700272f8f98fdb0cc
2015-01-19 08:33:48 -07:00
Glenn Watson 8c4b2aa734 servo: Merge #4657 - Add basic support for closing cef tabs. Prevents crashes, but leaks memory for now (from glennw:cef-close); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: f3dfe04fa45bd723fac40d1452550d55240f80f8
2015-01-19 07:57:47 -07:00
Ms2ger 7565f7c8e9 servo: Merge #4654 - Document some more bindings code (from Ms2ger:bindings-docs); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 58c1b121a73c80d6857bc5c6453ef95b6db7909f
2015-01-18 20:48:48 -07:00
Peter Reid 0c85b08173 servo: Merge #4648 - Fix TextInput's edit point after set_content: #4622 (from PeterReid:issue4662); r=jdm
Fixes #4622

Previously, when the edit point was being clamped leftward by a shortened
line, it would be placed one one character too far to the left instead of
at the very end.

The "if" removed here was introduced in f686943eb40aa25e0a06837eeae6a907d9617d2b to fix a crash, but the underlying reason for the crash was the incorrect "- 1", which has been there since the beginning ( 80764f65e3e4895d3a012d6bc1d3bb8183ae15da ).

Source-Repo: https://github.com/servo/servo
Source-Revision: 9844ec907e61793eee442d0f18c80c7c6e9534b2
2015-01-18 09:39:48 -07:00
Jim Hoskins fcb7bfd3cf servo: Merge #4621 - Implement Element#closest (from jimrhoskins:closest); r=jdm
fixes #4603

- Add definition to the Element.webidl and implementation to element.rs.
- Create inclusive_ancestors helper in NodeHelpers
- Update test expectations

Source-Repo: https://github.com/servo/servo
Source-Revision: ea83ffdb980d290a910e78b96c3f056280487ac7
2015-01-18 08:09:43 -07:00
Tetsuharu OHZEKI 8d58f63e8d servo: Merge #4540 - Make script load event asynchronous for internal scripts (from saneyuki:internal); r=jdm
Fix #4504

Source-Repo: https://github.com/servo/servo
Source-Revision: 2a9acdcb73685f2c5c14b51f33b741690b60cb23
2015-01-16 13:51:43 -07:00
Martin Robinson ff7e73d639 servo: Merge #4625 - Update to latest rust-azure and rust-layers (from mrobinson:surface-refactor); r=jdm
We no longer need to implement from_azure_surface in Servo, now that
rust-layers is handling more of the glue between rust-layers and Azure.

Source-Repo: https://github.com/servo/servo
Source-Revision: efae66bccb116ddf41857436718ef1556243a3f2
2015-01-16 12:57:44 -07:00
Evan Martin 98b3a28046 servo: Merge #4642 - Minor fix to Arch developer setup instructions (from martine:patch-1)
Source-Repo: https://github.com/servo/servo
Source-Revision: c70197b48d64a3228c6d0cffafa1671a843fcc9d
2015-01-16 18:47:42 +00:00
Martin Robinson b84f267138 servo: Merge #4643 - Disable util crate doctests (from mrobinson:disable-util-doctests); r=jdm
Because of bug in rustdoc, a new rust-layers dependency on rust-azure
will cause linking issues. See
https://github.com/rust-lang/rust/issues/21246 for details.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6d7c4aac9c81f909d47dce10fa898e2a420632b2
2015-01-16 11:09:46 -07:00
donaldpipowitch 5772e5d785 servo: Merge #4569 - added unit tests for TextInput - fixes #4352 (from donaldpipowitch:add-unit-tests-for-textinput); r=jdm
Please bear with me. This is the first Rust code I've ever written and the first systems programming language I've ever used.

I've added unit tests for all methods of TextInput ( - except `handle_keydown`). I probably didn't cover all cases - I don't know if this is a real requirement until we have some coverage tools which identify all missing cases easily.
If someone could show me how to create a `KeyboardEvent` easily I could add another test for `handle_keydown`.

Other questions:
1. Running `$ time ./mach test-unit -c script test_textinput` takes `3m29.536s` on my MacBook Pro (2012). Any hints on speeding this up?
2. Who is responsible for the feedback of the unit tests? It would be nice if the output could be colored (e.g. make `11 passed;` green, `0 failed;` red and so on.)

Source-Repo: https://github.com/servo/servo
Source-Revision: e7d79842a85dfa8eaee8c2f441977edbf061bbed
2015-01-16 08:18:46 -07:00
Gilles Leblanc 9b2229165f servo: Merge #4568 - Write a macro or syntax extension to generate OpenType tags (from gilles-leblanc:issue-4556); r=Manishearth
Fixes #4556

Source-Repo: https://github.com/servo/servo
Source-Revision: 9fd675c266a85317198e89f9eb0e917af5a405d0
2015-01-15 18:06:48 -07:00
Glenn Watson b4eb49dc3f servo: Merge #4641 - Update harfbuzz module (from glennw:update-hb); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 31627bdc9d698a31db1bcd47279d43de397298f1
2015-01-15 15:09:47 -07:00
Akos Kiss 6448be6dbd servo: Merge #4638 - Update to use latest mozjs-sys (from akosthekiss:pr-update-mozjs); r=jdm
As requested in https://github.com/servo/mozjs/pull/26

Source-Repo: https://github.com/servo/servo
Source-Revision: 772570d06b8a75f376cfb50b334de7dbaa5c0382
2015-01-15 09:48:48 -07:00
Edit Balint 8b5e371246 servo: Merge #4637 - Use DrawTarget::new instead of DrawTarget::new_with_data in CanvasPaintTask (from ebalint:canvas); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: d9d7fdf75989cad5b57e0e1522953a574b814de6
2015-01-15 08:39:45 -07:00
Josh Matthews 5546b54e9e servo: Merge #4635 - Use latest mozjs (from jdm:updatemozjs); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: ddf77a1cff3b55cf316fa08164e2bb262b618d02
2015-01-14 16:24:46 -07:00
Josh Matthews 44ecddf370 servo: Merge #4632 - Add handling for unreported exceptions when invoking callback objects (from jdm:reporterr); r=Ms2ger
Rebased version of #4399 that addresses points 2 & 5 from https://critic.hoppipolla.co.uk/showcomment?chain=9848 . Introduction of an AutoJSAPI equivalent and setting the error reporter to null will come later, as they are much larger changes and we're currently blocking any further updates to rust-mozjs that are unrelated to error reporting.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4bb5822f9189b7c04101ba2fdfc99535ecd4bc27
2015-01-14 12:30:49 -07:00
Glenn Watson d4f90dfe6b servo: Merge #4626 - Update glutin and add hidpi methods (from glennw:hidpi); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 221275267e61870ca2bac904149c0b14c63c3ebe
2015-01-13 17:48:46 -07:00
Glenn Watson fc10d3abee servo: Merge #4616 - Update png/harfbuzz, use prefixed symbol names (from glennw:update-png-hb); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 432b89f60f1dd7f9dc8d8a0621f4f6acec474a74
2015-01-13 14:06:48 -07:00
Matthew Rasmus 11c4e640b7 servo: Merge #4598 - table_wrapper.rs: Fix for percentage widths (from mttr:table_percentage); r=pcwalton
Fixes #4421

Source-Repo: https://github.com/servo/servo
Source-Revision: 62d1761d2a93368893d4c1cb242b511b3ceda48f
2015-01-13 13:24:48 -07:00
Glenn Watson 6db1005878 servo: Merge #4583 - Add support for multiple cef browsers (multiple tabs), in-process for now (from glennw:cef-tabs); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 9b6d979f19d9e6433cf7c1da0f52ffcc2dac02a6
2015-01-13 12:27:48 -07:00
Matt Brubeck 01b7fa9d44 servo: Merge #4619 - Remove unused Flow method (from mbrubeck:dead-top-margin); r=Ms2ger
Added in #1988 but never used. r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 8103bba19bca3b85f2d8afa435fbb650b15d704f
2015-01-12 16:12:46 -07:00
Bruno de Oliveira Abinader 2a59784be6 servo: Merge #4618 - Check quirks mode in {Document,Element}::getElementsByClassName (from brunoabinader:getElementsByClassName-quirksMode); r=Ms2ger
Fixes #4604.

Source-Repo: https://github.com/servo/servo
Source-Revision: 151343cf3f423e3e4ac6961a0009781caa962aa6
2015-01-12 14:42:47 -07:00
Tom Schuster 7f57a4451b servo: Merge #4594 - Implement most of the important WindowProxy traps (from evilpie:window-proxy); r=jdm
After this patch somebody just needs to implement the new IndexedGetter (and probably frames/length) on window to fix #4589.

Source-Repo: https://github.com/servo/servo
Source-Revision: a227faa41610cdc826da4ec8d25839c2ec3061db
2015-01-12 09:45:47 -07:00
Patrick Walton c06e7615be servo: Merge #4582 - layout: Implement `mix-blend-mode` per COMPOSITING § 3.4.1 (from pcwalton:blend-modes); r=glennw
`background-blend-mode` is not yet supported because we don't support
multiple backgrounds yet.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: e6fe9f14092251b0d1a8c97473dda9b5d73679cd
2015-01-12 09:03:48 -07:00
Ashish Sharma d371ffb2d5 servo: Merge #4615 - remove unused function with_layout_node #4572 (from kartaa:master); r=jdm
Update wrapper.rs for Issue #4572 in servo/servo.

Source-Repo: https://github.com/servo/servo
Source-Revision: b020a015d91a0e67f1a526927b91bb07da0f5140
2015-01-12 08:24:47 -07:00
Ms2ger a409730f09 servo: Merge #4612 - Fix the documentation comment for the devtools library (from Ms2ger:devtools-doc); r=saneyuki
Also removed a duplicated feature gate.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3897547bc2ef85b8c1797ae6c915121c36873cac
2015-01-11 09:15:45 -07:00
Ms2ger b654dc04c2 servo: Merge #4611 - Remove RethrowContentExceptions and related infrastructure (from Ms2ger:RethrowContentExceptions); r=jdm
We do not intend to implement the DOM in JS, so this code isn't necessary.

Source-Repo: https://github.com/servo/servo
Source-Revision: 665f0e9c77292a42aa5a939bd31886e3f371419e
2015-01-10 15:48:45 -07:00
Ms2ger 69f18f8d14 servo: Merge #4609 - Make Runnable::handler take self by value (from Ms2ger:runnable-self-by-value); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 879af966b3c18d9405b6f5837b39a28039db1eb3
2015-01-10 10:30:44 -07:00
Ms2ger fd679a8da6 servo: Merge #4608 - Rewrite ReverseChildrenIterator to return Temporary (from Ms2ger:ReverseChildrenIterator); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e17d390714c576f4a0667c2c431ab6da84c6eb4d
2015-01-10 09:51:44 -07:00
Ms2ger 8bac961b2d servo: Merge #4607 - Consolidate structured cloning code (from Ms2ger:clone); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a07c3eadb33eca1fbb2209d168c63c5ec3db23df
2015-01-10 09:18:45 -07:00
Ms2ger 1339da34fb servo: Merge #4606 - Move the documentation comment for the devtools_traits crate to have it picked up (from Ms2ger:devtools-comment); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 1834359f1661fe504e5b8ff3ee2bc0cb8d744d21
2015-01-10 07:39:44 -07:00
Michael Wu fcf0f879df servo: Merge #4599 - Make the gonk input code use standard file APIs (from michaelwu:use-file-apis-in-gonk); r=larsbergstrom
With the latest rustup, we can use std::io::File since as_raw_fd() is available.

Source-Repo: https://github.com/servo/servo
Source-Revision: d9a26ad595ee94361ce20064355fd77061eda625
2015-01-10 06:15:43 -07:00
Martin Robinson 4adf711525 servo: Merge #4314 - More work on iframes updated via script (from mrobinson:iframes-2); r=jdm
iframes added or loaded via script are not reflected visibly in the content of a page. The next step in making this happen is to have compositor layers accurately reflect newly recreated or loaded iframes. This change allows iframes to appear, but there are still some further changes necessary to make the output correct and reliable.

Source-Repo: https://github.com/servo/servo
Source-Revision: 16c2025a4e30121baebde348e3c3f0e6ed197667
2015-01-09 17:51:44 -07:00
Michael Wu 1a72b32a19 servo: Merge #4597 - Fix gonk build after the last rustup (from michaelwu:fix-gonk-20150109); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 5e758b680bac40de3350dda7678b02ce5ace7bda
2015-01-09 17:18:45 -07:00
Martin Robinson 5583f65c7b servo: Merge #4578 - Fix compositor timing issues (from mrobinson:fix-compositor-timing-issues); r=larsbergstrom
Clean up compositor data structures and fix timing issues that cause Compositor panics.

Source-Repo: https://github.com/servo/servo
Source-Revision: c1d218cf0260da4e0642e2ea5b73823de79aa2c7
2015-01-09 15:39:44 -07:00
Jim Hoskins af7c56a38c servo: Merge #4596 - Store HTMLIFrameElement sandbox attr as TokenList (from jimrhoskins:sandbox-tokenlist); r=jdm
Fixes #3758

Store the sandbox attribute of HTMLIFrameElement as a TokenList
internally. Use .tokens() to iterate over the tokens instead of
splitting on the string value.

The external interface for sandbox remains a DOMString, which will need
to be fixed when DOMSettableTokenList is implemented (#1717).

Source-Repo: https://github.com/servo/servo
Source-Revision: ebb702ab943a6baa971d316bf0e7a773d84b3710
2015-01-09 14:27:45 -07:00
Tetsuharu OHZEKI 4121c89acd servo: Merge #4532 - Make DOMContentLoaded and load asynchronous with using Runnable (from saneyuki:event); r=jdm
Fix #4505

Source-Repo: https://github.com/servo/servo
Source-Revision: 21fd1120c3c18a8ccc3d95f8d53b5f2875c77c97
2015-01-09 13:54:47 -07:00
Edit Balint 8eb66707e6 servo: Merge #4137 - CanvasRenderTask connected to Layout (from ebalint:canvas); r=jdm
Content of the canvas is drawn, tests/html/test_canvas.html now works.

Source-Repo: https://github.com/servo/servo
Source-Revision: da400a7a453eacf6f3089cc07e5dc61f385a0909
2015-01-09 12:06:47 -07:00
Ms2ger 5622739b90 servo: Merge #4588 - Some cleanup in layout (from Ms2ger:layout-cleanup); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 43e34d6d1050227eecc8fa293f9faec066f173a1
2015-01-09 09:42:48 -07:00
Patrick Walton 1d5c039eef servo: Merge #4557 - layout: Implement `filter` per CSS-FILTERS § 5 (from pcwalton:filter); r=mbrubeck
`blur` and `drop-shadow` are not yet supported, because the
`text-shadow` PR makes some fundamental changes to blur rendering that
are needed first.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: ffdbf29db28ba334e8baf8d35141b5e8ad289459
2015-01-09 09:03:48 -07:00