<?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>193630</bug_id>
          
          <creation_ts>2019-01-20 14:38:48 -0800</creation_ts>
          <short_desc>REGRESSION(r240174): Wrong preprocessor guards in RenderImage::paintAreaElementFocusRing</short_desc>
          <delta_ts>2019-02-07 01:47:42 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=193583</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>magomez</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1496400</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-01-20 14:38:48 -0800</bug_when>
    <thetext>Layout test fast/images/image-map-outline-in-positioned-container.html is failing for GTK since r240174 &quot;CSS auto focus-ring outlines don&apos;t render on iOS&quot;. The autofocus is no longer rendered:

https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r240208%20(9437)/fast/images/image-map-outline-in-positioned-container-diffs.html

I think the problem is in RenderImage::paintAreaElementFocusRing. Here some code that used to be cross-platform was changed to be Cocoa-specific by moving it inside the Cocoa-specific ENABLE(FULL_KEYBOARD_ACCESS) guard. I&apos;m not sure what the right guard would be here, but perhaps !PLATFORM(IOS_FAMILY) || ENABLE(FULL_KEYBOARD_ACCESS) would do the trick.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496401</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-01-20 14:40:08 -0800</bug_when>
    <thetext>Note: I&apos;m adding a failure expectation for this test, which should be removed when fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496426</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2019-01-20 15:39:43 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #0)
&gt; Layout test fast/images/image-map-outline-in-positioned-container.html is
&gt; failing for GTK since r240174 &quot;CSS auto focus-ring outlines don&apos;t render on
&gt; iOS&quot;. The autofocus is no longer rendered:
&gt; 
&gt; https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/
&gt; r240208%20(9437)/fast/images/image-map-outline-in-positioned-container-diffs.
&gt; html
&gt; 
&gt; I think the problem is in RenderImage::paintAreaElementFocusRing. 

Yes, there is a problem here. Oops! Shouldn&apos;t have tried to do two things at once: inverting the if-else and get this code working for PLATFORM(IOS_FAMILY) &amp;&amp; ENABLE(FULL_KEYBOARD_ACCESS).


&gt; Here some
&gt; code that used to be cross-platform was changed to be Cocoa-specific by
&gt; moving it inside the Cocoa-specific ENABLE(FULL_KEYBOARD_ACCESS) guard. I&apos;m
&gt; not sure what the right guard would be here, but perhaps
&gt; !PLATFORM(IOS_FAMILY) || ENABLE(FULL_KEYBOARD_ACCESS) would do the trick.

Yes, that would fix it! I am not near a computer with a checkout. If you can fix I would appreciate it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496427</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-01-20 15:40:30 -0800</bug_when>
    <thetext>OK!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496428</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2019-01-20 15:45:37 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #3)
&gt; OK!

Thank you, Michael!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496459</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-01-20 17:52:24 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #1)
&gt; Note: I&apos;m adding a failure expectation for this test, which should be
&gt; removed when fixed.

I didn&apos;t actually commit the expectation yet, so nevermind that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496460</commentid>
    <comment_count>6</comment_count>
      <attachid>359663</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-01-20 17:58:15 -0800</bug_when>
    <thetext>Created attachment 359663
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496481</commentid>
    <comment_count>7</comment_count>
      <attachid>359663</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-01-20 19:25:49 -0800</bug_when>
    <thetext>Comment on attachment 359663
Patch

Clearing flags on attachment: 359663

Committed r240221: &lt;https://trac.webkit.org/changeset/240221&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496482</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-01-20 19:25:51 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496483</commentid>
    <comment_count>9</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-01-20 19:26:28 -0800</bug_when>
    <thetext>&lt;rdar://problem/47419540&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503677</commentid>
    <comment_count>10</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2019-02-07 01:47:42 -0800</bug_when>
    <thetext>This made fast/images/image-map-outline-in-positioned-container.html to properly pass, so updating expectation.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>359663</attachid>
            <date>2019-01-20 17:58:15 -0800</date>
            <delta_ts>2019-01-20 19:25:49 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-193630-20190120195814.patch</filename>
            <type>text/plain</type>
            <size>1581</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQwMjE3CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggZmU0OTFmNmQ3MGQ3MmE1
YjQzOTJmZGFkNWJjMWY2ZjYzMTQ4NjNiMS4uNTZjZDlkOTQyYTgyNjU5M2E4NzEwNzNlNWVjMWNk
YWQ4Y2IyMGZkMiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE3IEBACisyMDE5LTAxLTIwICBNaWNo
YWVsIENhdGFuemFybyAgPG1jYXRhbnphcm9AaWdhbGlhLmNvbT4KKworICAgICAgICBSRUdSRVNT
SU9OKHIyNDAxNzQpOiBXcm9uZyBwcmVwcm9jZXNzb3IgZ3VhcmRzIGluIFJlbmRlckltYWdlOjpw
YWludEFyZWFFbGVtZ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