[Title] Fixed problem that BS occurs when debugging by remote web inspector
[Issue#] N_SE-54920
[Problem] BS occurs when debugging by remote web inspector
[Cause] Overlay data has not been deleted when exit the app. So an operation to highlight the node and crash.
[Solution] Overlay data clear when exit the app.
Change-Id: I18380169d049c725aec65891bae77900959ca824
m_highlightData.clear();
update();
}
-
+#if ENABLE(TIZEN_REMOTE_WEB_INSPECTOR)
+void InspectorOverlay::clearOverlayData()
+{
+ m_highlightData.clear();
+ m_pausedInDebuggerMessage = String();
+ update();
+}
+#endif
Node* InspectorOverlay::highlightedNode() const
{
return m_highlightData ? m_highlightData->node.get() : 0;
void highlightNode(Node*);
void setHighlightData(PassOwnPtr<HighlightData>);
void clearHighlightData();
-
+#if ENABLE(TIZEN_REMOTE_WEB_INSPECTOR)
+ void clearOverlayData();
+#endif
Node* highlightedNode() const;
private:
void InspectorDOMAgent::hideHighlight(ErrorString*)
{
+#if ENABLE(TIZEN_REMOTE_WEB_INSPECTOR)
+ m_overlay->clearOverlayData();
+#else
m_overlay->hideHighlight();
+#endif
}
void InspectorDOMAgent::moveTo(ErrorString* errorString, int nodeId, int targetElementId, const int* const anchorNodeId, int* newNodeId)