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

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

Issue 1382593004: Allow out-of-process iframes to update the mouse cursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits addressed Created 5 years, 2 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/InspectorOverlay.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp
index 5f893d824deeb4247a5b3b609c612496341dc245..408b9549ee77ed939b89617b5affec5386c3e715 100644
--- a/third_party/WebKit/Source/web/InspectorOverlay.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp
@@ -138,10 +138,10 @@ public:
EmptyChromeClient::trace(visitor);
}
- void setCursor(const Cursor& cursor) override
+ void setCursor(const Cursor& cursor, LocalFrame* localRoot) override
{
toChromeClientImpl(m_client)->setCursorOverridden(false);
- toChromeClientImpl(m_client)->setCursor(cursor);
+ toChromeClientImpl(m_client)->setCursor(cursor, localRoot);
bool overrideCursor = m_overlay->m_layoutEditor;
toChromeClientImpl(m_client)->setCursorOverridden(overrideCursor);
}
@@ -633,7 +633,7 @@ void InspectorOverlay::overlayClearSelection(bool commitChanges)
highlightNode(m_hoveredNodeForInspectMode.get(), *m_inspectModeHighlightConfig, false);
toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridden(false);
- toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursor(pointerCursor());
+ toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursor(pointerCursor(), overlayMainFrame());
}
void InspectorOverlay::profilingStarted()
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698