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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 bool isFlexibleBoxIncludingDeprecated() const 1216 bool isFlexibleBoxIncludingDeprecated() const
1217 { 1217 {
1218 return isFlexibleBox() || isDeprecatedFlexibleBox(); 1218 return isFlexibleBox() || isDeprecatedFlexibleBox();
1219 } 1219 }
1220 1220
1221 virtual bool isCombineText() const { return false; } 1221 virtual bool isCombineText() const { return false; }
1222 1222
1223 virtual int caretMinOffset() const; 1223 virtual int caretMinOffset() const;
1224 virtual int caretMaxOffset() const; 1224 virtual int caretMaxOffset() const;
1225 1225
1226 virtual int previousOffset(int current) const;
1227 virtual int previousOffsetForBackwardDeletion(int current) const; 1226 virtual int previousOffsetForBackwardDeletion(int current) const;
1228 virtual int nextOffset(int current) const;
1229 1227
1230 // ImageResourceClient override. 1228 // ImageResourceClient override.
1231 void imageChanged(ImageResource*, const IntRect* = nullptr) final; 1229 void imageChanged(ImageResource*, const IntRect* = nullptr) final;
1232 bool willRenderImage(ImageResource*) final; 1230 bool willRenderImage(ImageResource*) final;
1233 bool getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&) final; 1231 bool getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&) final;
1234 1232
1235 // Sub-classes that have an associated image need to override this function 1233 // Sub-classes that have an associated image need to override this function
1236 // to get notified of any image change. 1234 // to get notified of any image change.
1237 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) { } 1235 virtual void imageChanged(WrappedImagePtr, const IntRect* = nullptr) { }
1238 1236
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
2170 void showTree(const blink::LayoutObject*); 2168 void showTree(const blink::LayoutObject*);
2171 void showLineTree(const blink::LayoutObject*); 2169 void showLineTree(const blink::LayoutObject*);
2172 void showLayoutTree(const blink::LayoutObject* object1); 2170 void showLayoutTree(const blink::LayoutObject* object1);
2173 // We don't make object2 an optional parameter so that showLayoutTree 2171 // We don't make object2 an optional parameter so that showLayoutTree
2174 // can be called from gdb easily. 2172 // can be called from gdb easily.
2175 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2173 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2176 2174
2177 #endif 2175 #endif
2178 2176
2179 #endif // LayoutObject_h 2177 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisibleUnits.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698