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

Unified Diff: Source/core/editing/Caret.h

Issue 20681004: Make first-letter style to work with editing Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-09-20T18:27:32 Created 7 years, 3 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: 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

Powered by Google App Engine
This is Rietveld 408576698