DescriptionAvoid calling hasAttribute() and then getAttribute() for performance
Avoid calling hasAttribute() and then getAttribute() for performance.
This causes the attribute to be looked up (linear search) twice instead
of once if we call getAttribute() directly and then check if the returned
AtomicString is null.
R=eseidel@chromium.org, eseidel, rwlbuis
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168423
Patch Set 1 #Patch Set 2 : Rebase #
Messages
Total messages: 4 (0 generated)
|