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

Side by Side Diff: WebKit/qt/Api/qwebframe.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 unified diff | Download patch
« no previous file with comments | « WebKit/chromium/src/win/WebInputEventFactory.cpp ('k') | WebKit/qt/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 2008,2009 Nokia Corporation and/or its subsidiary(-ies) 2 Copyright (C) 2008,2009 Nokia Corporation and/or its subsidiary(-ies)
3 Copyright (C) 2007 Staikos Computing Services Inc. 3 Copyright (C) 2007 Staikos Computing Services Inc.
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 */ 922 */
923 void QWebFrame::setScrollBarValue(Qt::Orientation orientation, int value) 923 void QWebFrame::setScrollBarValue(Qt::Orientation orientation, int value)
924 { 924 {
925 Scrollbar *sb; 925 Scrollbar *sb;
926 sb = (orientation == Qt::Horizontal) ? d->horizontalScrollBar() : d->vertica lScrollBar(); 926 sb = (orientation == Qt::Horizontal) ? d->horizontalScrollBar() : d->vertica lScrollBar();
927 if (sb) { 927 if (sb) {
928 if (value < 0) 928 if (value < 0)
929 value = 0; 929 value = 0;
930 else if (value > scrollBarMaximum(orientation)) 930 else if (value > scrollBarMaximum(orientation))
931 value = scrollBarMaximum(orientation); 931 value = scrollBarMaximum(orientation);
932 sb->setValue(value); 932 sb->setValue(value, Scrollbar::NotFromScrollAnimator);
933 } 933 }
934 } 934 }
935 935
936 /*! 936 /*!
937 Returns the current value for the scrollbar with orientation \a orientation, o r 0 937 Returns the current value for the scrollbar with orientation \a orientation, o r 0
938 if no scrollbar is found for \a orientation. 938 if no scrollbar is found for \a orientation.
939 939
940 \sa scrollBarMinimum(), scrollBarMaximum() 940 \sa scrollBarMinimum(), scrollBarMaximum()
941 */ 941 */
942 int QWebFrame::scrollBarValue(Qt::Orientation orientation) const 942 int QWebFrame::scrollBarValue(Qt::Orientation orientation) const
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 1787
1788 /*! 1788 /*!
1789 Returns the frame the hit test was executed in. 1789 Returns the frame the hit test was executed in.
1790 */ 1790 */
1791 QWebFrame *QWebHitTestResult::frame() const 1791 QWebFrame *QWebHitTestResult::frame() const
1792 { 1792 {
1793 if (!d) 1793 if (!d)
1794 return 0; 1794 return 0;
1795 return d->frame; 1795 return d->frame;
1796 } 1796 }
OLDNEW
« no previous file with comments | « WebKit/chromium/src/win/WebInputEventFactory.cpp ('k') | WebKit/qt/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698