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

Unified Diff: Source/core/editing/commands/ApplyStyleCommand.cpp

Issue 1317053004: Make VisiblePosition constructor private (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-09-01T18:48:19 Created 5 years, 4 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/commands/ApplyStyleCommand.cpp
diff --git a/Source/core/editing/commands/ApplyStyleCommand.cpp b/Source/core/editing/commands/ApplyStyleCommand.cpp
index f6c95422597fa7e7f9fa033f89fd57e44d5985df..d7f3c83bd509a11e331f037573e03ccad3413f49 100644
--- a/Source/core/editing/commands/ApplyStyleCommand.cpp
+++ b/Source/core/editing/commands/ApplyStyleCommand.cpp
@@ -250,8 +250,8 @@ void ApplyStyleCommand::applyBlockStyle(EditingStyle *style)
end = swap;
}
- VisiblePosition visibleStart(start);
- VisiblePosition visibleEnd(end);
+ VisiblePosition visibleStart = createVisiblePosition(start);
+ VisiblePosition visibleEnd = createVisiblePosition(end);
if (visibleStart.isNull() || visibleStart.isOrphan() || visibleEnd.isNull() || visibleEnd.isOrphan())
return;

Powered by Google App Engine
This is Rietveld 408576698