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

Unified Diff: Source/core/editing/InsertLineBreakCommand.cpp

Issue 20681004: Make first-letter style to work with editing Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-08-01T17:57:42 Created 7 years, 5 months 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: Source/core/editing/InsertLineBreakCommand.cpp
diff --git a/Source/core/editing/InsertLineBreakCommand.cpp b/Source/core/editing/InsertLineBreakCommand.cpp
index 22d9ff26e9b0d85b2225b65b911881ee9362f7a1..283cf149727500ad3e301d11203a2e1e01f04ce3 100644
--- a/Source/core/editing/InsertLineBreakCommand.cpp
+++ b/Source/core/editing/InsertLineBreakCommand.cpp
@@ -84,7 +84,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.renderer() && !p.renderer()->style()->preserveNewline();
}
void InsertLineBreakCommand::doApply()

Powered by Google App Engine
This is Rietveld 408576698