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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.cpp

Issue 1824143003: [All-In-One] Introduce BackspaceStateMachine (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/layout/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index 3099e448e86b5b3c0ef131b5caadacacbff463b6..2b21a70ac76916592b091fffef117cd3c399a8c6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -1674,17 +1674,6 @@ int LayoutText::previousOffset(int current) const
return result;
}
-int LayoutText::previousOffsetForBackwardDeletion(int current) const
-{
- // Delete by one code point. Ideally we should delete grapheme where that
- // makes sense. https://crbug.com/587241
- if (U16_IS_TRAIL(m_text[--current]))
- --current;
- if (current < 0)
- current = 0;
- return current;
-}
-
int LayoutText::nextOffset(int current) const
{
if (m_text.is8Bit())

Powered by Google App Engine
This is Rietveld 408576698