2008-12-07 Antti Koivisto <antti@apple.com>
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Dec 2008 01:29:53 +0000 (01:29 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Dec 2008 01:29:53 +0000 (01:29 +0000)
commiteafc1dc6a717fade16c0646c4cafea614f938a2a
tree956bce744c1f87520d8f2af28340f14714b43793
parente2524a559b055ec41bbb719c7fd3e91384a27b81
2008-12-07  Antti Koivisto  <antti@apple.com>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=22717
        Make CSS values use less memory

        Share CSSPrimitiveValue objects for commonly used values including
        - idents
        - colors
        - small integers

        This reduces the amount CSSPrimitiveValue instances by > 80%.

        * css/CSSPrimitiveValue.cpp:
        (WebCore::CSSPrimitiveValue::createIdentifier):
        (WebCore::CSSPrimitiveValue::createColor):
        (WebCore::CSSPrimitiveValue::create):
        * css/CSSPrimitiveValue.h:
        (WebCore::CSSPrimitiveValue::create):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@39088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/css/CSSPrimitiveValue.cpp
WebCore/css/CSSPrimitiveValue.h