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

Unified Diff: WebCore/platform/win/PopupMenuWin.cpp

Issue 3334011: Merge 67009 - WebCore: Not reviewed, fallout from http://trac.webkit.org/chan... (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/platform/ScrollAnimatorWin.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/platform/win/PopupMenuWin.cpp
===================================================================
--- WebCore/platform/win/PopupMenuWin.cpp (revision 67009)
+++ WebCore/platform/win/PopupMenuWin.cpp (working copy)
@@ -531,12 +531,12 @@
int index = focusedIndex();
if (index < m_scrollOffset) {
- m_scrollbar->setValue(index);
+ m_scrollbar->setValue(index, Scrollbar::NotFromScrollAnimator);
return true;
}
if (index >= m_scrollOffset + visibleItems()) {
- m_scrollbar->setValue(index - visibleItems() + 1);
+ m_scrollbar->setValue(index - visibleItems() + 1, Scrollbar::NotFromScrollAnimator);
return true;
}
@@ -666,7 +666,7 @@
int PopupMenuWin::scrollSize(ScrollbarOrientation orientation) const
{
- return ((orientation == VerticallScrollbar) && m_scrollbar) ? (m_scrollbar->totalSize() - m_scrollbar->visibleSize()) : 0;
+ return ((orientation == VerticalScrollbar) && m_scrollbar) ? (m_scrollbar->totalSize() - m_scrollbar->visibleSize()) : 0;
}
void PopupMenuWin::setScrollOffsetFromAnimation(const IntPoint& offset)
« no previous file with comments | « WebCore/platform/ScrollAnimatorWin.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698