Fixed problem that BS occurs when debugging by remote web inspector
authorbunam.jeon <bunam.jeon@samsung.com>
Thu, 10 Oct 2013 12:00:15 +0000 (21:00 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 10 Oct 2013 13:35:14 +0000 (13:35 +0000)
[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

Source/WebCore/inspector/DOMNodeHighlighter.cpp
Source/WebCore/inspector/DOMNodeHighlighter.h
Source/WebCore/inspector/InspectorDOMAgent.cpp

index 32bcc7f..00fb9b1 100644 (file)
@@ -557,7 +557,14 @@ void InspectorOverlay::clearHighlightData()
     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;
index a200ccc..7464f6b 100644 (file)
@@ -95,7 +95,9 @@ public:
     void highlightNode(Node*);
     void setHighlightData(PassOwnPtr<HighlightData>);
     void clearHighlightData();
-
+#if ENABLE(TIZEN_REMOTE_WEB_INSPECTOR)
+    void clearOverlayData();
+#endif
     Node* highlightedNode() const;
 
 private:
index 91a3831..20289c2 100644 (file)
@@ -1075,7 +1075,11 @@ void InspectorDOMAgent::highlightFrame(
 
 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)