Index: Source/core/page/AutoscrollController.cpp |
diff --git a/Source/core/page/AutoscrollController.cpp b/Source/core/page/AutoscrollController.cpp |
old mode 100644 |
new mode 100755 |
index 6c460280b17ead0df358d7c4af302399e557ac7a..281e16bf62f84456239dfb1097b429aca7305305 |
--- a/Source/core/page/AutoscrollController.cpp |
+++ b/Source/core/page/AutoscrollController.cpp |
@@ -36,6 +36,7 @@ |
#include "core/page/Page.h" |
#include "core/rendering/HitTestResult.h" |
#include "core/rendering/RenderBox.h" |
+#include "core/rendering/RenderListBox.h" |
#include "wtf/CurrentTime.h" |
namespace WebCore { |
@@ -73,6 +74,8 @@ void AutoscrollController::startAutoscrollForSelection(RenderObject* renderer) |
return; |
RenderBox* scrollable = RenderBox::findAutoscrollable(renderer); |
if (!scrollable) |
+ scrollable = renderer->isListBox() ? toRenderListBox(renderer) : 0; |
+ if (!scrollable) |
return; |
m_autoscrollType = AutoscrollForSelection; |
m_autoscrollRenderer = scrollable; |