Commit Graph

3333 Commits

Author SHA1 Message Date
Simon Sapin
1907f13c33 servo: Merge #4794 - Fix mod_path dependency in CEF and Gonk builds (from servo:fix-mod_path); r=jdm
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 6d06a0075777d70c5d5dd99105210a356fabd2fb
2015-01-31 15:27:50 -07:00
Manish Goregaokar
42e079751b servo: Merge #4792 - Fix code dependent on old impl check (from Manishearth:old_impl); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 83e196c4c6a761757d821abfd1ab539704d22454
2015-01-31 04:27:49 -07:00
Manish Goregaokar
62228ef5fe servo: Merge #4741 - Basic certificate verification (from Manishearth:cert-checking); r=jdm
For now, this can only be tested by replacing `resources/certs` with `resources/cert-google-only` (an Equifax certificate -- will work for Google but not Wikipedia or Stack Exchange)

I can replace the error page with something less frivolous, but since we already have the "I tried" star (and this stuff is the job of the chrome anyway), I thought this would be more fun to have.


This also contains a partial hyper upgrade.

Fixes #4119

Source-Repo: https://github.com/servo/servo
Source-Revision: 2010fbf0ddabdaf3bcb52c5f2075e7d994fc63ec
2015-01-31 03:42:48 -07:00
Tetsuharu OHZEKI
40df733341 servo: Merge #4791 - Add /.servo .gitignore to ignore the local compiler binary cache (from saneyuki:ignore); r=jdm
follow up #4755

Source-Repo: https://github.com/servo/servo
Source-Revision: 816a3c2d916625b1e4863da6c55167c83b58c2e1
2015-01-31 02:21:51 -07:00
Manish Goregaokar
ad0b2dbdec servo: Merge #4779 - Specific instances of activatable elements may not be activatable (fixes #4765) (from Manishearth:more-activation); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1d7b1e5c3199bc08e238641e20480752a06f19ea
2015-01-30 18:18:49 -07:00
Josh Matthews
114f6b6b27 servo: Merge #4788 - Lock crates.io dependencies to specific versions (from jdm:cargodeps); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 66384dfcfd4c38595985cd3fac12fa616a2ba94f
2015-01-30 17:36:50 -07:00
Diego Marcos
ebfd758aec servo: Merge #4777 - Adds borrow_for_script_deallocation and unsafe_mut_js_info method to avo (from dmarcos:issue4692); r=jdm
...id 'DOMRefCell already mutably borrowed' messages. This is just a temporary fix until the Rust standard library allows borrowing already-borrowed RefCell values during unwinding.

It also removes LiveDOMReferences destructor that it's a no-op but it contains an assert that was being violated causing an endless cycle of destructor calls ending up in a stack overflow.

Source-Repo: https://github.com/servo/servo
Source-Revision: a7e29939a1df679bd865573dc71f7ba65f0268c4
2015-01-30 16:06:52 -07:00
Simon Sapin
f19ec826ce servo: Merge #4757 - Bring CSS parse error reporting back (from servo:newnewnewcss); r=mbrubeck
(Still off by default. Enable with `RUST_LOG=style`.)

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 172aed535be3c34775824dac64ad2b91fc379ad5

--HG--
rename : servo/components/style/properties/mod.rs.mako => servo/components/style/properties.mako.rs
2015-01-30 15:27:53 -07:00
Ms2ger
e968970a56 servo: Merge #4787 - Use NonZero to reduce the size of DOM smart pointers (from Ms2ger:NonZero); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 49dc60cac1ef014621379bedf1fb41aeac34820e
2015-01-30 14:42:52 -07:00
Wojciech "Zarazek" Wiśniewski
40d532f852 servo: Merge #4776 - PNG library upgrade (from zarazek:master); r=glennw
Update to new version of PNG library. See earlier pull reqest for PNG lib: https://github.com/servo/rust-png/pull/57

Source-Repo: https://github.com/servo/servo
Source-Revision: 06cedc8317663a71c06f0a2a482f2b4c3759b6be
2015-01-30 14:00:54 -07:00
Patrick Walton
393e92ecb3 servo: Merge #4785 - layout: Fix warnings (from pcwalton:fix-warnings); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 6c2bbe442a13a8520e6175064c665f1ab9e3c2c6
2015-01-30 13:00:54 -07:00
Ms2ger
648a6278e6 servo: Merge #4781 - Use some more snake case in the DOM (from Ms2ger:snake-dom); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: be31f850839219ffc9653278a0d6f55d48e059d9
2015-01-30 11:45:52 -07:00
Ms2ger
4488e6c0b8 servo: Merge #4773 - Use snake case for the remaining bindings functions (from Ms2ger:snake-bindings); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 648b4991b967cfe297a333624fa05b4de2e56be3
2015-01-30 07:00:50 -07:00
Patrick Walton
5bca49e824 servo: Merge #4610 - layout: Implement text-align: justify and text-justify per (from pcwalton:text-align-justify); r=mbrubeck
CSS-TEXT-3 § 7.3.

`text-justify: distribute` is not supported.

The behavior of `text-justify: none` does not seem to match what Firefox
and Chrome do, but it seems to match the spec.

Closes #213.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 7359f99f201a359aaebf334a1787d1975c9fa7d4
2015-01-30 06:15:56 -07:00
Glenn Watson
6fd8223ef8 servo: Merge #4775 - Switch glutin to use servo fork, which contains a crash fix for XCloseDisplay in some X11 drivers (from glennw:fix-x11-crash); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: f58a129251068a6e63b40d0bc46805a60398433a
2015-01-29 15:54:50 -07:00
Ms2ger
03faddf314 servo: Merge #4772 - Use snake case for bindings utils functions (from Ms2ger:snake-utils); r=jdm
This is the Rust style, and there's no reason to deviate here.

Source-Repo: https://github.com/servo/servo
Source-Revision: d026457fdde615bd3185abeda0e844bd42a7805a
2015-01-29 11:45:56 -07:00
Ms2ger
23beb77c9c servo: Merge #4771 - Use snake case for proxyhandler functions (from Ms2ger:snake-proxy); r=jdm
This is the Rust style, and there's no reason to deviate here.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8f351cdc3209c0be2e02b9d08fef502eb7aa04ec
2015-01-29 09:39:50 -07:00
Glenn Watson
ef71a99664 servo: Merge #4764 - Add layout support and tests for inline iframes. Fixes #1697 (from glennw:inline-iframes); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 7f9256e87b44125779002719a734ca412444e40e
2015-01-29 08:24:48 -07:00
Ms2ger
3cee792603 servo: Merge #4766 - Import the util crate as util rather than servo_util (from Ms2ger:util); r=Manishearth
This used to conflict with the util crate from the standard library, which
has long since been removed.

The import in layout has not been changed because of a conflict with the
util mod there.

Source-Repo: https://github.com/servo/servo
Source-Revision: 27e0f16407629422b5e047e067d458142372c97e
2015-01-29 05:12:49 -07:00
Patrick Walton
d668ccc421 servo: Merge #4458 - layout: Implement floated list items (from pcwalton:floated-lists); r=mbrubeck
This patch also makes Servo not crash when
`generated_containing_block_rect()` is called on a list item (as, for
example, GitHub does), and for good measure I added the fix to other
flows as well.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 221a343883f510c7743908136438f5ed40bd17ed
2015-01-28 21:18:53 -07:00
Patrick Walton
06265455a5 servo: Merge #4592 - layout: Implement text-overflow: ellipsis per CSS-UI-3 § 6.2 (from pcwalton:text-overflow); r=mbrubeck
Only the one-value syntax is supported for now.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: c8e68fa45c43856f7ffbdde25b6e68571ad288bf
2015-01-28 17:24:50 -07:00
Matt Brubeck
3c531cbbed servo: Merge #4755 - Move snapshot dir inside the source dir by default (from mbrubeck:cache-dir); r=metajack
As discussed in a previous weekly meeting, this avoids changing any directories outside the repo, which is better for some automation scenarios.

The servobuild.example file has a "cache-dir" setting that restores the previous default location of `~/.servo`, which is useful for developers working with multiple clones on the same machine.

I'm not sure which setting we want to use for our buildbot hosts.

r? @metajack or @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 74e32d119c864f527510a3ca008f88c26818df0b
2015-01-28 16:06:52 -07:00
Martin Robinson
92a8d49784 servo: Merge #4759 - Update to the latest rust-layers (from mrobinson:layers); r=glennw
Fixes #4754.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9fac4837616fbfe375cea5d2c862b3de64d21302
2015-01-28 15:24:51 -07:00
Patrick Walton
c36f083a85 servo: Merge #4524 - gfx: Implement font-stretch per CSS3-FONTS § 3.3 in the Core Text font backend (from pcwalton:font-stretch); r=glennw
r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 3736396c63ad3f84349132ea9c0bb0f5fc045f01
2015-01-28 13:57:58 -07:00
Ms2ger
39a22519e3 servo: Merge #4756 - Fix various build warnings (from Ms2ger:warnings); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 88b781421aa78a2f466e6d170f89d13a870643cd
2015-01-28 13:15:53 -07:00
Deokjin Kim
966233740e servo: Merge #4660 - Support 'font-style: oblique' (from deokjinkim:font_style); r=jdm
'oblique' font-style is not supported now.
When I checked freetype.h, same macro is used for italic and oblique.

  /*    FT_STYLE_FLAG_ITALIC ::                                            */
  /*      Indicates that a given face style is italic or oblique.          */

So, when font style is 'oblique', enable flag for italic.
With tests/html/test_italic_bold.html, it works well.

