Commit de61a9ea authored by tkent@chromium.org's avatar tkent@chromium.org

Remove unnecessary .get() in DOMEditor::ReplaceChildNodeAction.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176020 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 81b3de04
...@@ -350,17 +350,13 @@ public: ...@@ -350,17 +350,13 @@ public:
virtual bool undo(ExceptionState& exceptionState) OVERRIDE virtual bool undo(ExceptionState& exceptionState) OVERRIDE
{ {
// FIXME: Oilpan: The first .get() is unnecessary if m_oldNode is a m_parentNode->replaceChild(m_oldNode, m_newNode.get(), exceptionState);
// Persistent or a Member.
m_parentNode->replaceChild(m_oldNode.get(), m_newNode.get(), exceptionState);
return !exceptionState.hadException(); return !exceptionState.hadException();
} }
virtual bool redo(ExceptionState& exceptionState) OVERRIDE virtual bool redo(ExceptionState& exceptionState) OVERRIDE
{ {
// FIXME: Oilpan: The first .get() is unnecessary if m_newNode is a m_parentNode->replaceChild(m_newNode, m_oldNode.get(), exceptionState);
// Persistent or a Member.
m_parentNode->replaceChild(m_newNode.get(), m_oldNode.get(), exceptionState);
return !exceptionState.hadException(); return !exceptionState.hadException();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment