Reviewed by Darin and Adam.
<rdar://problem/
5338385> Fixed infinite loop in ScrollView::scrollRectIntoViewRecursively().
Also removed an unused local variable.
* platform/win/ScrollViewWin.cpp:
(WebCore::ScrollView::scrollRectIntoViewRecursively):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24498
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-07-20 Ada Chan <adachan@apple.com>
+
+ Reviewed by Darin and Adam.
+
+ <rdar://problem/5338385> Fixed infinite loop in ScrollView::scrollRectIntoViewRecursively().
+ Also removed an unused local variable.
+
+ * platform/win/ScrollViewWin.cpp:
+ (WebCore::ScrollView::scrollRectIntoViewRecursively):
+
2007-07-21 Antti <antti@apple.com>
Reviewed by Darin.
{
IntPoint p(max(0, r.x()), max(0, r.y()));
ScrollView* view = this;
- ScrollView* oldView = view;
while (view) {
view->setContentsPos(p.x(), p.y());
p.move(view->x() - view->scrollOffset().width(), view->y() - view->scrollOffset().height());
- view = static_cast<ScrollView*>(parent());
+ view = static_cast<ScrollView*>(view->parent());
}
}