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

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: Address nit. 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698