ReplaceSelectionCommand::makeInsertedContentRoundTrippableWithHTMLTreeBuilder...

ReplaceSelectionCommand::makeInsertedContentRoundTrippableWithHTMLTreeBuilder should take a const reference to InsertedNodes

This method doesn't modify InsertedNodes object so that it can take a const reference.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169431 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 7633f3f6
...@@ -609,7 +609,7 @@ static bool isProhibitedParagraphChild(const AtomicString& name) ...@@ -609,7 +609,7 @@ static bool isProhibitedParagraphChild(const AtomicString& name)
return elements.contains(name); return elements.contains(name);
} }
void ReplaceSelectionCommand::makeInsertedContentRoundTrippableWithHTMLTreeBuilder(InsertedNodes& insertedNodes) void ReplaceSelectionCommand::makeInsertedContentRoundTrippableWithHTMLTreeBuilder(const InsertedNodes& insertedNodes)
{ {
RefPtr<Node> pastEndNode = insertedNodes.pastLastLeaf(); RefPtr<Node> pastEndNode = insertedNodes.pastLastLeaf();
RefPtr<Node> next; RefPtr<Node> next;
......
...@@ -88,7 +88,7 @@ private: ...@@ -88,7 +88,7 @@ private:
void removeUnrenderedTextNodesAtEnds(InsertedNodes&); void removeUnrenderedTextNodesAtEnds(InsertedNodes&);
void removeRedundantStylesAndKeepStyleSpanInline(InsertedNodes&); void removeRedundantStylesAndKeepStyleSpanInline(InsertedNodes&);
void makeInsertedContentRoundTrippableWithHTMLTreeBuilder(InsertedNodes&); void makeInsertedContentRoundTrippableWithHTMLTreeBuilder(const InsertedNodes&);
void moveNodeOutOfAncestor(PassRefPtr<Node>, PassRefPtr<Node> ancestor); void moveNodeOutOfAncestor(PassRefPtr<Node>, PassRefPtr<Node> ancestor);
void handleStyleSpans(InsertedNodes&); void handleStyleSpans(InsertedNodes&);
......
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