summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 18:16:35 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 18:16:35 +0000
commit0dbb7cf03accfb89796588e2e9406da6e1106ffa (patch)
tree848a9315a598604428860b34a428526704dae439 /chrome/renderer
parentfd6bf3598a65823438386d80f2b65a017e7f0ecd (diff)
downloadchromium_src-0dbb7cf03accfb89796588e2e9406da6e1106ffa.zip
chromium_src-0dbb7cf03accfb89796588e2e9406da6e1106ffa.tar.gz
chromium_src-0dbb7cf03accfb89796588e2e9406da6e1106ffa.tar.bz2
fix linux build error
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46713 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/pepper_scrollbar_widget.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/pepper_scrollbar_widget.cc b/chrome/renderer/pepper_scrollbar_widget.cc
index d37ed25..7977e03 100644
--- a/chrome/renderer/pepper_scrollbar_widget.cc
+++ b/chrome/renderer/pepper_scrollbar_widget.cc
@@ -320,8 +320,8 @@ bool PepperScrollbarWidget::OnKeyDown(const NPPepperEvent& event) {
if (vertical_ && key == base::VKEY_UP ||
!vertical_ && key == base::VKEY_LEFT) {
Scroll(true, SCROLL_BY_LINE, 0);
- } else if (vertical_ && key == base::VKEY_DOWN ||
- !vertical_ && key == base::VKEY_RIGHT) {
+ } else if ((vertical_ && key == base::VKEY_DOWN) ||
+ (!vertical_ && key == base::VKEY_RIGHT)) {
Scroll(false, SCROLL_BY_LINE, 0);
} else if (key == base::VKEY_HOME) {
Scroll(true, SCROLL_BY_DOCUMENT, 0);