servo/servo — pull request #3433 by zwarich (2014-09-20 04:34:32+00:00)
Title: More progress in the &JSRef -> JSRef conversion

Change all of the Methods traits to take `self` instead of
`&self`.

Convert various helper traits from &JSRef to JSRef. I converted them all with a few exceptions:

- Methods that were used by trait objects, since trait objects don't
work with `self` methods.
- Methods that take an &'b JSRef<'a, T> and return an &'b. In reality,
many (all?) could return an &'a instead, but this isn't allowed by the
Deref trait.
- Methods that internally rely on the same issue with Deref.
- I left out the traits involved in layout entirely, even though not all
of their methods suffer from one of the above problems.

There will probably be solutions to all of these problems in the future.