Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2333)

Unified Diff: WebCore/rendering/RenderListBox.cpp

Issue 3364013: Merge 67001 - 2010-09-08 Peter Kasting <pkasting@google.com>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/rendering/RenderListBox.h ('k') | WebKit/chromium/ChangeLog » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/rendering/RenderListBox.cpp
===================================================================
--- WebCore/rendering/RenderListBox.cpp (revision 67003)
+++ WebCore/rendering/RenderListBox.cpp (working copy)
@@ -500,7 +500,7 @@
m_indexOffset = newOffset;
if (m_vBar)
- m_vBar->setValue(m_indexOffset);
+ m_vBar->setValue(m_indexOffset, Scrollbar::NotFromScrollAnimator);
return true;
}
@@ -523,6 +523,17 @@
element->dispatchFormControlChangeEvent();
}
+int RenderListBox::scrollSize(ScrollbarOrientation orientation) const
+{
+ return ((orientation == VerticalScrollbar) && m_vBar) ? (m_vBar->totalSize() - m_vBar->visibleSize()) : 0;
+}
+
+void RenderListBox::setScrollOffsetFromAnimation(const IntPoint& offset)
+{
+ if (m_vBar)
+ m_vBar->setValue(offset.y(), Scrollbar::FromScrollAnimator);
+}
+
void RenderListBox::valueChanged(Scrollbar*)
{
int newOffset = m_vBar->value();
@@ -578,7 +589,7 @@
return;
m_indexOffset = index;
if (m_vBar)
- m_vBar->setValue(index);
+ m_vBar->setValue(index, Scrollbar::NotFromScrollAnimator);
}
bool RenderListBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, int x, int y, int tx, int ty, HitTestAction hitTestAction)
« no previous file with comments | « WebCore/rendering/RenderListBox.h ('k') | WebKit/chromium/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698