Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h

Issue 2533703002: Don't refer to removed spans when reformulating pasted content. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
index cf5167802bf8e6670ff9ff4fcb61af5903735ae4..38fde66e32b7bcd58c4e80e2fcf4795095dd2576 100644
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h
@@ -91,10 +91,13 @@ class CORE_EXPORT ReplaceSelectionCommand final : public CompositeEditCommand {
NodeTraversal::lastWithinOrSelf(*m_lastNodeInserted))
: 0;
}
+ Node* refNode() const { return m_refNode.get(); }
+ void setRefNode(Node* node) { m_refNode = node; }
private:
Member<Node> m_firstNodeInserted;
Member<Node> m_lastNodeInserted;
+ Member<Node> m_refNode;
};
Node* insertAsListItems(HTMLElement* listElement,

Powered by Google App Engine
This is Rietveld 408576698