Index: Source/core/editing/InsertLineBreakCommand.cpp |
diff --git a/Source/core/editing/InsertLineBreakCommand.cpp b/Source/core/editing/InsertLineBreakCommand.cpp |
index d90c5747468bf930a2bb30fc1303acdbfc39e0a7..1a8a0ebe577f743a3ebec7b93068c721a1ceefe4 100644 |
--- a/Source/core/editing/InsertLineBreakCommand.cpp |
+++ b/Source/core/editing/InsertLineBreakCommand.cpp |
@@ -61,7 +61,7 @@ bool InsertLineBreakCommand::shouldUseBreakElement(const Position& insertionPos) |
// the input element, and in that case we need to check the input element's |
// parent's renderer. |
Position p(insertionPos.parentAnchoredEquivalent()); |
- return p.deprecatedNode()->renderer() && !p.deprecatedNode()->renderer()->style()->preserveNewline(); |
+ return p.deprecatedNode()->layoutObject() && !p.deprecatedNode()->layoutObject()->style()->preserveNewline(); |
} |
void InsertLineBreakCommand::doApply() |
@@ -127,7 +127,7 @@ void InsertLineBreakCommand::doApply() |
Position positionBeforeTextNode(positionInParentBeforeNode(*textNode)); |
// Clear out all whitespace and insert one non-breaking space |
deleteInsignificantTextDownstream(endingPosition); |
- ASSERT(!textNode->renderer() || textNode->renderer()->style()->collapseWhiteSpace()); |
+ ASSERT(!textNode->layoutObject() || textNode->layoutObject()->style()->collapseWhiteSpace()); |
// Deleting insignificant whitespace will remove textNode if it contains nothing but insignificant whitespace. |
if (textNode->inDocument()) |
insertTextIntoNode(textNode, 0, nonBreakingSpaceString()); |