diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 02:32:42 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 02:32:42 +0000 |
commit | 0cde55895ade17764ae100c28e9bd7112458333b (patch) | |
tree | 29964641ee4514a93163b2a804207e5493052578 /views/controls/scroll_view.cc | |
parent | d5c409747ee1f24ee1eae50d4869922c38cf5a12 (diff) | |
download | chromium_src-0cde55895ade17764ae100c28e9bd7112458333b.zip chromium_src-0cde55895ade17764ae100c28e9bd7112458333b.tar.gz chromium_src-0cde55895ade17764ae100c28e9bd7112458333b.tar.bz2 |
It turns out I had the sense of the GetLocalBounds bool wrong everywhere, so invert everything.
This fixes the painting bugs in the omnibox and bookmark bar, and probably countless other glitches in rendering.
BUG=none
TEST=omnibox popup should render properly
TBR=sky
Review URL: http://codereview.chromium.org/6462022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74231 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/scroll_view.cc')
-rw-r--r-- | views/controls/scroll_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/controls/scroll_view.cc b/views/controls/scroll_view.cc index ecaf3e2..79183da 100644 --- a/views/controls/scroll_view.cc +++ b/views/controls/scroll_view.cc @@ -147,7 +147,7 @@ void ScrollView::Layout() { // override this default behavior, the inner view has to calculate the // available space, used ComputeScrollBarsVisibility() to use the same // calculation that is done here and sets its bound to fit within. - gfx::Rect viewport_bounds = GetContentsBounds(); + gfx::Rect viewport_bounds = GetLocalBounds(); // Realign it to 0 so it can be used as-is for SetBounds(). viewport_bounds.set_origin(gfx::Point(0, 0)); // viewport_size is the total client space available. |