Remove all old layers when creating a new root.

Fixes #2259.
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.
Remove unused delete_layer code.
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).
Minor style cleanups in Cache code

- Make ApplicableDeclarationsCache::cache priv
- Add a missing semicolon for clarity
- Remove a useless `drop` call.
Minor code cleanup in css::matching
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.
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.
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`.
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.
Reduce the number of times we call rustc in our Makefile #2327
Upgrade Rust.
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.
auto merge of #2586 : ebalint/servo/2327, r=jdm
gfx: Add display list optimization to eliminate clipped items before
submitting them to Skia.

40x improvement in painting time on Wikipedia.
auto merge of #2588 : pcwalton/servo/display-list-optimization, r=glennw

submitting them to Skia.

40x improvement in painting time on Wikipedia.

r? @glennw
Use GlyphStore::char_len rather than constantly re-casting GlyphStore::entry_buffer.len()
Use bitflags! for RestyleDamage
Fix the vertical alignment error for img tag.
Use bitflags! for NodeFlags