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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 1844013002: Fix main thread top controls scrolling to mirror CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertyTreesBoundsDelta
Patch Set: Override top controls resize() in classes that override resize() Created 4 years, 8 months 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: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index 688de4b93bb08a3b1857b97ebd2ecf59ae09c807..80932bddccb2e84422d2c9dcbbd59bf9af16459a 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -153,6 +153,12 @@ WebSize WebFrameWidgetImpl::size()
return m_size;
}
+void WebFrameWidgetImpl::resize(const WebSize& newSize, float, bool)
+{
+ // Widgets don't have top controls so ignore the top control params.
+ resize(newSize);
+}
+
void WebFrameWidgetImpl::resize(const WebSize& newSize)
{
if (m_size == newSize)

Powered by Google App Engine
This is Rietveld 408576698