<?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>244822</bug_id>
          
          <creation_ts>2022-09-05 19:34:41 -0700</creation_ts>
          <short_desc>merge Element::attributeChanged and Element::parseAttribute and avoid base class calls when an attribute is handled</short_desc>
          <delta_ts>2023-07-25 06:50:29 -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>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>255258</dup_id>
          
          <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="Cameron McCormack (:heycam)">heycam</reporter>
          <assigned_to name="Cameron McCormack (:heycam)">heycam</assigned_to>
          <cc>annevk</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1896409</commentid>
    <comment_count>0</comment_count>
    <who name="Cameron McCormack (:heycam)">heycam</who>
    <bug_when>2022-09-05 19:34:41 -0700</bug_when>
    <thetext>I can&apos;t see a good reason to have separate Element::attributeChanged and Element::parseAttribute member functions.  The patch in this bug will do two things:

1. Merge parseAttribute into attributeChanged, to avoid one virtual function call.
2. Tweak the contents of attributeChanged functions to consistently avoid calling the base class attributeChanged if an attribute is handled in the derived class.

As well as reducing the amount of work done when an attribute is changed, very slightly, this sets the stage for a subsequent patch to use an enum value to represent known attribute names instead of checking for QualifiedName equality.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1896411</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack (:heycam)">heycam</who>
    <bug_when>2022-09-05 19:40:15 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/4040</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898097</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-12 19:35:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/99850653&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968017</commentid>
    <comment_count>3</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-07-25 06:50:29 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 255258 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>