return oldAttrNode.release();
}
+PassRefPtr<Attr> Element::setAttributeNodeNS(Attr* attr, ExceptionState& exceptionState)
+{
+ return setAttributeNode(attr, exceptionState);
+}
+
PassRefPtr<Attr> Element::removeAttributeNode(Attr* attr, ExceptionState& exceptionState)
{
if (!attr) {
void Element::updateFocusAppearance(bool /*restorePreviousSelection*/)
{
if (isRootEditableElement()) {
- LocalFrame* frame = document().frame();
+ // Taking the ownership since setSelection() may release the last reference to |frame|.
+ RefPtr<LocalFrame> frame(document().frame());
if (!frame)
return;