| Index: third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
|
| index e3c6f79b419b3394ba566234618139004b1da284..7e2d71e0bb139fb119ba0f0817e59ded6200335c 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp
|
| @@ -61,6 +61,14 @@ static Element* HighestVisuallyEquivalentDivBelowRoot(Element* start_block) {
|
| return cur_block;
|
| }
|
|
|
| +static bool InSameBlock(const VisiblePosition& a, const VisiblePosition& b) {
|
| + DCHECK(a.IsValid()) << a;
|
| + DCHECK(b.IsValid()) << b;
|
| + return !a.IsNull() &&
|
| + EnclosingBlock(a.DeepEquivalent().ComputeContainerNode()) ==
|
| + EnclosingBlock(b.DeepEquivalent().ComputeContainerNode());
|
| +}
|
| +
|
| InsertParagraphSeparatorCommand::InsertParagraphSeparatorCommand(
|
| Document& document,
|
| bool must_use_default_paragraph_element,
|
|
|