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

Unified Diff: Source/WebCore/inspector/InspectorPageAgent.cpp

Issue 11415147: Merge 135571 - Web Inspector: inspector overlay is always updated when inspector is open (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 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
« no previous file with comments | « Source/WebCore/inspector/InspectorPageAgent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/InspectorPageAgent.cpp
===================================================================
--- Source/WebCore/inspector/InspectorPageAgent.cpp (revision 135818)
+++ Source/WebCore/inspector/InspectorPageAgent.cpp (working copy)
@@ -370,6 +370,12 @@
}
}
+void InspectorPageAgent::webViewResized(const IntSize& size)
+{
+ int currentWidth = static_cast<int>(m_state->getLong(PageAgentState::pageAgentScreenWidthOverride));
+ m_overlay->resize(currentWidth ? size : IntSize());
+}
+
void InspectorPageAgent::enable(ErrorString*)
{
m_enabled = true;
« no previous file with comments | « Source/WebCore/inspector/InspectorPageAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698