Commit 4c2a7593 authored by apavlov@chromium.org's avatar apavlov@chromium.org

Web Inspector: [CRASH] InspectorDOMAgent::updateTouchEventEmulationInPage()

https://bugs.webkit.org/show_bug.cgi?id=78090

Reviewed by Vsevolod Vlasov.

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::updateTouchEventEmulationInPage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b90a213d
2012-02-08 Alexander Pavlov <apavlov@chromium.org>
Web Inspector: [CRASH] InspectorDOMAgent::updateTouchEventEmulationInPage()
https://bugs.webkit.org/show_bug.cgi?id=78090
Reviewed by Vsevolod Vlasov.
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::updateTouchEventEmulationInPage):
2012-02-07 Alexander Pavlov <apavlov@chromium.org>
Web Inspector: Closed computed style sidebar pane rebuilds, resulting in slowness
......@@ -640,7 +640,8 @@ void InspectorDOMAgent::discardBindings()
void InspectorDOMAgent::updateTouchEventEmulationInPage(bool enabled)
{
m_state->setBoolean(DOMAgentState::touchEventEmulationEnabled, enabled);
m_pageAgent->mainFrame()->settings()->setTouchEventEmulationEnabled(enabled);
if (m_pageAgent->mainFrame() && m_pageAgent->mainFrame()->settings())
m_pageAgent->mainFrame()->settings()->setTouchEventEmulationEnabled(enabled);
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment