Commit graph

5393 commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
8187916ee4 Implement TElement for JSRef<Element> 2014-06-05 16:54:26 -07:00
Matt Brubeck
a226086a32 Don't require root pipeline to match new pipeline
This reverts 2b0134be7b because it was
not correct for iframes.
2014-06-05 16:42:21 -07:00
bors-servo
3dedbd2719 auto merge of #2589 : bjz/servo/cleanups, r=pcwalton
@pcwalton r?

Might conflict with the rust upgrade - I can rebase later.
2014-06-05 19:37:36 -04:00
bors-servo
d293b46944 auto merge of #2592 : june0cho/servo/fix_vertical_align, r=SimonSapin
It fixes the wrong vertical alignment for img element. (related to #2422, #2554)
Worked with @ryanc
2014-06-05 18:58:30 -04:00
Brendan Zabarauskas
7212c3573e Use bitflags! for NodeFlags 2014-06-05 15:43:57 -07:00
Junyoung Cho
e96f02718a Fix the vertical alignment error for img tag. 2014-06-05 16:36:42 -06:00
Brendan Zabarauskas
7675b0ced0 Use bitflags! for RestyleDamage 2014-06-05 15:33:46 -07:00
Brendan Zabarauskas
e0fe3e1ac0 Use GlyphStore::char_len rather than constantly re-casting GlyphStore::entry_buffer.len() 2014-06-05 15:28:23 -07:00
bors-servo
10b1e655b0 auto merge of #2588 : pcwalton/servo/display-list-optimization, r=glennw
submitting them to Skia.

40x improvement in painting time on Wikipedia.

r? @glennw
2014-06-05 16:46:28 -04:00
Patrick Walton
081e054b4a gfx: Add display list optimization to eliminate clipped items before
submitting them to Skia.

40x improvement in painting time on Wikipedia.
2014-06-05 13:31:12 -07:00
bors-servo
188b2c725d auto merge of #2586 : ebalint/servo/2327, r=jdm 2014-06-05 16:16:32 -04:00
bors-servo
b2e7e67087 auto merge of #2538 : mozilla/servo/rustup-20140528, r=SimonSapin
Not yet ready for merge, but you can start reviewing.

Still need to fix linux and some make check code.
2014-06-05 13:58:44 -04:00
Jack Moffitt
629c4c6afe Upgrade Rust. 2014-06-05 09:58:59 -06:00
Edit Balint
521a45bd12 Reduce the number of times we call rustc in our Makefile #2327 2014-06-05 15:37:21 +02:00
bors-servo
2ae671b5aa auto merge of #2582 : zwarich/servo/drop-exceptions, r=jdm
We get a lot of failures from assertions that event listeners haven't
thrown exceptions. As the FIXME above these assertions suggests, we
should just drop them on the floor.
2014-06-05 02:58:27 -04:00
bors-servo
41a6234b39 auto merge of #2581 : mbrubeck/servo/declarations-cache, r=pcwalton
Fixes #2498.  Also includes a reftest, and some related code cleanup (in separate commits).

Note: The fix in `properties.rs.mako` is much more readable with `git diff -w`.
2014-06-05 01:37:30 -04:00
Cameron Zwarich
7a18ab59c8 Drop event listener exceptions on the floor.
We get a lot of failures from assertions that event listeners haven't
thrown exceptions. As the FIXME above these assertions suggests, we
should just drop them on the floor.
2014-06-04 17:05:50 -07:00
Matt Brubeck
3e53dbd2e5 Fix deriving in cascade_with_cached_declarations
Even though we don't recompute non-inherited properties here, we still need
to compute properties that are derived from them.  Fixes #2498: because
text-decoration is not inherited, -servo-text-decorations-in-effect was not
derived correctly for cached declarations.
2014-06-04 15:32:42 -07:00
Matt Brubeck
48922fc261 Minor code cleanup in css::matching 2014-06-04 13:48:35 -07:00
Matt Brubeck
b7ba2157a1 Minor style cleanups in Cache code
- Make ApplicableDeclarationsCache::cache priv
- Add a missing semicolon for clarity
- Remove a useless `drop` call.
2014-06-04 13:18:44 -07:00
bors-servo
473b9e488b auto merge of #2575 : mbrubeck/servo/2259-remove-old-layers, r=pcwalton
This fixes #2259 which was caused by some of the previous layers sticking around incorrectly.  Depends on mozilla-servo/rust-layers#69.

Also includes some related cleanup as separate commits.

No reftest because our test harness doesn't yet support navigating to a new page (#2574).
2014-06-04 14:28:22 -04:00
Matt Brubeck
81601c21aa Remove unused delete_layer code. 2014-06-04 10:03:48 -07:00
Matt Brubeck
2b0134be7b Check the pipeline ID of the new root layer.
This isn't related to any known issue, but is just to ensure that the IDs are
set correctly within this function.
2014-06-04 10:03:48 -07:00
Matt Brubeck
e9efa60647 Remove all old layers when creating a new root.
Fixes #2259.
2014-06-04 10:03:36 -07:00
bors-servo
33c4a7a5dc auto merge of #2521 : Manishearth/servo/xhr-responsetext, r=Ms2ger
Blocks #2282
2014-06-04 07:52:12 -04:00
Manish Goregaokar
ef126be28f Add responseText and status code support to XHR 2014-06-04 17:13:02 +05:30
bors-servo
57ab420616 auto merge of #2570 : pcwalton/servo/ref-count-flows, r=pcwalton
r? @glennw
2014-06-04 01:25:28 -04:00
Patrick Walton
735cc28654 layout: Reference count flows, and forbid unsafe code in many places. 2014-06-03 22:21:11 -07:00
bors-servo
5a97f5fd79 auto merge of #2557 : saneyuki/servo/mut, r=jdm
related #2514
2014-06-03 13:31:26 -04:00
bors-servo
d448e97c6a auto merge of #2558 : Ms2ger/servo/mod-unions, r=jdm
This will allow multiple unions to contain the same type.
2014-06-03 12:58:23 -04:00
Ms2ger
d8801da9c5 Move WebIDL unions into their own module.
This will allow multiple unions to contain the same type.
2014-06-03 18:47:59 +02:00
bors-servo
052a0ffdf0 auto merge of #2556 : Ms2ger/servo/update-wpt, r=metajack 2014-06-03 12:04:15 -04:00
Tetsuharu OHZEKI
dc0164071e Remove needless '&mut self' from DocumentMethods. 2014-06-04 00:57:23 +09:00
Tetsuharu OHZEKI
884346030c Remove needless '&mut self' from WindowMethods. 2014-06-04 00:55:23 +09:00
bors-servo
a90f1e3773 auto merge of #2526 : Manishearth/servo/event-order, r=Ms2ger
For the wpt test [event_load](https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/event-load.htm)

Blocks #2525
2014-06-03 09:40:14 -04:00
Manish Goregaokar
161bc102f6 Order of firing events 2014-06-03 19:05:31 +05:30
Ms2ger
88d1d2ff13 Update web-platform-tests expected results. 2014-06-03 15:22:34 +02:00
bors-servo
246c9759be auto merge of #2555 : brson/servo/warnings, r=metajack
Depends on https://github.com/mozilla-servo/rust-fontconfig/pull/19, https://github.com/mozilla-servo/rust-harfbuzz/pull/21, https://github.com/mozilla-servo/rust-hubbub/pull/23, https://github.com/mozilla-servo/rust-layers/pull/68, https://github.com/mozilla-servo/sharegl/pull/29, https://github.com/mozilla-servo/rust-mozjs/pull/85.
2014-06-02 20:46:25 -04:00
Brian Anderson
c85e2c9594 Eliminate some warnings 2014-06-02 17:42:10 -07:00
bors-servo
184d8b5bab auto merge of #2553 : bjz/servo/remove-inline-fragment-map, r=pcwalton
This simplifies inline.rs and makes things easier to understand.

I've also added some documentation for `Line`.

r? @pcwalton
2014-06-02 19:34:16 -04:00
Brendan Zabarauskas
0276ae47a2 Use destructuring to clean up InlineFragments::push_all 2014-06-02 16:29:50 -07:00
bors-servo
52a809259a auto merge of #2550 : Ms2ger/servo/default-handling, r=jdm 2014-06-02 18:01:22 -04:00
Brendan Zabarauskas
782608eba5 Remove InlineFragmentMap 2014-06-02 14:37:04 -07:00
Brendan Zabarauskas
fe8e0ac06f Remove last methods from InlineFragmentMap 2014-06-02 14:37:04 -07:00
Brendan Zabarauskas
2b23a2ca94 Remove the need to destructure InlineFragments
We do this by moving InlineFragmentMap::fixup into InlineFragments
2014-06-02 14:35:40 -07:00
Brendan Zabarauskas
86efd92a92 Add documentation for Line::{bounds, green_zone} 2014-06-02 14:35:39 -07:00
bors-servo
cd4a709642 auto merge of #2549 : mbrubeck/servo/hidpi-opt, r=metajack
This is part of the fix for #2276. r? @metajack
2014-06-02 16:52:32 -04:00
bors-servo
1d6a1fc066 auto merge of #2552 : saneyuki/servo/mut, r=jdm
related #2514
2014-06-02 14:58:27 -04:00
Tetsuharu OHZEKI
d2a590a3db Remove needless 'self' mutability from CharacterDataMethods::Remove(). 2014-06-03 03:29:41 +09:00
Tetsuharu OHZEKI
a837106f54 Remove needless 'self' mutability from DocumentTypeMethods::Remove(). 2014-06-03 03:28:50 +09:00