Source-Repo: https://github.com/servo/servo
Source-Revision: c2076d707e85c0b197c6fde286b1799a80de4d80
2015-01-28 11:51:53 -07:00
Ms2ger
56af1c9da9 servo: Merge #4752 - Update xlib (from Ms2ger:update-xlib); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 95f71eea5c4d5c220abd3307b08f48bf86504eca
2015-01-28 11:03:53 -07:00
Peter Reid
1041d9a38e servo: Merge #4656 - Handle overlapping border-radius corners (from PeterReid:issue4125); r=mbrubeck
Fixes #4125

Conforming to section 5.5 (Rounded Corners/Overlapping Curves) of "CSS Background and Borders Module Level 3", border radii on elements whose border curves would have overlapped are uniformly scaled down to the point that they no longer do.

http://dev.w3.org/csswg/css-backgrounds/#corner-overlap

Source-Repo: https://github.com/servo/servo
Source-Revision: 6dc2b895b877b2455ac8cbc5239b9c2f314f4fda
2015-01-28 10:18:52 -07:00
Akos Kiss
5b165b4e65 servo: Merge #4740 - Update dependencies in lock files (from akosthekiss:pr-deps); r=metajack
* openssl
* glfw
* gleam
* skia
* mozjs

Source-Repo: https://github.com/servo/servo
Source-Revision: d59743216750a397f03da2e4c58d6ccee00856f1
2015-01-28 09:36:53 -07:00
Ms2ger
1274f3918a servo: Merge #4751 - Don't shadow lifetimes in layout (from Ms2ger:shadowing-layout); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 0f81e7088225d03b363e337a9d1da5ab36c44064
2015-01-28 06:51:53 -07:00
Ms2ger
d575345fb2 servo: Merge #4750 - Don't shadow lifetimes in script (from Ms2ger:shadowing); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4a3e4032fe9ce33d52f36d77fc388b38de214fdf
2015-01-28 06:09:51 -07:00
Ms2ger
aeb7e45aa9 servo: Merge #4743 - Update layers to master (from Ms2ger:update-layers); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: cc2523eed5bdddd054ce6918e7d2d1d7d22d9286
2015-01-28 04:54:51 -07:00
Manish Goregaokar
0baa68ddf8 servo: Merge #4739 - Fix some warnings (from Manishearth:warning-patrol); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: d373f8dc26239310dec8d2fd66ed72385548cf6f
2015-01-28 02:27:50 -07:00
Ms2ger
96aa650091 servo: Merge #4717 - Document proxyhandler.rs, and related changes (from Ms2ger:doc-proxy); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 1a2a08aa501dd0da8bcdf362b55acb31093f5c9c
2015-01-28 01:48:52 -07:00
Glenn Watson
ecde6d577d servo: Merge #4737 - Temporary workaround for change in wait_events behaviour in glutin (from glennw:poll-events); r=kmcallister
Source-Repo: https://github.com/servo/servo
Source-Revision: e122d76fa914375e13e7f3983bfe9d0f660b4d04
2015-01-27 22:51:55 -07:00
Josh Matthews
78741af324 servo: Merge #4719 - Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev (from servo:rustup_20150109); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 3f9012864a2cd927cf17a8e11dfa6922add1b7df
2015-01-27 18:15:50 -07:00
Ms2ger
9b3f8fdb5e servo: Merge #4713 - Return *const T from JS::unsafe_get() (fixes #4712) (from Ms2ger:unsafe_get-const); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: ff8cbff81016c157373c1675f3eee69dd70ae544
2015-01-24 08:48:48 -07:00
Ms2ger
d01d9349ee servo: Merge #4711 - Don't call transmute_copy in JS::unsafe_get (from Ms2ger:transmute); r=jdm
It hasn't had borrow flags for quite a while.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4c9d7ce5d071efe1ffac9f2fbb2b08bca2ca7158
2015-01-24 08:03:47 -07:00
Josh Matthews
28dff52c4a servo: Merge #4710 - Make UntrustedNodeAddress a newtype (from servo:untrusted); r=Manishearth
This will allow us to make it Send after the Rust upgrade.

Source-Repo: https://github.com/servo/servo
Source-Revision: d9c2bfae8764d9f7813a6b6e9267102625e3d7b8
2015-01-24 04:57:48 -07:00
Glenn Watson
2d715b49a9 servo: Merge #4707 - Change glutin headless mode to be a build config, as it breaks some Linux distros linking to both (from glennw:split-headless); r=larsbergstrom
The majority of this change is simply re-arranging the code in the glutin port so that the windowed/headless code is configured at build time rather than runtime. There shouldn't be any functional difference as a result of this change.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1b496d80dec4f202e0f318ee60ac156ad74256ff
2015-01-22 14:48:48 -07:00
Ms2ger
7363fc6372 servo: Merge #4708 - Prepare for the rust upgrade (from Ms2ger:rustup-prepare); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 55fbf1f2b6924c50cff6e4ddf359289654f4858a
2015-01-22 08:06:50 -07:00
Simon Sapin
269dcf54f6 servo: Merge #4689 - Port to the new cssparser (from servo:newnewnewcss); r=larsbergstrom
https://github.com/servo/rust-cssparser/pull/68

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 59bca2962c19f653eec835fc54caf1a3eadcb906
2015-01-21 14:27:48 -07:00
Ms2ger
b706a00a11 servo: Merge #4705 - Encapsulate to-be-cleaned-up refcounted pointers (from Ms2ger:refcounted); r=larsbergstrom
This will allow us to make them Send in the future.

