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

Unified Diff: third_party/WebKit/Source/core/editing/CaretBase.h

Issue 1994883002: [Editing][CodeHealth] Extract new FrameCaret class from FrameSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 7 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/CaretBase.h
diff --git a/third_party/WebKit/Source/core/editing/CaretBase.h b/third_party/WebKit/Source/core/editing/CaretBase.h
index 05f064bf9e612fd3b312eb5e0d5694d95e904115..ff14c7b6af3ee2a44347063c789c150fa78c2d42 100644
--- a/third_party/WebKit/Source/core/editing/CaretBase.h
+++ b/third_party/WebKit/Source/core/editing/CaretBase.h
@@ -42,10 +42,11 @@ class LayoutViewItem;
enum class CaretVisibility { Visible, Hidden };
-class CORE_EXPORT CaretBase {
+class CORE_EXPORT CaretBase : public GarbageCollectedFinalized<CaretBase> {
WTF_MAKE_NONCOPYABLE(CaretBase);
public:
explicit CaretBase(CaretVisibility = CaretVisibility::Hidden);
+ virtual ~CaretBase() { }
yosin_UTC9 2016/05/20 07:18:05 nit: virtual dtor should not be inline. It should
yoichio 2016/05/20 07:49:59 Done.
void invalidateCaretRect(Node*, bool caretRectChanged = false);
void clearCaretRect();
@@ -68,6 +69,8 @@ public:
static LayoutBlock* caretLayoutObject(Node*);
static void invalidateLocalCaretRect(Node*, const LayoutRect&);
+ DEFINE_INLINE_VIRTUAL_TRACE() { }
yosin_UTC9 2016/05/20 07:18:05 nit: Should be in .cpp
yoichio 2016/05/20 07:49:59 Done.
+
private:
LayoutRect m_caretLocalRect; // caret rect in coords local to the layoutObject responsible for painting the caret
CaretVisibility m_caretVisibility;

Powered by Google App Engine
This is Rietveld 408576698