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

Unified Diff: webkit/glue/webtextinput_impl.cc

Issue 100212: Chrome side of WebKit Merge 42994:43059 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 | « WEBKIT_MERGE_REVISION ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webtextinput_impl.cc
===================================================================
--- webkit/glue/webtextinput_impl.cc (revision 14943)
+++ webkit/glue/webtextinput_impl.cc (working copy)
@@ -112,8 +112,8 @@
// Range::toString() returns a string different from what test expects.
// So we need to construct the string ourselves.
- SStringPrintf(range_str, "%d,%d", range->startPosition().m_offset,
- range->endPosition().m_offset);
+ SStringPrintf(range_str, "%d,%d", range->startPosition().deprecatedEditingOffset(),
+ range->endPosition().deprecatedEditingOffset());
}
void WebTextInputImpl::SelectedRange(std::string* range_str) {
@@ -122,8 +122,8 @@
// Range::toString() returns a string different from what test expects.
// So we need to construct the string ourselves.
- SStringPrintf(range_str, "%d,%d", range.get()->startPosition().m_offset,
- range.get()->endPosition().m_offset);
+ SStringPrintf(range_str, "%d,%d", range.get()->startPosition().deprecatedEditingOffset(),
+ range.get()->endPosition().deprecatedEditingOffset());
}
void WebTextInputImpl::FirstRectForCharacterRange(int32_t location,
« no previous file with comments | « WEBKIT_MERGE_REVISION ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698