Source-Repo: https://github.com/servo/servo
Source-Revision: ad328fda65e6b7180de8b47f0964fe2f94c505a9
2015-01-21 12:09:56 -07:00
Ms2ger
0efd1154a6 servo: Merge #4703 - Pass a String to spawn_named (from servo:task); r=saneyuki
IntoString has been removed from Rust, and named() will take a String, so
there is no good reason to do otherwise here.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8df0ee2bb5d40e4b22db1666982e2e5ea36513f6
2015-01-21 03:48:49 -07:00
Ms2ger
190438fa42 servo: Merge #4682 - Move to to_owned rather than into_string (from servo:to_owned); r=jdm
into_string has been removed from Rust.

Source-Repo: https://github.com/servo/servo
Source-Revision: 94ebc7c32d5ce58ada3f9d8ffdb60cc025eb5997
2015-01-20 07:54:46 -07:00
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
Martin Robinson
6f1b6aec0b servo: Merge #4553 - Make initialize_layers a PaintTask method (from mrobinson:paint-task-cleanup); r=larsbergstrom
This simplifies calling it substantially. Also avoid unnecessarily
changing the PaintTask epoch when we don't have paint permission.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0b06aeebe3e39374bcd9e31b4f948461c0ed1d0e
2015-01-09 08:24:48 -07:00
Ms2ger
1f39edd3cb servo: Merge #4585 - Remove the NavigatorInfo struct (from Ms2ger:NavigatorInfo); r=jdm
It serves no purpose.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6b3c05cdd229dd50161ab3cf957f6fc7a8dcb97e
2015-01-09 07:48:49 -07:00
Ms2ger
7eb4d4db43 servo: Merge #4584 - Deny unsafe blocks in script (from Ms2ger:unsafe); r=jdm
As a first start, this allows them indiscriminately where used.

Source-Repo: https://github.com/servo/servo
Source-Revision: f74d5360ba30ec7aaa12f675eb267fd11053d8a8
2015-01-09 07:15:52 -07:00
Arpad Borsos
7b755311f1 servo: Merge #4586 - Fix assertion trying to remove a Node that has no parent (from Swatinem:noderemove); r=Ms2ger
fixes #4562

Source-Repo: https://github.com/servo/servo
Source-Revision: c338dbe947660c1647fa8c2eb4f2f57b0c4fadc3
2015-01-09 05:57:51 -07:00
Matt McCoy
f5bacd07b5 servo: Merge #4579 - Replaces the boolean argument of functions in TextInput with enum (from mattnenterprise:textinput-select-refactor); r=jdm
Fixes #4573 Replaces the boolean argument of TextInput::adjust[horizontal | vertical] with enum to self document the code

Source-Repo: https://github.com/servo/servo
Source-Revision: 3e8cab758e3154d0df91aa4c4e1f8a22093ddeb2
2015-01-09 05:24:50 -07:00
Manish Goregaokar
10ac47fbd8 servo: Merge #4570 - Fix Android warnings (from Manishearth:android-warn); r=jdm
My local android build is a bit wonky so I'm not sure if all warnings have been fixed, though. I'll try to poke around and fix it.

Source-Repo: https://github.com/servo/servo
Source-Revision: d9751c0fbb13d04b27c42a9ba5065b5af26f1286
2015-01-08 21:54:48 -07:00
Glenn Watson
d1caa006bf servo: Merge #4581 - Update android openssl version due to security advisory https://www.openssl.org/news/secadv_20150108.txt (from glennw:openssl-update); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 78798026ac245187f92d7d3f88f7fe012c63ff9d
2015-01-08 17:15:50 -07:00
Glenn Watson
5656809101 servo: Merge #4580 - Update glutin for hidpi tests on mac (from glennw:glutin-hidpi); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 94a4a553324c35ce179f4065fac9ba511a6f4e6d
2015-01-08 16:39:51 -07:00
Matthew Rasmus
66118e1666 servo: Merge #4575 - Post-rustup warning fixes (from mttr:warnings); r=jdm
Notes:

