Skip to content
  • andersca@apple.com's avatar
    2010-05-18 Anders Carlsson <andersca@apple.com> · 998f2291
    andersca@apple.com authored
            Reviewed by Sam Weinig.
    
            Add an inlineCapacity template parameter to ListHashSet and use it to shrink the positioned object list hash set.
            https://bugs.webkit.org/show_bug.cgi?id=39304
            <rdar://problem/7998366>
    
            Add an inlineCapacity template parameter to ListHashSet.
    
            * wtf/ListHashSet.h:
            (WTF::::ListHashSet):
            (WTF::::operator):
            (WTF::::swap):
            (WTF::::~ListHashSet):
            (WTF::::size):
            (WTF::::capacity):
            (WTF::::isEmpty):
            (WTF::::begin):
            (WTF::::end):
            (WTF::::find):
            (WTF::::contains):
            (WTF::::add):
            (WTF::::insertBefore):
            (WTF::::remove):
            (WTF::::clear):
            (WTF::::unlinkAndDelete):
            (WTF::::appendNode):
            (WTF::::insertNodeBefore):
            (WTF::::deleteAllNodes):
            (WTF::::makeIterator):
            (WTF::::makeConstIterator):
            (WTF::deleteAllValues):
    2010-05-18  Anders Carlsson  <andersca@apple.com>
    
            Reviewed by Sam Weinig.
    
            Add an inlineCapacity template parameter to ListHashSet and use it to shrink the positioned object list hash set.
            https://bugs.webkit.org/show_bug.cgi?id=39304
            <rdar://problem/7998366>
    
            Set the inlineCapacity for the positionedObjects ListHashSet to 4 instead of 256. Since a RenderBlock usually has 
            few positioned objects, this saves memory.
    
            * WebCore.base.exp:
            * rendering/RenderBlock.cpp:
            (WebCore::clipOutPositionedObjects):
            (WebCore::RenderBlock::insertPositionedObject):
            * rendering/RenderBlock.h:
            (WebCore::RenderBlock::positionedObjects):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    998f2291