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

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

Issue 12224049: Merge 140539 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 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: Source/WebCore/inspector/InspectorFrontendClientLocal.cpp
===================================================================
--- Source/WebCore/inspector/InspectorFrontendClientLocal.cpp (revision 142083)
+++ Source/WebCore/inspector/InspectorFrontendClientLocal.cpp (working copy)
@@ -166,7 +166,7 @@
{
// Don't allow the attach if the window would be too small to accommodate the minimum inspector height.
// Also don't allow attaching to another inspector -- two inspectors in one window is too much!
- bool isInspectorPage = m_inspectorController->inspectedPage()->inspectorController()->hasInspectorFrontendClient();
+ bool isInspectorPage = m_inspectorController->hasInspectorFrontendClient();
unsigned inspectedPageHeight = m_inspectorController->inspectedPage()->mainFrame()->view()->visibleHeight();
unsigned maximumAttachedHeight = inspectedPageHeight * maximumAttachedHeightRatio;
return minimumAttachedHeight <= maximumAttachedHeight && !isInspectorPage;
@@ -297,6 +297,11 @@
m_dispatchTask->dispatch(message);
}
+bool InspectorFrontendClientLocal::isUnderTest()
+{
+ return m_inspectorController->isUnderTest();
+}
+
bool InspectorFrontendClientLocal::evaluateAsBoolean(const String& expression)
{
if (!m_frontendPage->mainFrame())
« no previous file with comments | « Source/WebCore/inspector/InspectorFrontendClientLocal.h ('k') | Source/WebCore/inspector/InspectorFrontendHost.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698