• hyatt@apple.com's avatar
    2008-04-12 David Hyatt <hyatt@apple.com> · 18d8fbf3
    hyatt@apple.com authored
            Memory management cleanup for the new StyleCachedImage and StyleGeneratedImage classes.  Make the back end
            values hold refptrs to cached front end values.  This will avoid malloc churn as RenderStyles get
            re-resolved.
    
            Reviewed by olliej
    
            * css/CSSCursorImageValue.cpp:
            (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed):
            (WebCore::CSSCursorImageValue::cachedImage):
            * css/CSSCursorImageValue.h:
            * css/CSSImageGeneratorValue.cpp:
            (WebCore::CSSImageGeneratorValue::CSSImageGeneratorValue):
            (WebCore::CSSImageGeneratorValue::generatedImage):
            * css/CSSImageGeneratorValue.h:
            * css/CSSImageValue.cpp:
            (WebCore::CSSImageValue::CSSImageValue):
            (WebCore::CSSImageValue::~CSSImageValue):
            (WebCore::CSSImageValue::cachedImage):
            * css/CSSImageValue.h:
            * css/CSSStyleSelector.cpp:
            (WebCore::CSSStyleSelector::applyProperty):
          ...
    18d8fbf3