<?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>51632</bug_id>
          
          <creation_ts>2010-12-26 23:37:27 -0800</creation_ts>
          <short_desc>Pass style for &lt;area&gt; instead of associated &lt;img&gt; when querying whether the theme draws the focus ring for an &lt;area&gt;</short_desc>
          <delta_ts>2010-12-31 16:37:08 -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>PC</rep_platform>
          <op_sys>OS X 10.5</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="Daniel Bates">dbates</reporter>
          <assigned_to name="Daniel Bates">dbates</assigned_to>
          <cc>eric</cc>
    
    <cc>hyatt</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>326986</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-12-26 23:37:27 -0800</bug_when>
    <thetext>We should pass the style of the focused &lt;area&gt; to RenderTheme::supportsFocusRing() to determine whether theme is responsible for painting focus rings for &lt;area&gt;s. Currently, we pass the style of the &lt;img&gt; associated with the focused &lt;area&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326987</commentid>
    <comment_count>1</comment_count>
      <attachid>77481</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-12-26 23:39:31 -0800</bug_when>
    <thetext>Created attachment 77481
Patch

It&apos;s not possible to test this at this time since there are no themes that override focus ring drawing for &lt;area&gt;s.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>327360</commentid>
    <comment_count>2</comment_count>
      <attachid>77481</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-28 14:03:45 -0800</bug_when>
    <thetext>Comment on attachment 77481
Patch

If its not posible to test this, why make the change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>327924</commentid>
    <comment_count>3</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-12-30 07:34:01 -0800</bug_when>
    <thetext>+2010-12-26  Daniel Bates  &lt;dbates@rim.com@rim.com&gt;

Dan, please fix your email before landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>327940</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-12-30 09:15:41 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 77481 [details])
&gt; If its not posible to test this, why make the change?

I spoke with Eric Seidel on IRC on 12/28/10 about this:

[3:22pm] dydz: eseidel: hi. With regards to &lt;https://bugs.webkit.org/show_bug.cgi?id=51632&gt; I thought to make this change for correctness
[3:23pm] dydz: Although, you&apos;re right the move does not have any impact at this time
[3:23pm] dydz: Maybe it is sufficient to just keep the bug around to remember to move this should someone what to detect &lt;area&gt;s
[3:24pm] dydz: *want to detect &lt;area&gt;s and do custom focus ring drawing
[3:25pm] dydz: Notice, &lt;img&gt;s do not have a concept of a focus ring since they are not focusable. It is the &lt;area&gt; element this is focusable.
[3:28pm] dydz: eseidel: That being said, would you suggest we don&apos;t make this change at this time?
[3:29pm] eseidel: dydz: I&apos;m just not sure what it&apos;s doing or why 
[3:31pm] dydz: eseidel: It&apos;s a semantic change based on the idea that when drawing a focus ring for an image map we are really drawing a focus ring for an &lt;area&gt; not an &lt;img&gt; (see &lt;http://www.w3.org/TR/html5/the-map-element.html#the-area-element&gt;)
[3:32pm] eseidel: dydz: ok.  so I would just leave it up for review and forget about ti.  eventually hyatt or someone will look</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>327941</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-12-30 09:16:04 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; +2010-12-26  Daniel Bates  &lt;dbates@rim.com@rim.com&gt;
&gt; 
&gt; Dan, please fix your email before landing.

Thanks for pointing this out. Will fix before landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>328230</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-12-31 16:37:08 -0800</bug_when>
    <thetext>Committed r74839: &lt;http://trac.webkit.org/changeset/74839&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>77481</attachid>
            <date>2010-12-26 23:39:31 -0800</date>
            <delta_ts>2010-12-29 17:16:59 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>Bug51632.patch</filename>
            <type>text/plain</type>
            <size>2604</size>
            <attacher name="Daniel Bates">dbates</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA3NDY3OCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMjIgQEAKKzIwMTAtMTItMjYgIERhbmllbCBCYXRlcyAgPGRiYXRlc0ByaW0uY29t
QHJpbS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAg
ICAgUGFzcyBz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WFzID0gYXJlYXMtPmxlbmd0aCgpOwotCi0gICAgaWYgKHRo
ZW1lKCktPnN1cHBvcnRzRm9jdXNSaW5nKHN0eWxlKSkKLSAgICAgICAgcmV0dXJuOyAvLyBUaGUg
dGhlbWUgZHJhd3MgdGhlIGZvY3VzIHJpbmcuCiAgICAgCiAgICAgLy8gRklYTUU6IENsaXAgdGhl
IHBhdGhzIHRvIHRoZSBpbWFnZSBib3VuZGluZyBib3guCiAgICAgZm9yICh1bnNpZ25lZCBrID0g
MDsgayA8IG51bUFyZWFzOyArK2spIHsKQEAgLTM1OSw2ICszNTYsOCBAQCB2b2lkIFJlbmRlcklt
YWdlOjpwYWludEZvY3VzUmluZyhQYWludEluCiAgICAgICAgICAgICBjb250aW51ZTsKIAogICAg
ICAgICBSZW5kZXJTdHlsZSogc3R5bGVUb1VzZSA9IGFyZWFFbGVtZW50LT5jb21wdXRlZFN0eWxl
KCk7CisgICAgICAgIGlmICh0aGVtZSgpLT5zdXBwb3J0c0ZvY3VzUmluZyhzdHlsZVRvVXNlKSkK
KyAgICAgICAgICAgIHJldHVybjsgLy8gVGhlIHRoZW1lIGRyYXdzIHRoZSBmb2N1cyByaW5nLgog
ICAgICAgICBwYWludEluZm8uY29udGV4dC0+ZHJhd0ZvY3VzUmluZyhhcmVhRWxlbWVudC0+Z2V0
UGF0aCh0aGlzKSwgc3R5bGVUb1VzZS0+b3V0bGluZVdpZHRoKCksIHN0eWxlVG9Vc2UtPm91dGxp
bmVPZmZzZXQoKSwgc3R5bGVUb1VzZS0+dmlzaXRlZERlcGVuZGVudENvbG9yKENTU1Byb3BlcnR5
T3V0bGluZUNvbG9yKSk7CiAgICAgICAgIGJyZWFrOwogICAgIH0K
</data>
<flag name="review"
          id="68614"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>