summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/SelectionController.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/SelectionController.h')
-rw-r--r--WebCore/editing/SelectionController.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/WebCore/editing/SelectionController.h b/WebCore/editing/SelectionController.h
index 5d2ee9f..5fa2769 100644
--- a/WebCore/editing/SelectionController.h
+++ b/WebCore/editing/SelectionController.h
@@ -100,10 +100,12 @@ public:
RenderObject* caretRenderer() const;
// Caret rect local to the caret's renderer
- IntRect localCaretRect() const;
+ IntRect localCaretRect();
+ IntRect localCaretRectForPainting() const { return m_caretRect; }
+
// Bounds of (possibly transformed) caret in absolute coords
IntRect absoluteCaretBounds();
- void setNeedsLayout(bool flag = true);
+ void setCaretRectNeedsUpdate(bool flag = true);
void setIsDirectional(bool);
void willBeModified(EAlteration, EDirection);
@@ -167,7 +169,7 @@ private:
VisiblePosition modifyMovingLeft(TextGranularity);
VisiblePosition modifyMovingBackward(TextGranularity);
- void layout();
+ void updateCaretRect();
IntRect caretRepaintRect() const;
bool shouldRepaintCaret(const RenderView* view) const;
@@ -197,7 +199,7 @@ private:
IntRect m_absCaretBounds; // absolute bounding rect for the caret
IntRect m_absoluteCaretRepaintBounds;
- bool m_needsLayout; // true if m_caretRect and m_absCaretBounds need to be calculated
+ bool m_caretRectNeedsUpdate; // true if m_caretRect and m_absCaretBounds need to be calculated
bool m_absCaretBoundsDirty;
bool m_isDirectional;
bool m_isDragCaretController;