Commit e3cdf6d3 authored by yoichio@chromium.org's avatar yoichio@chromium.org

Add comment about CaretBase::updateCaretRect.

BUG=

Review URL: https://codereview.chromium.org/429723006

git-svn-id: svn://svn.chromium.org/blink/trunk@179193 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent e1ae116e
......@@ -48,8 +48,10 @@ protected:
void invalidateCaretRect(Node*, bool caretRectChanged = false);
void clearCaretRect();
// Creating VisiblePosition causes synchronous layout so we should use the
// PositionWithAffinity version if possible.
// A position in HTMLTextFromControlElement is a typical example.
bool updateCaretRect(Document*, const PositionWithAffinity& caretPosition);
// Simply calls above updateCaretRect using deepEquivalent() and affinity().
bool updateCaretRect(Document*, const VisiblePosition& caretPosition);
IntRect absoluteBoundsForLocalRect(Node*, const LayoutRect&) const;
bool shouldRepaintCaret(const RenderView*, bool isContentEditable) const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment