<?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>56410</bug_id>
          
          <creation_ts>2011-03-15 13:44:12 -0700</creation_ts>
          <short_desc>EventHandler needs cleanup</short_desc>
          <delta_ts>2011-05-04 20:08:40 -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>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>58470</dependson>
    
    <dependson>59553</dependson>
    
    <dependson>59555</dependson>
    
    <dependson>59556</dependson>
    
    <dependson>58472</dependson>
    
    <dependson>58503</dependson>
    
    <dependson>59580</dependson>
    
    <dependson>59835</dependson>
    
    <dependson>59837</dependson>
    
    <dependson>60200</dependson>
    
    <dependson>60228</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>dglazkov</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>367922</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-03-15 13:44:12 -0700</bug_when>
    <thetext>EventHandler has many duplicated code and long functions.  This entire class needs to be refactored and cleaned up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370223</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2011-03-20 12:00:04 -0700</bug_when>
    <thetext>If we are going to undertake cleaning up EventHandler, which is an extremely laudable goal and needs to be done, we should consider making some changes to its design as well. For instance, does it really need to be per-frame, or can we make it per Page?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>371567</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-03-22 12:44:20 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; If we are going to undertake cleaning up EventHandler, which is an extremely laudable goal and needs to be done, we should consider making some changes to its design as well. For instance, does it really need to be per-frame, or can we make it per Page?

It does store some states so we&apos;ll be changing the behavior if we&apos;re moving it to Page-level.  I guess we&apos;ll need to investigate per feature basis.  It might even be that we need two separate classes for Page-level and Frame-level states.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374039</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2011-03-26 21:20:56 -0700</bug_when>
    <thetext>Some of the bits from EventHandler should be moved to EventDispatcher, which is being birthed in bug 57168.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>