* This adds `#![allow(missing_copy_implementations)]` to components/*/lib.rs. I'm not sure how to approach the missing Copy warnings (are there things for which Copy should NOT be implemented, and how can I tell?) so I stuck this in to make life easier when looking through the warnings. I can easily remove this if necessary.
* This leaves the following type of warnings, which I couldn't figure out how to approach (I'll investigate it later if no one else wants to).
```
css/matching.rs:72:23: 72:35 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:72         this_as_query.equiv(other)
                                         ^~~~~~~~~~~~
css/matching.rs:95:10: 95:49 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:95 impl<'a> Equiv<ApplicableDeclarationsCacheEntry> for ApplicableDeclarationsCacheQuery<'a> {
```

Source-Repo: https://github.com/servo/servo
Source-Revision: 0793137631cbe4ebbff8fb85639206ce8e41bbb7
2015-01-08 16:03:55 -07:00
Glenn Watson
fe52b6e9ec servo: Merge #4546 - Add ability to explicitly set static resources path, used by cef-linux (from glennw:cef-resources); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 1699864f5339aaf463df5e2cf1d80193c3675e58
2015-01-08 15:27:54 -07:00
Ms2ger
320a27a169 servo: Merge #4574 - Remove if_let feature gates (from Ms2ger:if_let); r=Manishearth
This feature is now supported unconditionally.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4cd9eb1253a764e8794f004a96112f4127687708
2015-01-08 14:42:53 -07:00
Patrick Walton
3618f28049 servo: Merge #4523 - layout: Implement text-rendering per SVG 1.1 § 11.7.4 (from pcwalton:text-rendering); r=mbrubeck
Like Gecko, we treat `geometricprecision` the same as
`optimizelegibility` for now.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 1a021f66354d9b6c14f76178d803185e50ad87d3
2015-01-08 13:48:53 -07:00
Matt McCoy
8fca9b5656 servo: Merge #4566 - Fixes #4164 Make Constructor and new functions take GlobalRef by value (from mattnenterprise:globalref-by-value); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 7800d98728bfa1375ad8b6a2dac7f2f35603b6d1
2015-01-08 13:12:55 -07:00
Martin Robinson
4a62b7b70b servo: Merge #4558 - Improve Compositor message names (from mrobinson:compositor-message-renames); r=zwarich
These names no longer reflect what the messages do, so rename them to
SetFrameTree, AssignPaintedBuffers, and CreateOrUpdateBaseLayer.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1458709247586fcb3c14cd9132b735ff3080bf07
2015-01-08 12:36:53 -07:00
Patrick Walton
45ee1c1641 servo: Merge #4525 - layout: Implement outline-offset per CSS-UI-3 § 5.5 (from pcwalton:outline-offset); r=mbrubeck
r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 112ab49706a525ab0b93ca37bd41e9d929218736
2015-01-08 12:03:53 -07:00
Patrick Walton
349c217b6b servo: Merge #4530 - layout: Implement pointer-events: none per SVG 1.1 § 16.6 (from pcwalton:pointer-events); r=mbrubeck
SVG-only values are not yet supported.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: a88e668091842dc77169b235a03b5264e65ebdc6
2015-01-08 10:48:55 -07:00
Patrick Walton
ff1c5b6981 servo: Merge #4529 - layout: Implement word-break: break-all per CSS3-TEXT § 5.2 (from pcwalton:word-break); r=mbrubeck
r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 3d9200e4066c8147d82de38c071bc945c233c049
2015-01-08 10:09:55 -07:00
Manish Goregaokar
c16b656fa6 servo: Merge #4541 - Ban Cell<JS<T>> and Cell<JSVal<T>> (partial #4336) (from Manishearth:ban-stuff); r=jdm
Didn't do the `Vec<Temporary<T>>` banning since we might want to whitelist something there. I'll work on that next.

Source-Repo: https://github.com/servo/servo
Source-Revision: ec474ae835586c14ec4e1fb72196f2bc211f865f
2015-01-08 09:30:54 -07:00
Guillaume Bort
2fc1f6a506 servo: Merge #4069 - Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString) (from guillaumebort:fix/3936); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: df6a7959df69bf98b397f088fc3cf1fad2cc0aaf
2015-01-08 08:48:54 -07:00
Ms2ger
e5578c14fd servo: Merge #4554 - Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19 (from servo:rustup_20141221); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1d7148c79f9124779a910fd5291c5fa0543b2dae
2015-01-08 08:00:57 -07:00
Michael Wu
1ee6ae7c6f servo: Merge #4565 - Fix gonk port bustage due to constellation_msg renaming (from michaelwu:fix-gonk-20150107); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 19cb0fa9e457c18b36944c2691c7491ee6eb9cd2
2015-01-07 16:21:52 -07:00
Matt Brubeck
257e1b9aac servo: Merge #4428 - Code cleanup in glfw_app::Window::scroll_window (from mbrubeck:scroll-cleanup); r=glennw
More code re-use, fewer unchecked units. r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: cf616b90a236f88058dbad74b568b4d4379d2829
2015-01-05 17:21:54 -07:00
Glenn Watson
2cfb62fafe servo: Merge #4552 - Update cocoa/glutin for mac mouse events fix (from glennw:update-glutin-cocoa); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 3c45973238eab6f85fcc5184e3edf7ad010428f8
2015-01-05 14:36:57 -07:00
Thomas Jespersen
c9cca39080 servo: Merge #4549 - Check for no parameters when invoking cargo (from laumann:master); r=jdm
When invoking `./mach cargo` the following error appeared
```
Error running mach:

    ['cargo']

The error occurred in the implementation of the invoked mach command.

This should never occur and is likely a bug in the implementation of that
command. Consider filing a bug for this issue.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

TypeError: can only concatenate list (not "NoneType") to list

  File "/home/tj/servo/python/servo/devenv_commands.py", line 24, in cargo
    return subprocess.call(["cargo"] + params,
```
it seems to be that all that's missing is checking whether params is None or not.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3639c4e9818c5421659827b1da1844a9bbb792be
2015-01-05 08:36:53 -07:00
Ms2ger
833bb336a1 servo: Merge #4550 - Rename MouseWindowEvent variants (from Ms2ger:MouseWindowEvent); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: ca876edc051c9b105747252155d0f11c31189646
2015-01-05 08:09:53 -07:00
Ms2ger
cb9f21fded servo: Merge #4548 - Various cleanup (from Ms2ger:cleanup); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 65ee8166bd64e911502e29a050258b70d9f263aa
2015-01-05 01:27:48 -07:00
Patrick Walton
707d7cd93e servo: Merge #4460 - layout: Paint stacking contexts' overflow areas properly (from pcwalton:stacking-context-overflow); r=glennw
This was making `box-shadow` not show up in many cases, in particular,
but the effects were not limited to that.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 499d17f564d699e5e290e8a3859f64e7536827a7
2015-01-04 18:51:48 -07:00
Ms2ger
11a0efe9f4 servo: Merge #4542 - Prepare for the rust upgrade (from servo:pre-rustup_20141221); r=saneyuki
In particular, this contains changes to qualify enums where rust will require it, and to stop using some features that will be removed.

Source-Repo: https://github.com/servo/servo
Source-Revision: ba8cf6b0e6145265f9472d4855f078d8b5943fe7
2015-01-04 12:39:47 -07:00
Megha Gupta
aa260a7580 servo: Merge #4495 - Add HTMLElementTypeId enum (fixes #3625) (from MeghaGupta:typeid); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 2e17cae5d080db72d5f89733d19e0304857cfd34
2015-01-04 12:12:48 -07:00
Bharath M R
91757f2f01 servo: Merge #4533 - Issue 4497 Fix: Converts WorkerPostMessage into a Runnable (from catchmrbharath:4497); r=jdm
A lot of tests were failing when I ran `./mach test tests/wpt/web-platform-tests/workers --processes=4` and
`./mach test tests/wpt/web-platform-tests/XMLHttpRequest --processes=4` on master. So I could not completely test it. I verified that the tests that were failing were the same, before and after the change.

Is there any way to run it here?

Source-Repo: https://github.com/servo/servo
Source-Revision: 076e28795d90a9a8bb523774b993f841602ae9e6
2015-01-04 06:21:50 -07:00
Jim Hoskins
6d9c6fe290 servo: Merge #4539 - Implement Document.defaultView - fixes #4518 (from jimrhoskins:default-view); r=jdm
Fixes: https://github.com/servo/servo/issues/4518
Source-Repo: https://github.com/servo/servo
Source-Revision: dd84ae6bfb46872dfb0f0a8dca680452dadce3f0
2015-01-03 15:51:45 -07:00
Ms2ger
62056757ed servo: Merge #4535 - Stop using some obsolete features (from servo:pre-rustup_20141221); r=jdm
This prepares for the rust upgrade currently being conducted.

Source-Repo: https://github.com/servo/servo
Source-Revision: e8fac3681b690adb0796b2a807ac95bd9c13597a
2015-01-03 14:39:46 -07:00
Ms2ger
19cd65303c servo: Merge #4538 - Remove obsolete attributes (from Ms2ger:attributes); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: d8b6cec722e67f1fd39f154f4f0a298f2227501f
2015-01-03 10:39:48 -07:00
Martin Robinson
8e14dc298f servo: Merge #4536 - Stall PaintTask exit until it can release all buffers (from mrobinson:pixmap); r=pcwalton
It is possible for a PaintTask to start exiting soon after sending new
buffers to the compositor. In that case, the compositor should return
the now unnecessary buffers to the PaintTask so that it can properly
free them.

To accomplish this, the compositor now keeps a hash map of paint task
channels per pipeline id. When a PaintTask exists, the constellation
informs the compositor that it can forget about it. Additionally, the
PaintTask should not wait for any buffers when the engine is doing a
complete shutdown. In that case, the compositor is already halted and
has simply let all buffers leak. We pipe through the shutdown type when
destroying the pipeline to make this decision.

Fixes #2641.

Source-Repo: https://github.com/servo/servo
Source-Revision: a31acffb0405b2c38b39c39c6d552f2ba79b6326
2015-01-02 20:21:47 -07:00
Ms2ger
3d0a04c20a servo: Merge #4526 - Move away from Root::deref (from servo:deref-1); r=Manishearth
This is a start towards fixing #3868. Not all callers have been fixed yet, so the `Deref` implementation remains for now.

Source-Repo: https://github.com/servo/servo
Source-Revision: 141b5d038fad3c0c44a6f1b309b8ca9edea54580
2015-01-02 09:22:51 -07:00
Ms2ger
3f568d3a37 servo: Merge #4528 - Stop using ptr.is_not_null() in script (from Ms2ger:is_not_null); r=larsbergstrom
This method is deprecated in rust master; removing its users in advance will
make a future rust upgrade smoother.

Source-Repo: https://github.com/servo/servo
Source-Revision: a61417e2a87004e30e2a02f2e6ae58629062e3d5
2015-01-01 14:42:44 -07:00
Ms2ger
d2998d7483 servo: Merge #4527 - Remove spurious spaces from lints/mod.rs (from Ms2ger:indentation-plugins); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: f41324c2a1e7625075389fabb4cfd636c5617cb1
2015-01-01 13:27:43 -07:00
Shing Lyu
7ddf0392f6 servo: Merge #4470 - Add "type" to Blob (from shinglyu:contentType); r=jdm
A follow-up for issue #1820, adds the optional "type" support.

Source-Repo: https://github.com/servo/servo
Source-Revision: 111a196e9d300164391d12ab292c1d4c0ef2b44a
2015-01-01 08:33:40 -07:00
yodalee
3e4698f22e servo: Merge #4496 - Issue4484 to js val convertible for str (from yodalee:issue4484-ToJSValConvertible-for-str); r=jdm
#4484
Add ToJSValConvertible trait to str type.

Source-Repo: https://github.com/servo/servo
Source-Revision: fda38cf673ed1fb0818e4e33c3e7b7bef1eff02a
2015-01-01 03:00:44 -07:00
Rohan Prinja
68992e04cf servo: Merge #4521 - break up lints.rs into separate files (from ajnirp:separate-lints); r=Manishearth
for #4509

Source-Repo: https://github.com/servo/servo
Source-Revision: 685dec1abc61402ab22db93f4a362a58f8377d68
2015-01-01 01:33:41 -07:00
Ms2ger
55aff8daf0 servo: Merge #4520 - Use or_init for HTMLCanvasElement::GetContext (from Ms2ger:or_init); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 841f1b6f2559e7a33a1517fba53c12bbd67ed44f
2014-12-31 07:33:46 -07:00
Manish Goregaokar
3615fd0c7e servo: Merge #4488 - Add a lint for usages of to_string() (from servo:into_string-lint); r=jdm
This is a rebase of #4366.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0da57abec6014f8a6edde9781598053deab996c7
2014-12-31 05:00:52 -07:00
Bruno de Oliveira Abinader
1ea2e35f84 servo: Merge #4515 - Codegen cleanup (from brunoabinader:codegen-cleanup); r=Ms2ger
Main changes:
- Whitespace (indent) fixes;
- CGIndent-related fixes;
- Removed consecutive empty lines;
- Removed empty lines before closing brackets;
- Codegen style fixes;

Tests:

We don't have a static code style analyzer yet, so I've checked using the following (together with manual lookup at some selected generated bindings):

1. Check for lines with wrong indentation (1 to 3 whitespaces at the beginning)
Command: ```$ pcregrep -r "^[ ]{1,3}[^ ]" components/script/dom/bindings/codegen/Bindings```
Expected: None
Actual: None

2. Check for lines with wrong indentation (5 to 7 whitespaces at the beginning)
Command: ```$ pcregrep -r "^[ ]{5,7}[^ ]" components/script/dom/bindings/codegen/Bindings```
Expected: None
Actual: None

3. Check for lonely semicolons
Command: ```$ pcregrep -r " \{0,\};" components/script/dom/bindings/codegen/Bindings```
Expected: None
Actual: None

4. Check for empty lines before closing brackets
Command: ```$ pcregrep -r -M "^$\n {0,}\}" components/script/dom/bindings/codegen/Bindings```
Expected: None
Actual: None

5. Check for consecutive empty lines
Command: ```$ pcregrep -r -M "^$\n^$\n" components/script/dom/bindings/codegen/Bindings```
Expected: None
Actual:
```components/script/dom/bindings/codegen/Bindings/ChildNodeBinding.rs
components/script/dom/bindings/codegen/Bindings/ElementCSSInlineStyleBinding.rs
components/script/dom/bindings/codegen/Bindings/ParentNodeBinding.rs
components/script/dom/bindings/codegen/Bindings/URLUtilsBinding.rs
components/script/dom/bindings/codegen/Bindings/URLUtilsReadOnlyBinding.rs
```
All of the above are ```[NoInterfaceObject]```, thus providing only imports. We shouldn’t, however, generate empty lines (investigate this later on).

Source-Repo: https://github.com/servo/servo
Source-Revision: 37a97f3273c442fa59a3f65e8300a2527b004036
2014-12-30 09:51:45 -07:00
Ms2ger
cc9dec7df3 servo: Merge #4487 - Re-enable two transform_text unit tests (from Ms2ger:gfx-test); r=jdm
Note that I had to change some expectations to make them pass.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5d8ec549597de4af1008ee1395f89adbcf40fdb8
2014-12-30 09:03:45 -07:00
Benjamin Peterson
d2cdf5f14c servo: Merge #4512 - use geom::num::Zero rather than the deprecated num::Zero trait from std (from benjaminp:zero-warning); r=jdm
This fixes the following warning:
```
display_list/mod.rs:735:20: 735:30 warning: use of deprecated item: Use `Int::zero()` or `Float::zero()`., #[warn(deprecated)] on by default
display_list/mod.rs:735         let zero = Zero::zero();
                                           ^~~~~~~~~~
```

Source-Repo: https://github.com/servo/servo
Source-Revision: de3cff0e08bb93bad0c317ba4fe130a8a89cdb55
2014-12-29 18:48:41 -07:00
yodalee
1d418955a7 servo: Merge #4491 - update description in ORGANIZATION.md (from yodalee:update-ORGANIZATION-description); r=jdm
This is a short update to ORGANIZATION.md. Since I just join this project, and cannot find the entry point described in this doc, so I search git log to figure out the description of each file and directory.
Any comment is welcome.

Source-Repo: https://github.com/servo/servo
Source-Revision: d98062e2d4bf87d1ac24ce28e638d132cada812d
2014-12-29 18:21:45 -07:00
Simon Sapin
be24ce4c79 servo: Merge #4455 - Start using the ToCss trait, to be used for CSS serialization (from servo:to_css); r=jdm
See https://github.com/servo/rust-cssparser/pull/67 and https://github.com/servo/servo/issues/4440.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: b3059ee85b71b067e4b9e337faef53ae4a96c66d
2014-12-29 16:33:41 -07:00
Josh Matthews
3df7a65e2a servo: Merge #4057 - Enable refcounting arbitrary DOM types (from jdm:refcountdom); r=Ms2ger
This replaces the specialized TrustedXHRAddress and TrustedWorkerAddress code that was used for the same purpose. A non-zero refcount pins the given DOM object's reflector and prevents it from being GCed even when there are no other outstanding references visible to SpiderMonkey. This will enable us to implement asynchronous operations that refer to particular DOM objects (such as "queue a task to fire a simple event named load at the iframe element" from the spec) safely and conveniently, and paves the way for things like asynchronous network responses.

Some concerns about the resulting size of XHR progress messages have been expressed, but I believe optimizations to reduce that can be implemented in subsequent PRs.

r? @Ms2ger - note in particular the changes to the worker lifetime code. I couldn't figure out how to achieve an identical lifetime to the previous addref/release pairing, and I also was having trouble figuring out why the existing setup was safe. The new implementation now holds the main script task Worker object alive via the TrustedWorkerAddress field in the dedicated worker global scope, which is a significant difference.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2c259f477c41331e66beab8bda865971982a1ff4
2014-12-29 11:57:45 -07:00
Bruno de Oliveira Abinader
4e7b11e9a7 servo: Merge #4483 - Add support for named deleter (from brunoabinader:named-deleter); r=Ms2ger
Closes #4469.

Source-Repo: https://github.com/servo/servo
Source-Revision: f76a460c53dfddef74262eceaf4b163b551adc08
2014-12-29 10:21:51 -07:00
Ms2ger
2bf5b63539 servo: Merge #4501 - Simplify some code in handle_click_event (from Ms2ger:script_task); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1539051896c5c4093e7a7bb5a52939b31bb0d7da
2014-12-29 09:54:45 -07:00
ProgramFOX
4f3ace1178 servo: Merge #4486 - Added readonly flag for CSSStyleDeclaration (from ProgramFOX:readonly-csssd); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 366ea4fe79cd838ae66acc74d9fdc7dcb36bddae
2014-12-28 10:27:44 -07:00
Manish Goregaokar
e0c8a4271d servo: Merge #4173 - plugins: Autogeneration of Reflectable; Inheritance lint (from Manishearth:a-more-dom-struct); r=kmcallister
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.

A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.

Source-Repo: https://github.com/servo/servo
Source-Revision: 56d1b16d1b3a18d5ffa1d9c32562d3b209851711
2014-12-27 22:12:45 -07:00
Ms2ger
00f3ed40f3 servo: Merge #4490 - Remove some transmute calls (from Ms2ger:transmutes); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: dbb10747828b08f5dc9bcaea251e1f2d16f554fd
2014-12-27 12:27:46 -07:00
Manish Goregaokar
5748bfcbf9 servo: Merge #4489 - plugins: Fix transmute lint message (from Manishearth:transmute-lint-fix); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: b139574cdc3ce622568253e0ff9d2e1750128b26
2014-12-27 09:10:02 -07:00
Manish Goregaokar
905ce805f5 servo: Merge #4485 - Replace most to_string calls by into_string calls (from servo:into_string); r=Ms2ger
`str::to_string()` goes through a `Formatter`, `str::into_string()` is a direct copy and is apparently 5× faster.

This is a rebase of the boring and bitrot-prone parts of #4366.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9857ea26cb9ee262654bee97322dbbf373486bff
2014-12-27 06:51:44 -07:00