We currently call hasAttribute(typeAttr) then if it returns true, we call fastGetAttribute(typeAttr). First of all, fastHasAttribute() would have been better as it would have avoided attribute synchronization. Secondly, We could call fastGetAttribute(typeAttr) directly and check if the returned value is nullAtom, instead of calling hasAttribute(). This way, we only do the linear attribute search once.
Created attachment 241365 [details] Patch
Comment on attachment 241365 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241365&action=review r=me > Source/WebCore/ChangeLog:9 > + calling directly fastGetAttribute(typeAttr) and check if its returns Should be "call" and "it" instead of "calling" and "its".
Created attachment 241371 [details] Patch
Merging into Bug 138524. *** This bug has been marked as a duplicate of bug 138524 ***