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

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

Issue 105483003: Editing - Code refactoring to avoid redundant function calls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Including few more similar fixes Created 7 years 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 | « no previous file | Source/core/editing/IndentOutdentCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/ApplyBlockElementCommand.cpp
diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/ApplyBlockElementCommand.cpp
index 9eada42c339a1773857687305478b6a2ddff7403..7049dacad0ce456b06db6e76504ad91c68e796b0 100644
--- a/Source/core/editing/ApplyBlockElementCommand.cpp
+++ b/Source/core/editing/ApplyBlockElementCommand.cpp
@@ -117,8 +117,9 @@ void ApplyBlockElementCommand::formatSelection(const VisiblePosition& startOfSel
RefPtr<Element> blockquoteForNextIndent;
VisiblePosition endOfCurrentParagraph = endOfParagraph(startOfSelection);
- VisiblePosition endAfterSelection = endOfParagraph(endOfParagraph(endOfSelection).next());
- m_endOfLastParagraph = endOfParagraph(endOfSelection).deepEquivalent();
+ VisiblePosition endOfLastParagraph = endOfParagraph(endOfSelection);
+ VisiblePosition endAfterSelection = endOfParagraph(endOfLastParagraph.next());
+ m_endOfLastParagraph = endOfLastParagraph.deepEquivalent();
bool atEnd = false;
Position end;
« no previous file with comments | « no previous file | Source/core/editing/IndentOutdentCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698