diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 18:19:04 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 18:19:04 +0000 |
commit | b13205648a9c45ba4d5e6fa5db3012bc8a1cf75e (patch) | |
tree | bf678969354f901b1148a712aad0ab3d711e9e70 /chrome/renderer | |
parent | 0dbb7cf03accfb89796588e2e9406da6e1106ffa (diff) | |
download | chromium_src-b13205648a9c45ba4d5e6fa5db3012bc8a1cf75e.zip chromium_src-b13205648a9c45ba4d5e6fa5db3012bc8a1cf75e.tar.gz chromium_src-b13205648a9c45ba4d5e6fa5db3012bc8a1cf75e.tar.bz2 |
fix linux build error second try
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46714 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/pepper_scrollbar_widget.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/pepper_scrollbar_widget.cc b/chrome/renderer/pepper_scrollbar_widget.cc index 7977e03..1f13ec5 100644 --- a/chrome/renderer/pepper_scrollbar_widget.cc +++ b/chrome/renderer/pepper_scrollbar_widget.cc @@ -317,8 +317,8 @@ bool PepperScrollbarWidget::OnMouseWheel(const NPPepperEvent& event) { bool PepperScrollbarWidget::OnKeyDown(const NPPepperEvent& event) { bool rv = true; int key = event.u.key.normalizedKeyCode; - if (vertical_ && key == base::VKEY_UP || - !vertical_ && key == base::VKEY_LEFT) { + 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)) { |