<?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>10049</bug_id>
          
          <creation_ts>2006-07-21 11:54:32 -0700</creation_ts>
          <short_desc>REGRESSION: thick focus ring is drawn around popup menus</short_desc>
          <delta_ts>2021-01-30 06:35:17 -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>Forms</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.superbus.co.il</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>andersca</cc>
    
    <cc>dev+webkit</cc>
    
    <cc>emacemac7</cc>
    
    <cc>jonathanjohnsson</cc>
    
    <cc>jonlee</cc>
    
    <cc>joost</cc>
    
    <cc>mbritto</cc>
    
    <cc>mitz</cc>
    
    <cc>myyodo</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50496</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-21 11:54:32 -0700</bug_when>
    <thetext>Steps to reproduce:

1) Open &lt;http://www.superbus.co.il&gt;.
2) Open and close one of the popup menus in the top menu.

Results: the focus ring apparently gets drawn multiple times, so it becomes solid color.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50520</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-07-21 19:47:31 -0700</bug_when>
    <thetext>Wow, that&apos;s a really neat effect!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51511</commentid>
    <comment_count>2</comment_count>
      <attachid>9842</attachid>
    <who name="">jonathanjohnsson</who>
    <bug_when>2006-08-02 17:36:56 -0700</bug_when>
    <thetext>Created attachment 9842
Test case reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51512</commentid>
    <comment_count>3</comment_count>
    <who name="">jonathanjohnsson</who>
    <bug_when>2006-08-02 17:40:20 -0700</bug_when>
    <thetext>Changing to &quot;HasReduction&quot;, even if it might be possible to make the current one shorter. I fiddled with it quite a bit without being able to reduce it more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46680</commentid>
    <comment_count>4</comment_count>
    <who name="Stephanie Lewis">slewis</who>
    <bug_when>2006-11-06 18:48:40 -0800</bug_when>
    <thetext>radar 4769769</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34186</commentid>
    <comment_count>5</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2007-01-19 04:50:08 -0800</bug_when>
    <thetext>Why is this P1? Moving to P2...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34187</commentid>
    <comment_count>6</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2007-01-19 04:51:19 -0800</bug_when>
    <thetext>And I did notice that it&apos;s a regression, yet, somehow this doesn&apos;t seem that much of a priority to me :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9788</commentid>
    <comment_count>7</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-05-16 23:37:00 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; And I did notice that it&apos;s a regression, yet, somehow this doesn&apos;t seem that
&gt; much of a priority to me :)
&gt; 

A variant of this bug, with a search field instead of a popup, affects &lt;http://www.apple.com/buy/locator/&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9785</commentid>
    <comment_count>8</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-05-16 23:42:20 -0700</bug_when>
    <thetext>Regression = p1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2751</commentid>
    <comment_count>9</comment_count>
      <attachid>15883</attachid>
    <who name="">mitz</who>
    <bug_when>2007-08-09 10:52:42 -0700</bug_when>
    <thetext>Created attachment 15883
Test case

This test case demonstrates that the overpainting happens when WebHTMLView takes the &quot;use unioned rect&quot; code path, the focus ring lies in the &quot;unioned rect&quot; but not in any of the actual damaged rects.

I think the reason is that in that case, the -[WebClipView _focusRingVisibleRect] includes the non-damaged area (which is clipped out for normal drawing).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2549</commentid>
    <comment_count>10</comment_count>
      <attachid>15926</attachid>
    <who name="">mitz</who>
    <bug_when>2007-08-11 01:12:58 -0700</bug_when>
    <thetext>Created attachment 15926
Clip to the enclosing rectangle if you decide to paint all of it

The idea here is that if WebHTMLView decides to paint the &quot;unioned rect&quot; instead of individual rects, it should clip to that.

This patch may be a no-go due to performance considerations -- obviously the paint() methods will do the same amount of work, but maybe Core Graphics will have to work a lot harder.

