<?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>33625</bug_id>
          
          <creation_ts>2010-01-13 14:58:33 -0800</creation_ts>
          <short_desc>CounterNode::nextInPreOrderAfterChildren(stayWithin) does not stay within.</short_desc>
          <delta_ts>2010-01-13 19:30:52 -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>Layout and Rendering</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>11031</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Carol Szabo">carol</reporter>
          <assigned_to name="Carol Szabo">carol</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>180419</commentid>
    <comment_count>0</comment_count>
    <who name="Carol Szabo">carol</who>
    <bug_when>2010-01-13 14:58:33 -0800</bug_when>
    <thetext>The same problem that bug 33600 reported about RenderObject is being inherited by virtue of copy-paste programing here.
If stayWithin has a nextSibling() the method returns it instead of null when called on stayWithin&apos;s last descendant, hence causing an iteration of the counterTree designed to stay within stayWithin&apos;s descendants, iterates to the end of the counterTree.

Patch to come soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180440</commentid>
    <comment_count>1</comment_count>
      <attachid>46517</attachid>
    <who name="Carol Szabo">carol</who>
    <bug_when>2010-01-13 16:00:49 -0800</bug_when>
    <thetext>Created attachment 46517
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180517</commentid>
    <comment_count>2</comment_count>
      <attachid>46517</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-01-13 19:30:46 -0800</bug_when>
    <thetext>Comment on attachment 46517
Proposed patch

Clearing flags on attachment: 46517

Committed r53230: &lt;http://trac.webkit.org/changeset/53230&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180518</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-01-13 19:30:52 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>46517</attachid>
            <date>2010-01-13 16:00:49 -0800</date>
            <delta_ts>2010-01-13 19:30:46 -0800</delta_ts>
            <desc>Proposed patch</desc>
            <filename>patchFor33625-1.patch</filename>
            <type>text/plain</type>
            <size>1614</size>
            <attacher name="Carol Szabo">carol</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1MzIxMCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTUgQEAKKzIwMTAtMDEtMTMgIENhcm9sIFN6YWJvIDxjYXJvbC5zemFib0Bub2tp
YS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAg
Q291bnRlck5vZGU6Om5leHRJblByZU9yZGVyQWZ0ZXJDaGlsZHJlbihzdGF5V2l0aG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AgICAgICAgaWYgKG5leHQgPT0gc3RheVdpdGhpbikKKyAgICBjb25zdCBD
b3VudGVyTm9kZSogY3VycmVudCA9IHRoaXM7CisgICAgQ291bnRlck5vZGUqIG5leHQ7CisgICAg
d2hpbGUgKCEobmV4dCA9IGN1cnJlbnQtPm1fbmV4dFNpYmxpbmcpKSB7CisgICAgICAgIGN1cnJl
bnQgPSBjdXJyZW50LT5tX3BhcmVudDsKKyAgICAgICAgaWYgKCFjdXJyZW50IHx8IGN1cnJlbnQg
PT0gc3RheVdpdGhpbikKICAgICAgICAgICAgIHJldHVybiAwOwotICAgICAgICBuZXh0ID0gbmV4
dC0+bV9wYXJlbnQ7CiAgICAgfQotICAgIGlmIChuZXh0KQotICAgICAgICByZXR1cm4gbmV4dC0+
bV9uZXh0U2libGluZzsKLSAgICByZXR1cm4gMDsKKyAgICByZXR1cm4gbmV4dDsKIH0KIAogQ291
bnRlck5vZGUqIENvdW50ZXJOb2RlOjpuZXh0SW5QcmVPcmRlcihjb25zdCBDb3VudGVyTm9kZSog
c3RheVdpdGhpbikgY29uc3QK
</data>

          </attachment>
      

    </bug>

</bugzilla>