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

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

Issue 414863002: Minimize RenderObject* casting to RenderText* (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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
« no previous file with comments | « Source/core/dom/Text.cpp ('k') | Source/core/editing/DeleteSelectionCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/CompositeEditCommand.cpp
diff --git a/Source/core/editing/CompositeEditCommand.cpp b/Source/core/editing/CompositeEditCommand.cpp
index 5a50f50284f2f632e07c45cf989486b76371c3a0..52f748be811244a352308d2d5ecfce66a12f7e04 100644
--- a/Source/core/editing/CompositeEditCommand.cpp
+++ b/Source/core/editing/CompositeEditCommand.cpp
@@ -613,7 +613,7 @@ bool CompositeEditCommand::canRebalance(const Position& position) const
if (textNode->length() == 0)
return false;
- RenderObject* renderer = textNode->renderer();
+ RenderText* renderer = textNode->renderer();
if (renderer && !renderer->style()->collapseWhiteSpace())
return false;
@@ -682,7 +682,7 @@ void CompositeEditCommand::prepareWhitespaceAtPositionForSplit(Position& positio
if (textNode->length() == 0)
return;
- RenderObject* renderer = textNode->renderer();
+ RenderText* renderer = textNode->renderer();
if (renderer && !renderer->style()->collapseWhiteSpace())
return;
@@ -725,7 +725,7 @@ void CompositeEditCommand::deleteInsignificantText(PassRefPtrWillBeRawPtr<Text>
document().updateLayout();
- RenderText* textRenderer = toRenderText(textNode->renderer());
+ RenderText* textRenderer = textNode->renderer();
if (!textRenderer)
return;
« no previous file with comments | « Source/core/dom/Text.cpp ('k') | Source/core/editing/DeleteSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698