Another problem with this patch is that it makes the fast/repaint tests ineffective (another way to look at it is that it will often allow incremental repaint bugs to go unnoticed).

And now while typing this comment I got the impression that this patch made &quot;focus rings around text controls&quot; bugs much more noticeable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1068</commentid>
    <comment_count>11</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-09-01 01:33:59 -0700</bug_when>
    <thetext>I&apos;m also seeing doubly-painted focus rings in Gmail under certain Safari/OS combinations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87130</commentid>
    <comment_count>12</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-07-28 02:20:27 -0700</bug_when>
    <thetext>Only the last reduction (&quot;Test case&quot;) fails for me now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238436</commentid>
    <comment_count>13</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-06-15 10:03:04 -0700</bug_when>
    <thetext>See also: bug 40597.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>295030</commentid>
    <comment_count>14</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2010-10-15 17:11:28 -0700</bug_when>
    <thetext>I see doubly-painted focus rings when I focus the search input field on http://developer.apple.com.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>455792</commentid>
    <comment_count>15</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2011-08-23 16:14:29 -0700</bug_when>
    <thetext>For what it&apos;s worth it looks like this has been fixed in WK2, but still exists in WK1.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>9842</attachid>
            <date>2006-08-02 17:36:56 -0700</date>
            <delta_ts>2006-08-02 17:36:56 -0700</delta_ts>
            <desc>Test case reduction</desc>
            <filename>reduction_bug10049.html</filename>
            <type>text/html</type>
            <size>575</size>
            <attacher>jonathanjohnsson</attacher>
            
              <data encoding="base64">PGh0bWw+Cgk8aGVhZD4KCQk8dGl0bGU+CgkJPC90aXRsZT4KCQk8c2NyaXB0IGxhbmd1YWdlPSJq
YXZhc2NyaXB0Ij4JCjwhLS0NCnN0YXJ0ID0gZnVuY3Rpb24gKCkKewogICAgY29udGFpbmVyRGl2
ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ21hcnF1ZWVjb250YWluZXInKTsKICAgIGNvbnRh
aW5lckRpdi5pbm5lckhUTUwgPSAnPGRpdj4nOwogICAgc2V0VGltZW91dCgnc3RhcnQoKScsIDAp
Owp9OwotLT4KICAgIDwvc2NyaXB0PgoJPC9oZWFkPgoJPGJvZHkgb25sb2FkPSJzdGFydCgpIj4N
CgkNCgk8ZGl2IGlkPSJtYXJxdWVlY29udGFpbmVyIj4NCgk8L2Rpdj4KDQogICAgPHRhYmxlIGhl
aWdodD0iMTAwJSI+CiAgICAgICAgPHRyPgogICAgICAgICAgICA8dGQgcm93c3Bhbj0zPgogICAg
ICAgICAgICA8L3RkPgogICAgICAgIDwvdHI+DQogICAgICAgIDx0cj4KCQkgICAgPHRkPgoJCQkJ
PHNlbGVjdD4KCQkJPC90ZD4KCQk8L3RyPgoJCTx0cj4KCQkJPHRkIGhlaWdodD0iMTAwJSI+CiAg
ICAgICAgICAgIDwvdGQ+DQogICAgICAgIDwvdHI+DQogICAgPC90YWJsZT4KCTwvYm9keT4KPC9o
dG1sPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>15883</attachid>
            <date>2007-08-09 10:52:42 -0700</date>
            <delta_ts>2007-08-09 10:52:42 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>button outline repaint.html</filename>
            <type>text/html</type>
            <size>596</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PHN0eWxlPgogICAgZGl2IHsgd2lkdGg6IDEwMHB4OyBoZWlnaHQ6IDI1cHg7IH0KPC9zdHlsZT4K
