2008-03-24 Darin Adler <darin@apple.com>
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Mar 2008 04:30:00 +0000 (04:30 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Mar 2008 04:30:00 +0000 (04:30 +0000)
commit769308ca2cc02e052ff34b56de34a77b36bb44fb
tree3abaab8c0dd619b6c0230c08a81788669803855a
parent0c277dfb9cfc2eecf393714f230ba914756376d8
2008-03-24  Darin Adler  <darin@apple.com>

        Reviewed by Sam.

        - use AtomicString more consistently for attribute values

        1% speedup on Acid3 test 26

        * dom/Element.cpp:
        (WebCore::Element::setAttribute): Changed value argument to AtomicString.
        Also fixed call to lower() to only be done if the name isn't already lowercase.
        Also took out one unneeded condition in a cascade of if statements.
        (WebCore::Element::createAttribute): Ditto.
        (WebCore::Element::setAttributeNS): Ditto.
        * dom/Element.h: Ditto.
        * dom/StyledElement.cpp:
        (WebCore::StyledElement::createAttribute): Ditto.
        * dom/StyledElement.h: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@31273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/dom/Element.cpp
WebCore/dom/Element.h
WebCore/dom/StyledElement.cpp
WebCore/dom/StyledElement.h