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

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

Issue 1833653002: Move LayoutObject::nextOffset/previousOffset() to editing utility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added test cases. 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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index f7fefe576aff17d0c7013f36525d5b7ed36552cc..39f3a0a43e4ccf1943c2ecbc8e3e2e6bdcb6652e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3245,21 +3245,11 @@ int LayoutObject::caretMaxOffset() const
return 0;
}
-int LayoutObject::previousOffset(int current) const
-{
- return current - 1;
-}
-
int LayoutObject::previousOffsetForBackwardDeletion(int current) const
{
return current - 1;
}
-int LayoutObject::nextOffset(int current) const
-{
- return current + 1;
-}
-
bool LayoutObject::isInert() const
{
const LayoutObject* layoutObject = this;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/LayoutText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698