Index: Source/core/editing/Caret.h |
diff --git a/Source/core/editing/Caret.h b/Source/core/editing/Caret.h |
index 5e2c61c0c3dcdce294bd2de7af234004559ef3a7..4f016322afea43a9092ad85663bdb174d8a306e6 100644 |
--- a/Source/core/editing/Caret.h |
+++ b/Source/core/editing/Caret.h |
@@ -45,12 +45,12 @@ protected: |
enum CaretVisibility { Visible, Hidden }; |
explicit CaretBase(CaretVisibility = Hidden); |
- void invalidateCaretRect(Node*, bool caretRectChanged = false); |
+ void invalidateCaretRect(const Position&, bool caretRectChanged = false); |
void clearCaretRect(); |
bool updateCaretRect(Document*, const VisiblePosition& caretPosition); |
- IntRect absoluteBoundsForLocalRect(Node*, const LayoutRect&) const; |
+ IntRect absoluteBoundsForLocalRect(const Position&, const LayoutRect&) const; |
bool shouldRepaintCaret(const RenderView*, bool isContentEditable) const; |
- void paintCaret(Node*, GraphicsContext*, const LayoutPoint&, const LayoutRect& clipRect) const; |
+ void paintCaret(const Position&, GraphicsContext*, const LayoutPoint&, const LayoutRect& clipRect) const; |
const LayoutRect& localCaretRectWithoutUpdate() const { return m_caretLocalRect; } |
@@ -62,8 +62,9 @@ protected: |
CaretVisibility caretVisibility() const { return m_caretVisibility; } |
protected: |
- static RenderObject* caretRenderer(Node*); |
- static void repaintCaretForLocalRect(Node*, const LayoutRect&); |
+ static RenderObject* caretRenderer(RenderObject*); |
+ static RenderObject* caretRenderer(const Position&); |
+ static void repaintCaretForLocalRect(const Position&, const LayoutRect&); |
private: |
LayoutRect m_caretLocalRect; // caret rect in coords local to the renderer responsible for painting the caret |