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

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

Issue 2341053002: Mark the createVisiblePosition overloads as deprecated (Closed)
Patch Set: minor revision Created 4 years, 3 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: third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
index fcffe7074990422e9f9fe5e7abe3867484fd8851..91e25fc68f4c58e7ae8d798e945d5c9b3930f34f 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
@@ -256,8 +256,8 @@ void ApplyStyleCommand::applyBlockStyle(EditingStyle *style, EditingState* editi
end = swap;
}
- VisiblePosition visibleStart = createVisiblePosition(start);
- VisiblePosition visibleEnd = createVisiblePosition(end);
+ VisiblePosition visibleStart = createVisiblePositionDeprecated(start);
+ VisiblePosition visibleEnd = createVisiblePositionDeprecated(end);
if (visibleStart.isNull() || visibleStart.isOrphan() || visibleEnd.isNull() || visibleEnd.isOrphan())
return;
@@ -287,7 +287,7 @@ void ApplyStyleCommand::applyBlockStyle(EditingStyle *style, EditingState* editi
if (newBlock) {
block = newBlock;
if (paragraphStart.isOrphan())
- paragraphStart = createVisiblePosition(Position::firstPositionInNode(newBlock));
+ paragraphStart = createVisiblePositionDeprecated(Position::firstPositionInNode(newBlock));
}
DCHECK(!paragraphStart.isOrphan()) << paragraphStart;
}

Powered by Google App Engine
This is Rietveld 408576698