Purge PassRefPtr from Element and ElementRareData.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Dec 2014 23:00:04 +0000 (23:00 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Dec 2014 23:00:04 +0000 (23:00 +0000)
commitd9ab647f07160520a4179a841097518568042d83
tree68c8a5b405923b0cfae1f9c02f7f90fcf65f3ba0
parent410df0b049318a2bba27ac36c5a79ad5b43d4202
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: https://svn.webkit.org/repository/webkit/trunk@177751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Element.cpp
Source/WebCore/dom/Element.h
Source/WebCore/dom/ElementRareData.h
Source/WebCore/dom/PseudoElement.h
Source/WebCore/dom/ShadowRoot.h
Source/WebCore/style/StyleResolveTree.cpp