PGRpdiBpZD0iZDIiPjwvZGl2Pgo8ZGl2PgogICAgPGJ1dHRvbiBpZD0ic2VsZWN0IiBzdHlsZT0i
bWFyZ2luOiAzcHg7Ij5CdXR0b248L2J1dHRvbj4KPC9kaXY+CjxkaXYgaWQ9ImQzIj48L2Rpdj4K
PHNjcmlwdD4KICAgIHZhciBjb3VudCA9IDA7CiAgICBmdW5jdGlvbiB0b2dnbGUoKQogICAgewog
ICAgICAgIGNvdW50Kys7CiAgICAgICAgdmFyIGNvbG9yID0gKGNvdW50ICUgMikgPyAicmVkIiA6
ICJncmVlbiI7CiAgICAgICAgZDIuc3R5bGUuYmFja2dyb3VuZCA9IGNvbG9yOwogICAgICAgIGQz
LnN0eWxlLmJhY2tncm91bmQgPSBjb2xvcjsKCiAgICAgICAgaWYgKGNvdW50IDwgMTApCiAgICAg
ICAgICAgIHNldFRpbWVvdXQodG9nZ2xlLCAxMCk7CiAgICB9CgogICAgZnVuY3Rpb24gc3RhcnQo
KQogICAgewogICAgICAgIGNvdW50ID0gMDsKICAgICAgICBzZWxlY3QuZm9jdXMoKTsKICAgICAg
ICBzZXRUaW1lb3V0KHRvZ2dsZSwgMTApOwogICAgfQo8L3NjcmlwdD4KPGJ1dHRvbiBvbmNsaWNr
PSJzdGFydCgpIj5TdGFydDwvYnV0dG9uPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>15926</attachid>
            <date>2007-08-11 01:12:58 -0700</date>
            <delta_ts>2010-06-10 17:05:30 -0700</delta_ts>
            <desc>Clip to the enclosing rectangle if you decide to paint all of it</desc>
            <filename>10049_r0.patch</filename>
            <type>text/plain</type>
            <size>1544</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9XZWJWaWV3L1dlYkhUTUxWaWV3Lm1tCj09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYktp
dC9XZWJWaWV3L1dlYkhUTUxWaWV3Lm1tCShyZXZpc2lvbiAyNTAwNykKKysrIFdlYktpdC9XZWJW
aWV3L1dlYkhUTUxWaWV3Lm1tCSh3b3JraW5nIGNvcHkpCkBAIC0yNzU4LDYgKzI3NTgsMTEgQEAg
c3RhdGljIHZvaWQgX3VwZGF0ZUFjdGl2ZVN0YXRlVGltZXJDYWxsYgogICAgIH0gTlNfRU5ESEFO
RExFUgogfQogCistIChCT09MKXdhbnRzRGVmYXVsdENsaXBwaW5nCit7CisgICAgcmV0dXJuIE5P
OworfQorCiAtICh2b2lkKWRyYXdSZWN0OihOU1JlY3QpcmVjdAogewogICAgIEFTU0VSVF9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dW50
KTsKICAgICAgICAgZm9yIChpbnQgaSA9IDA7IGkgPCBjb3VudDsgKytpKQogICAgICAgICAgICAg
W3NlbGYgZHJhd1NpbmdsZVJlY3Q6cmVjdHNbaV1dOwotCi0jaWZkZWYgX0tXUV9USU1JTkcKLSAg
ICBkb3VibGUgdGhpc1RpbWUgPSBDRkFic29sdXRlVGltZUdldEN1cnJlbnQoKSAtIHN0YXJ0Owot
ICAgIExPRyhUaW1pbmcsICIlcyBkcmF3IHNlY29uZHMgPSAlZiIsIHdpZGdldC0+cGFydCgpLT5i
YXNlVVJMKCkuVVJMKCkubGF0aW4xKCksIHRoaXNUaW1lKTsKLSNlbmRpZgorICAgIH0KIAogICAg
IGlmIChzdWJ2aWV3c1dlcmVTZXRBc2lkZSkKICAgICAgICAgW3NlbGYgX3NldEFzaWRlU3Vidmll
d3NdOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>