<?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>11360</bug_id>
          
          <creation_ts>2006-10-19 11:44:41 -0700</creation_ts>
          <short_desc>editing/pasteboard/copy-paste-bidi intermittently fails due to disappearance of anonymous RenderBlock</short_desc>
          <delta_ts>2006-10-26 14:24:46 -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>Tools / Tests</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://build.webkit.org/results/post-commit-powerpc-mac-os-x/3925/editing/pasteboard/copy-paste-bidi-diffs.txt</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LayoutTestFailure</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>aroben</cc>
    
    <cc>hyatt</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>mitz</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51786</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2006-10-19 11:44:41 -0700</bug_when>
    <thetext>editing/pasteboard/copy-paste-bidi is sometimes failing with this diff:

@@ -49,7 +49,6 @@
               text run at (0,0) width 32: &quot;1234&quot;
               text run at (32,0) width 36 RTL: &quot;\x{5E9}\x{5D3}\x{5D2}\x{5DB}&quot;
               text run at (68,0) width 4: &quot;:&quot;
-          RenderBlock (anonymous) at (0,18) size 784x0
           RenderBlock {DIV} at (0,18) size 784x18
             RenderText {#text} at (712,0) size 72x18
               text run at (712,0) width 40 RTL: &quot;\x{5E9}\x{5D3}\x{5D2}\x{5DB}:&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51209</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-10-22 12:43:24 -0700</bug_when>
    <thetext>I discovered that the undeterminism enters in ReplaceSelectionCommand::removeRedundantStyles(). The iteration order over the NodeStyleMap (in the for loop) isn&apos;t the same in every run (despite the order of traversal in the while loop that fills up the map being deterministic, of course).

You can probably simply replace the map with two vectors and iterate them simultaneously, to ensure deterministic order. However, you can also consider the current results as indicating two bugs in the rendering code: (a) leftover empty anonymous block(s) and (b) the final render tree depends on the order of operations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51211</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2006-10-22 13:17:41 -0700</bug_when>
    <thetext>Nice detective work, Mitz. I&apos;m CCing hyatt to get his input on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51192</commentid>
    <comment_count>3</comment_count>
      <attachid>11185</attachid>
    <who name="">mitz</who>
    <bug_when>2006-10-22 14:09:57 -0700</bug_when>
    <thetext>Created attachment 11185
Test case showing how empty anonymous blocks can be left behind

This test shows how the render tree can end up with empty anonymous blocks (in the failing layout test, the span is a temporary &quot;Apple style span&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49510</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-10-26 14:24:46 -0700</bug_when>
    <thetext>Fixed in r17311.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11185</attachid>
            <date>2006-10-22 14:09:57 -0700</date>
            <delta_ts>2006-10-22 14:09:57 -0700</delta_ts>
            <desc>Test case showing how empty anonymous blocks can be left behind</desc>
            <filename>leftover anonymous block.html</filename>
            <type>text/html</type>
            <size>310</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KICAgIGZ1bmN0aW9uIHJlbW92ZSgpCiAgICB7CiAgICAgICAgdmFyIHQgPSBkb2N1
bWVudC5nZXRFbGVtZW50QnlJZCgidCIpOwogICAgICAgIHQucGFyZW50Tm9kZS5yZW1vdmVDaGls
ZCh0KTsKICAgIH0KPC9zY3JpcHQ+CjxwPgogICAgQWZ0ZXIgY2xpY2tpbmcgdGhlIGJ1dHRvbiB0
aGVyZSB3aWxsIGJlIGFuIGVtcHR5IGFub255bW91cyBibG9jayBpbiB0aGUgcmVuZGVyIHRyZWUu
CjwvcD4KPGJ1dHRvbiBvbmNsaWNrPSJyZW1vdmUoKSI+UmVtb3ZlPC9idXR0b24+Cjxocj4KPHNw
YW4+PGRpdiBpZD0idCIgLz48L3NwYW4+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>