<rdar://problem/
3671555>: Blot scrolls to the top every time you type
* khtml/xml/dom_selection.cpp:
(DOM::Selection::getRepaintRect): If the caret position is invalid, recompute it.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6806
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-06-09 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by Dave.
+
+ <rdar://problem/3671555>: Blot scrolls to the top every time you type
+
+ * khtml/xml/dom_selection.cpp:
+ (DOM::Selection::getRepaintRect): If the caret position is invalid, recompute it.
+
2004-06-09 David Hyatt <hyatt@apple.com>
Fix for 3607091, implement a style that prevents zoom and min font size from taking effect.
QRect Selection::getRepaintRect() const
{
+ if (m_needsCaretLayout) {
+ const_cast<Selection *>(this)->layoutCaret();
+ }
+
// EDIT FIXME: fudge a bit to make sure we don't leave behind artifacts
return QRect(m_caretX - 1, m_caretY - 1, 3, m_caretSize + 2);
}
QRect Selection::getRepaintRect() const
{
+ if (m_needsCaretLayout) {
+ const_cast<Selection *>(this)->layoutCaret();
+ }
+
// EDIT FIXME: fudge a bit to make sure we don't leave behind artifacts
return QRect(m_caretX - 1, m_caretY - 1, 3, m_caretSize + 2);
}
QRect Selection::getRepaintRect() const
{
+ if (m_needsCaretLayout) {
+ const_cast<Selection *>(this)->layoutCaret();
+ }
+
// EDIT FIXME: fudge a bit to make sure we don't leave behind artifacts
return QRect(m_caretX - 1, m_caretY - 1, 3, m_caretSize + 2);
}