Turn CSSParserContext into a class

This change makes it more obvious when a member gets overwritten
(which shouldn't happen but unfortunately does).

It also will help storing the Document into the context to allow
deprecation messages in the CSSParser.

Review URL: https://codereview.chromium.org/84903002

git-svn-id: svn://svn.chromium.org/blink/trunk@162648 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Invoke RefPtr::release in GenerateFunctionCallString where possible

Previously, we'd sometimes end up with two refs (by passing a RefPtr
where a PassRefPtr is expected) and sometimes with the caller seeming to have
ownership where it actually didn't (by invoking .get() instead of .release()).

The new logic now passes .release() wherever a PassRefPtr is expected, since
the calling code (the bindings) won't do anything else with that pointer anyway.

This may pave the way toward making Callbacks OwnPtrs, but I wouldn't bet on it.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/85473006

git-svn-id: svn://svn.chromium.org/blink/trunk@162649 bbb929c8-8fbe-4397-9dbb-9b2b20218538