<?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>7692</bug_id>
          
          <creation_ts>2006-03-09 21:49:48 -0800</creation_ts>
          <short_desc>Should use an iterator in CompositeEditCommand::doUnapply()</short_desc>
          <delta_ts>2006-03-09 23:35:03 -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>HTML Editing</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Justin Garcia">justin.garcia</reporter>
          <assigned_to name="Justin Garcia">justin.garcia</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35671</commentid>
    <comment_count>0</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-03-09 21:49:48 -0800</bug_when>
    <thetext>About 25% of the time during an Undo is spent getting the ith EditCommand out of m_cmds:

    for (int i = m_cmds.count() - 1; i &gt;= 0; --i)
        m_cmds[i]-&gt;unapply();

We should use an iterator.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35674</commentid>
    <comment_count>1</comment_count>
      <attachid>6974</attachid>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-03-09 21:57:08 -0800</bug_when>
    <thetext>Created attachment 6974
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35677</commentid>
    <comment_count>2</comment_count>
      <attachid>6974</attachid>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-03-09 22:38:08 -0800</bug_when>
    <thetext>Comment on attachment 6974
patch

Assuming all tests pass, r=me.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>6974</attachid>
            <date>2006-03-09 21:57:08 -0800</date>
            <delta_ts>2006-03-09 22:38:08 -0800</delta_ts>
            <desc>patch</desc>
            <filename>7692.txt</filename>
            <type>text/plain</type>
            <size>892</size>
            <attacher name="Justin Garcia">justin.garcia</attacher>
            
              <data encoding="base64">SW5kZXg6IENvbXBvc2l0ZUVkaXRDb21tYW5kLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDb21wb3NpdGVF
ZGl0Q29tbWFuZC5jcHAJKHJldmlzaW9uIDEzMjI0KQorKysgQ29tcG9zaXRlRWRpdENvbW1hbmQu
Y3BwCSh3b3JraW5nIGNvcHkpCkBAIC02OCwyMSArNjgsMjAgQEAKIAogdm9pZCBDb21wb3NpdGVF
ZGl0Q29tbWFuZDo6ZG9VbmFwcGx5KCkKIHsKLSAgICBpZiAobV9jbWRzLmNvdW50KCkgPT0gMCkg
eworICAgIGlmIChtX2NtZHMuY291bnQoKSA9PSAwKQogICAgICAgICByZXR1cm47Ci0gICAgfQog
ICAgIAotICAgIGZvciAoaW50IGkgPSBtX2NtZHMuY291bnQoKSAtIDE7IGkgPj0gMDsgLS1pKQot
ICAgICAgICBtX2NtZHNbaV0tPnVuYXBwbHkoKTsKKyAgICBRVmFsdWVMaXN0PEVkaXRDb21tYW5k
UHRyPjo6Q29uc3RJdGVyYXRvciBlbmQ7CisgICAgZm9yIChRVmFsdWVMaXN0PEVkaXRDb21tYW5k
UHRyPjo6Q29uc3RJdGVyYXRvciBpdCA9IG1fY21kcy5mcm9tTGFzdCgpOyBpdCAhPSBlbmQ7IC0t
aXQpCisgICAgICAgICgqaXQpLT51bmFwcGx5KCk7CiAKICAgICBzZXRTdGF0ZShOb3RBcHBsaWVk
KTsKIH0KIAogdm9pZCBDb21wb3NpdGVFZGl0Q29tbWFuZDo6ZG9SZWFwcGx5KCkKIHsKLSAgICBp
ZiAobV9jbWRzLmNvdW50KCkgPT0gMCkgeworICAgIGlmIChtX2NtZHMuY291bnQoKSA9PSAwKQog
ICAgICAgICByZXR1cm47Ci0gICAgfQogCiAgICAgZm9yIChRVmFsdWVMaXN0PEVkaXRDb21tYW5k
UHRyPjo6Q29uc3RJdGVyYXRvciBpdCA9IG1fY21kcy5iZWdpbigpOyBpdCAhPSBtX2NtZHMuZW5k
KCk7ICsraXQpCiAgICAgICAgICgqaXQpLT5yZWFwcGx5KCk7Cg==
</data>
<flag name="review"
          id="1808"
          type_id="1"
          status="+"
          setter="adele"
    />
          </attachment>
      

    </bug>

</bugzilla>