Handle more types in the UserData encode/decode functions
https://bugs.webkit.org/show_bug.cgi?id=139959

Reviewed by Dan Bernstein.

* Shared/UserData.cpp:
(WebKit::UserData::encode):
(WebKit::UserData::decode):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Purge PassRefPtr from Element and ElementRareData.
<https://webkit.org/b/139949>

Reviewed by Anders Carlsson.

Make functions that used to take PassRefPtr now take Ref&& or RefPtr&&
instead depending on possible nullity of incoming values.

* dom/Element.cpp:
(WebCore::Element::addShadowRoot):
(WebCore::Element::setBeforePseudoElement):
(WebCore::Element::setAfterPseudoElement):
* dom/Element.h:
* dom/ElementRareData.h:
(WebCore::ElementRareData::setShadowRoot):
(WebCore::ElementRareData::setBeforePseudoElement):
(WebCore::ElementRareData::setAfterPseudoElement):
* dom/PseudoElement.h:
* dom/ShadowRoot.h:
* style/StyleResolveTree.cpp:
(WebCore::Style::setBeforeOrAfterPseudoElement):
(WebCore::Style::attachBeforeOrAfterPseudoElementIfNeeded):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@177751 268f45cc-cd09-0410-ab3c-d52691b4dbfc