Index: Source/web/InspectorOverlayImpl.cpp |
diff --git a/Source/web/InspectorOverlayImpl.cpp b/Source/web/InspectorOverlayImpl.cpp |
index 0e6f2514deed832b47e9e5de00aa56227d789b51..856dc26a7cfca1288a6509b9f0823969e939516c 100644 |
--- a/Source/web/InspectorOverlayImpl.cpp |
+++ b/Source/web/InspectorOverlayImpl.cpp |
@@ -363,7 +363,7 @@ void InspectorOverlayImpl::drawNodeHighlight() |
RefPtr<JSONObject> highlightJSON = highlight.asJSONObject(); |
evaluateInOverlay("drawHighlight", highlightJSON.release()); |
- if (m_layoutEditor) { |
+ if (m_layoutEditor && m_nodeHighlightConfig.showLayoutEditor) { |
RefPtr<JSONObject> layoutEditorInfo = m_layoutEditor->buildJSONInfo(); |
if (layoutEditorInfo) |
evaluateInOverlay("showLayoutEditor", layoutEditorInfo.release()); |