<?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>37011</bug_id>
          
          <creation_ts>2010-04-01 22:23:45 -0700</creation_ts>
          <short_desc>Position::primaryDirection() should not use its own accessor.</short_desc>
          <delta_ts>2010-04-02 17:38:38 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</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>P5</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Hajime Morrita">morrita</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>207672</commentid>
    <comment_count>0</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2010-04-01 22:23:45 -0700</bug_when>
    <thetext>Position::primaryDirection() uses Position::node(), which should be replaced with accessing Position::m_anchorNode directly.
This bug is to take the feedback on Bug 36948, whose patch was accidentally landed before tiny cleanup.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>207674</commentid>
    <comment_count>1</comment_count>
      <attachid>52379</attachid>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2010-04-01 22:28:16 -0700</bug_when>
    <thetext>Created attachment 52379
v0; small cleanup only</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>207719</commentid>
    <comment_count>2</comment_count>
      <attachid>52379</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-04-01 23:41:41 -0700</bug_when>
    <thetext>Comment on attachment 52379
v0; small cleanup only

Why is this better?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208133</commentid>
    <comment_count>3</comment_count>
      <attachid>52379</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-04-02 16:21:06 -0700</bug_when>
    <thetext>Comment on attachment 52379
v0; small cleanup only

r=me

That&apos;s just the preferred style. One thing this helps with is making debugging easier - you don&apos;t need to step into accessor functions that much.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208184</commentid>
    <comment_count>4</comment_count>
      <attachid>52379</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-02 17:38:34 -0700</bug_when>
    <thetext>Comment on attachment 52379
v0; small cleanup only

Clearing flags on attachment: 52379

Committed r57037: &lt;http://trac.webkit.org/changeset/57037&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208185</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-02 17:38:38 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>52379</attachid>
            <date>2010-04-01 22:28:16 -0700</date>
            <delta_ts>2010-04-02 17:38:34 -0700</delta_ts>
            <desc>v0; small cleanup only</desc>
            <filename>bug-37011-20100402142814.patch</filename>
            <type>text/plain</type>
            <size>1305</size>
            <attacher name="Hajime Morrita">morrita</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ZWE1Njg1ZC4uZjYwNzZkNSAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaG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