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

Unified Diff: Source/WebKit/chromium/src/ChromeClientImpl.cpp

Issue 8714006: Add autoresize capability for Chromium. (Closed) Base URL: http://git.chromium.org/external/WebKit_trimmed.git@master
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/src/ChromeClientImpl.cpp
diff --git a/Source/WebKit/chromium/src/ChromeClientImpl.cpp b/Source/WebKit/chromium/src/ChromeClientImpl.cpp
index 146584bd9576c61020763703521d67d6c5d998eb..0775eed13074316b9ca784bb5997c2d740992dd0 100644
--- a/Source/WebKit/chromium/src/ChromeClientImpl.cpp
+++ b/Source/WebKit/chromium/src/ChromeClientImpl.cpp
@@ -549,6 +549,14 @@ IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const
return screenRect;
}
+void ChromeClientImpl::layoutBeforeScrollbarUpdate(WebCore::Frame* frame)
+{
+ if (m_webView->mainFrameImpl()->frame() != frame)
+ return;
+
+ m_webView->layoutBeforeScrollbarUpdate();
+}
+
void ChromeClientImpl::contentsSizeChanged(Frame* frame, const IntSize& size) const
{
WebFrameImpl* webframe = WebFrameImpl::fromFrame(frame);
@@ -558,9 +566,7 @@ void ChromeClientImpl::contentsSizeChanged(Frame* frame, const IntSize& size) co
void ChromeClientImpl::layoutUpdated(Frame* frame) const
{
- WebFrameImpl* webframe = WebFrameImpl::fromFrame(frame);
- if (webframe->client())
- webframe->client()->didUpdateLayout(webframe);
+ m_webView->didUpdateLayout(WebFrameImpl::fromFrame(frame));
}
void ChromeClientImpl::scrollbarsModeDidChange() const

Powered by Google App Engine
This is Rietveld 408576698