<?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>101370</bug_id>
          
          <creation_ts>2012-11-06 10:39:49 -0800</creation_ts>
          <short_desc>AX: Only walk up the parent tree one time in accessibilityIsIgnored</short_desc>
          <delta_ts>2014-02-07 11:02:21 -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>Accessibility</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="chris fleizach">cfleizach</reporter>
          <assigned_to name="chris fleizach">cfleizach</assigned_to>
          <cc>dmazzoni</cc>
    
    <cc>jcraig</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>759847</commentid>
    <comment_count>0</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2012-11-06 10:39:49 -0800</bug_when>
    <thetext>We walk up the parent tree way too many times in accessibilityIsIgnored. we should figure out a way to consolidate</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>759870</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Mazzoni">dmazzoni</who>
    <bug_when>2012-11-06 10:57:04 -0800</bug_when>
    <thetext>A few ideas:

1. Walk up the parent chain once at the beginning of the function, store it in a list/vector. Then just access that list/vector every other time it&apos;s needed. This would probably only provide a modest speedup, though - at most a small constant factor.

2. Add a bitfield to every AccessibilityObject that&apos;s updated when it&apos;s first created / inserted in the tree, keeping track of things to look for in its parent chain, like if it&apos;s a descendant of a math block, or of a canvas, or of a table. I&apos;m pretty sure those won&apos;t every change once an AccessibilityObject is created. This could provide  

3. I&apos;m assuming that any properties that change in the parent change would trigger a layout. Perhaps we can compute a bunch of properties for each object and save the document&apos;s layout count, then recompute whenever the layout count has changed. The only thing that might not work for is ARIA-only changes, like if something in the parent chain changes aria-hidden - so maybe we&apos;d have to explicitly mark all descendants as dirty in that case.

4. Chromium often walks the entire tree rooted at a single node. For that specific case it&apos;d be possible to pass information about the parent chain along when exploring each child. Not sure if that&apos;d help much with Mac.

Any thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>977912</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-02-07 11:02:21 -0800</bug_when>
    <thetext>&lt;rdar://problem/16013622&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>