DescriptionAvoid double attribute lookup in HTMLElement::matchesReadWritePseudoClass()
Avoid double attribute lookup in HTMLElement::matchesReadWritePseudoClass().
Instead of calling fastHasAttribute() then fastGetAttribute(), call
fastGetAttribute() directly and check if the returned value is nullAtom.
fastHasAttribute() and fastGetAttribute() do exactly the same thing internally
and the only difference is the return type. The attribute lookup is a linear
search and thus it is a good idea to avoid doing it twice.
R=adamk, eseidel
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168318
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|