summaryrefslogtreecommitdiffstats
path: root/content/browser/tab_contents
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-10 21:07:14 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-10 21:07:14 +0000
commitb3d206f9830087e74593505f361cb07a081fb22c (patch)
tree7a5c39f4e5e40fcd7cd47b67ca4a6839dbd65937 /content/browser/tab_contents
parentf2a57883ebd85748688e4a5f1d133a06e4ae5cee (diff)
downloadchromium_src-b3d206f9830087e74593505f361cb07a081fb22c.zip
chromium_src-b3d206f9830087e74593505f361cb07a081fb22c.tar.gz
chromium_src-b3d206f9830087e74593505f361cb07a081fb22c.tar.bz2
Merge 121354 - Fix broken resize box appearance after download shelf open/close.
The issue was that currently only a WasResized() message updates the resize corner information in WebKit, but if the download shelf opens, the web contents don't necessarily get resized. As a fix, add an IPC to explicitly update the resize rect, and call this when the download shelf opens/closes, and when a TabContents object becomes active. Depends on https://bugs.webkit.org/show_bug.cgi?id=77453 BUG=111266 TEST=open page with scrollbar, save it. no resize corner in web. switch to background tab with scrollbar, no resize corner there either. close download shelf, resize corner doesn't overlap scrollbar. back to first tab, there neither. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120282 Review URL: https://chromiumcodereview.appspot.com/9159057 TBR=thakis@chromium.org Review URL: https://chromiumcodereview.appspot.com/9380020 git-svn-id: svn://svn.chromium.org/chrome/branches/1025/src@121531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/tab_contents')
-rw-r--r--content/browser/tab_contents/tab_contents.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 78b8024..73b4301c 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -612,6 +612,13 @@ void TabContents::DidBecomeSelected() {
last_selected_time_ = base::TimeTicks::Now();
FOR_EACH_OBSERVER(WebContentsObserver, observers_, DidBecomeSelected());
+
+ // The resize rect might have changed while this was inactive -- send the new
+ // one to make sure it's up to date.
+ RenderViewHost* rvh = GetRenderViewHost();
+ if (rvh) {
+ rvh->ResizeRectChanged(GetRootWindowResizerRect());
+ }
}