Web Inspector: Regression: Showing of color swatches no longer works in Details Sidebar
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / CSSStyleDeclarationTextEditor.js
index 93dbe9d3eb7c33a843a42fe41784df8f3fe5fff1..703c95bc059cc2721a3b55b3084cd8c4fa068251 100644 (file)
@@ -393,6 +393,7 @@ WebInspector.CSSStyleDeclarationTextEditor = class CSSStyleDeclarationTextEditor
                 swatchElement.appendChild(swatchInnerElement);
 
                 var codeMirrorTextMarker = marker.codeMirrorTextMarker;
+                this._codeMirror.setUniqueBookmark(codeMirrorTextMarker.find().from, swatchElement);
 
                 swatchInnerElement.__colorTextMarker = codeMirrorTextMarker;
                 swatchInnerElement.__color = color;