Chromium Code Reviews| Index: Source/web/WebViewImpl.cpp |
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
| index d8969fa87f73f403da2a3acbbaee6b143a00293c..15059de1c0d82a114dc0fe614e51c5d68cd9d4de 100644 |
| --- a/Source/web/WebViewImpl.cpp |
| +++ b/Source/web/WebViewImpl.cpp |
| @@ -155,7 +155,7 @@ |
| #include "web/DevToolsEmulator.h" |
| #include "web/FullscreenController.h" |
| #include "web/GraphicsLayerFactoryChromium.h" |
| -#include "web/InspectorOverlayImpl.h" |
| +#include "web/InspectorOverlay.h" |
| #include "web/LinkHighlightImpl.h" |
| #include "web/PageOverlay.h" |
| #include "web/PrerendererClientImpl.h" |
| @@ -497,10 +497,10 @@ WebDevToolsAgentImpl* WebViewImpl::mainFrameDevToolsAgentImpl() |
| return mainFrame ? mainFrame->devToolsAgentImpl() : nullptr; |
| } |
| -InspectorOverlayImpl* WebViewImpl::inspectorOverlay() |
| +InspectorOverlay* WebViewImpl::inspectorOverlay() |
| { |
| if (WebDevToolsAgentImpl* devtools = mainFrameDevToolsAgentImpl()) |
| - return static_cast<InspectorOverlayImpl*>(devtools->overlay()); |
| + return static_cast<InspectorOverlay*>(devtools->overlay()); |
|
dgozman
2015/09/22 03:07:36
Remove the cast.
sergeyv
2015/09/22 16:55:38
Done.
|
| return nullptr; |
| } |
| @@ -1901,7 +1901,7 @@ void WebViewImpl::layout() |
| PageWidgetDelegate::layout(*m_page, *mainFrameImpl()->frame()); |
| updateLayerTreeBackgroundColor(); |
| - if (InspectorOverlayImpl* overlay = inspectorOverlay()) |
| + if (InspectorOverlay* overlay = inspectorOverlay()) |
| overlay->layout(); |
| for (size_t i = 0; i < m_linkHighlights.size(); ++i) |
| m_linkHighlights[i]->updateGeometry(); |
| @@ -2086,7 +2086,7 @@ bool WebViewImpl::handleInputEvent(const WebInputEvent& inputEvent) |
| if (m_devToolsEmulator->handleInputEvent(inputEvent)) |
| return true; |
| - if (InspectorOverlayImpl* overlay = inspectorOverlay()) { |
| + if (InspectorOverlay* overlay = inspectorOverlay()) { |
| if (overlay->handleInputEvent(inputEvent)) |
| return true; |
| } |
| @@ -4437,7 +4437,7 @@ void WebViewImpl::updatePageOverlays() |
| { |
| if (m_pageColorOverlay) |
| m_pageColorOverlay->update(); |
| - if (InspectorOverlayImpl* overlay = inspectorOverlay()) { |
| + if (InspectorOverlay* overlay = inspectorOverlay()) { |
| PageOverlay* inspectorPageOverlay = overlay->pageOverlay(); |
| if (inspectorPageOverlay) |
| inspectorPageOverlay->update(); |