<?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>38958</bug_id>
          
          <creation_ts>2010-05-11 17:39:57 -0700</creation_ts>
          <short_desc>Web Inspector: Shorthand Properties Getting Deleted When Editing</short_desc>
          <delta_ts>2010-05-11 22:51:42 -0700</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 (Deprecated)</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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>224293</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-05-11 17:39:57 -0700</bug_when>
    <thetext>Shorthand properties are getting deleted when editing. Very annoying!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224295</commentid>
    <comment_count>1</comment_count>
      <attachid>55786</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-05-11 17:42:57 -0700</bug_when>
    <thetext>Created attachment 55786
[PATCH] Easy Fix

Easy!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224302</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-05-11 17:55:35 -0700</bug_when>
    <thetext>&lt;radr://7972069&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224307</commentid>
    <comment_count>3</comment_count>
      <attachid>55788</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-05-11 17:58:56 -0700</bug_when>
    <thetext>Created attachment 55788
[TEST]: Sample Test Case

Steps to Reproduce:

  1. Open Test Case html file
  2. Right Click + Inspect the Text
  3. Double Click to Edit the margin value
  4. Put cursor by the number
  5. Push Up/Down a few times

Expected Results:
Only the margin should change.

Actual Results:
The margin changes, but after a few increments/decrements the border is deleted, without warning! Deselecting and Reselecting the original node shows that it has disappeared.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224347</commentid>
    <comment_count>4</comment_count>
      <attachid>55786</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2010-05-11 19:41:19 -0700</bug_when>
    <thetext>Comment on attachment 55786
[PATCH] Easy Fix

Consider landing before the CQ gets to it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224398</commentid>
    <comment_count>5</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-05-11 21:51:20 -0700</bug_when>
    <thetext>Thanks for fixing it. Any chance we get a test for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224418</commentid>
    <comment_count>6</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-05-11 22:36:18 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Thanks for fixing it. Any chance we get a test for this?

Do you mean an inspector test? I gave this only a brief thought at the time but figured since it was such a straight forward fix (if shorthand -&gt; getShorthandValue) that I&apos;d just put up the patch.

But, now that you mention it, I think it would be nice to have a patch testing the styles output in general. To catch a case like this style manipulation functions can be run. I&apos;ll land this, because I feel its something urgent (this hits me quite a bit) and open up a follow up bug that styles need more coverage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224423</commentid>
    <comment_count>7</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-05-11 22:51:42 -0700</bug_when>
    <thetext>Committed r59210
	M	WebCore/ChangeLog
	M	WebCore/inspector/front-end/DOMAgent.js
r59210 = 0348fb02fde32b1c173f3f2d1e03f3b0d5662603 (refs/remotes/trunk)
http://trac.webkit.org/changeset/59210</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>55786</attachid>
            <date>2010-05-11 17:42:57 -0700</date>
            <delta_ts>2010-05-11 22:49:11 -0700</delta_ts>
            <desc>[PATCH] Easy Fix</desc>
            <filename>fix.patch</filename>
            <type>text/plain</type>
            <size>1374</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
YzZkYjAyMS4uNGU0ZDJlNiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTIsNiArMiwxNiBAQAogCiAgICAgICAgIFJldmlld2VkIGJ5IE5P
Qk9EWSAoT09QUyEpLgogCisgICAgICAgIFdlYiBJbnNwZWN0b3I6IFNob3J0aGFuZCBQcm9wZXJ0
aWVzIEdldHRpbmcgRGVsZXRlZCBXaGVuIEVkaXRpbmcKKyAgICAgICAgaHR0cHM6Ly9idWdzLndl
YmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTM4OTU4CisKKyAgICAgICAgKiBpbnNwZWN0b3IvZnJv
bnQtZW5kL0RPTUFnZW50LmpzOgorIC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vcnRoYW5kVmFsdWUoc2hvcnRoYW5kUHJvcGVy
dHkpOwogICAgICAgICAgICAgICAgIHZhciBwcmlvcml0eSA9IHRoaXMuZ2V0U2hvcnRoYW5kUHJp
b3JpdHkoc2hvcnRoYW5kUHJvcGVydHkpOwogICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAg
ICAgICAgICB2YXIgdmFsdWUgPSB0aGlzLmdldFByb3BlcnR5VmFsdWUoaW5kaXZpZHVhbFByb3Bl
cnR5KTsK
</data>
<flag name="review"
          id="40054"
          type_id="1"
          status="+"
          setter="timothy"
    />
    <flag name="commit-queue"
          id="40055"
          type_id="3"
          status="-"
          setter="joepeck"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>55788</attachid>
            <date>2010-05-11 17:58:56 -0700</date>
            <delta_ts>2010-05-11 17:58:56 -0700</delta_ts>
            <desc>[TEST]: Sample Test Case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>89</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">PHN0eWxlPgpoMSB7CiAgICBib3JkZXI6IDFweCBzb2xpZCByZWQ7CiAgICBtYXJnaW46IDEwcHg7
Cn0KPC9zdHlsZT4KPGgxPkhlbGxvIFdvcmxkPC9oMT4=
</data>

          </attachment>
      

    </bug>

</bugzilla>