<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>129096</bug_id>
          
          <creation_ts>2014-02-20 04:13:43 -0800</creation_ts>
          <short_desc>Web Inspector: gradients in the Styles sidebar aren&apos;t editable using the dedicated gradients editor</short_desc>
          <delta_ts>2017-02-13 00:46:31 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>119686</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Antoine Quint">graouts</assigned_to>
          <cc>bburg</cc>
    
    <cc>graouts</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>982783</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2014-02-20 04:13:43 -0800</bug_when>
    <thetext>The patch for https://bugs.webkit.org/show_bug.cgi?id=119686 will provide a new gradients editor but it only works as part of SourceCodeTextEditor and not CSSStyleDeclarationTextEditor. We should add support for such editors in CSSStyleDeclarationTextEditor as well and possibly adopt the CodeMirrorColorEditingController for editing colours as well so that SourceCodeTextEditor and CSSStyleDeclarationTextEditor are more alike.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>982784</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-02-20 04:13:54 -0800</bug_when>
    <thetext>&lt;rdar://problem/16120224&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>983208</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2014-02-21 08:14:34 -0800</bug_when>
    <thetext>I wonder if we could refactor SourceCodeTextEditor and CSSStyleDeclarationTextEditor to share some CodeMirrorTokenTrackingController and CodeMirrorEditingController logic to implement the basic behaviour implemented in SourceCodeTextEditor across both editors. I think basically we&apos;d have a new helper object which we&apos;d notify when the editor hides, has its content populated or changed, and have basic handlers for tokenTrackingControllerNewHighlightCandidate and tokenTrackingControllerMouseOutOfHoveredMarker that do the work. Then the CodeMirrorEditingController delegates would be implemented by this helper object as well and the editor classes would have little knowledge of CodeMirrorEditingController.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>983936</commentid>
    <comment_count>3</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2014-02-24 09:56:50 -0800</bug_when>
    <thetext>A unified controller that SourceCodeTextEditor and CSSStyleDeclarationTextEditor uses to share the editing logic seems good to me.

One thing we need to consider is how to support changing the color format if the swatch isn&apos;t there. This makes having a menu in HoverMenu for colors appealing, since you could have menu items for the other formats (with the current one having a checkmark).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>983945</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2014-02-24 10:44:43 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; One thing we need to consider is how to support changing the color format if the swatch isn&apos;t there. This makes having a menu in HoverMenu for colors appealing, since you could have menu items for the other formats (with the current one having a checkmark).

Good point, I&apos;ll look into implementing that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1275405</commentid>
    <comment_count>5</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2017-02-10 10:53:46 -0800</bug_when>
    <thetext>I am pretty sure that this is no longer an issue, right? We can edit gradients in the style sidebar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1276130</commentid>
    <comment_count>6</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2017-02-13 00:46:31 -0800</bug_when>
    <thetext>Yeah, I can confirm that this has been fixed. Very nice!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>