<?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>23163</bug_id>
          
          <creation_ts>2009-01-07 07:33:26 -0800</creation_ts>
          <short_desc>suppress scrolling in Element::updateFocusAppearance</short_desc>
          <delta_ts>2010-01-29 13:41:39 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</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>
          <dependson>23145</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cary Clark">caryclark</reporter>
          <assigned_to name="Cary Clark">caryclark</assigned_to>
          <cc>darin</cc>
    
    <cc>eric</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104713</commentid>
    <comment_count>0</comment_count>
    <who name="Cary Clark">caryclark</who>
    <bug_when>2009-01-07 07:33:26 -0800</bug_when>
    <thetext>A device with a directional pad may set the focus while navigating, to allow javascript to modify the DOM as appropriate. The same directional pad may navigate by scrolling -- and there&apos;s no way to know if the user intended to move the focus or scroll. 

On the desktop, changing the focus also attempts to scroll the focused element into view. This is undesirable for devices that use a directional pad for navigation.

(patch depends on 23145 for the definition of ENABLE_DIRECTIONAL_PAD_NAVIGATION)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104716</commentid>
    <comment_count>1</comment_count>
      <attachid>26491</attachid>
    <who name="Cary Clark">caryclark</who>
    <bug_when>2009-01-07 07:39:25 -0800</bug_when>
    <thetext>Created attachment 26491
don&apos;t scroll when setting focus for devices with directional pad navigation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105159</commentid>
    <comment_count>2</comment_count>
      <attachid>26491</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-01-10 15:49:24 -0800</bug_when>
    <thetext>Comment on attachment 26491
don&apos;t scroll when setting focus for devices with directional pad navigation

It seems to me that the real issue here isn&apos;t exactly &quot;directional pad navigation&quot; -- it&apos;s more &quot;small screen with explicit scrolling&quot;, and I suppose the explicit scrolling part is what&apos;s really relevant. I could easily imagine someone using WebKit on a web browser for a TV screen, and using a directional pad on a remote control. It&apos;s entirely unclear to me whether the presence of the directional pad would also cause the developers to want this behavior in that case.

I&apos;m going to say r=me with this, but I think we&apos;re being a bit unclear on what DIRECTIONAL_PAD_NAVIGATION means and that could become a problem down the line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108367</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-02-04 16:36:16 -0800</bug_when>
    <thetext>Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/dom/Element.cpp
Committed r40647
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108376</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-02-04 17:28:07 -0800</bug_when>
    <thetext>Patch was wrong, fixed:

Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/dom/Element.cpp
Committed r40654
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185477</commentid>
    <comment_count>5</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-01-28 07:39:45 -0800</bug_when>
    <thetext>it is interesing that this patch landed, and its BLOCKER did not. It introduced:

=======================================
#if !ENABLE(DIRECTIONAL_PAD_NAVIGATION)
    else if (renderer() &amp;&amp; !renderer()-&gt;isWidget())
        renderer()-&gt;enclosingLayer()-&gt;scrollRectToVisible(getRect());
#endif
=======================================

but DIRECTIONAL_PAD_NAVIGATION is not even in Platform.h . Grep&apos;ing for it outputs only:

$ grep -nHR DIRECTIONAL_PAD_NAVIGATION .
./WebCore/dom/Element.cpp:1293:#if !ENABLE(DIRECTIONAL_PAD_NAVIGATION)

cc&apos;ing darin who reviwed and eric who landed it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185948</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-01-29 13:41:39 -0800</bug_when>
    <thetext>This is something that was put in for Android. Beyond that I have little insight into what it is or if it should be removed or kept.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>26491</attachid>
            <date>2009-01-07 07:39:25 -0800</date>
            <delta_ts>2009-01-10 15:49:24 -0800</delta_ts>
            <desc>don&apos;t scroll when setting focus for devices with directional pad navigation</desc>
            <filename>patchForBug23163.txt</filename>
            <type>text/plain</type>
            <size>1251</size>
            <attacher name="Cary Clark">caryclark</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAzOTY3OCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTQgQEAKKzIwMDktMDEtMDcgIENhcnkgQ2xhcmsgIDxjYXJ5Y2xhcmtAZ29vZ2xl
LmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBo
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kZXJlcigpICYmICFyZW5kZXJlcigpLT5pc1dpZGdl
dCgpKQogICAgICAgICByZW5kZXJlcigpLT5lbmNsb3NpbmdMYXllcigpLT5zY3JvbGxSZWN0VG9W
aXNpYmxlKGdldFJlY3QoKSk7CisjZW5kaWYKIH0KIAogdm9pZCBFbGVtZW50OjpibHVyKCkK
</data>
<flag name="review"
          id="12575"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>