[webkit-dev] Setting Unlimited Capacity to BackForwardList
Brady Eidson
beidson at apple.com
Mon Jan 19 11:08:22 PST 2009
Hi,
There is no way to change the *default* capacity for all back forward
lists.
BackForwardList in WebCore has a method "void setCapacity(int);" which
accomplishes this, but of course your platform's WebKit API layer
should also provide a call through to that. On Mac, for example,
WebBackForwardList provides "-(void)setCapacity:(int)size"
Setting the capacity for a given list to INT_MAX would effectively
make it unlimited, but I'm sure you'd run out of memory long before it
approached that limit ;)
~Brady
On Jan 18, 2009, at 11:31 PM, mwas wrote:
> Hi,
>
> I would like to know, is there a way to set Unlimited Capacity to
> History BackForwardList. The current WebKit Code contains 100 as the
> default capacity as shown below
>
> static const unsigned DefaultCapacity = 100;
> BackForwardList::BackForwardList(Page* page)
> : m_page(page)
> , m_current(NoCurrentItemIndex)
> , m_capacity(DefaultCapacity)
> , m_closed(true)
> , m_enabled(true)
> {
> }
>
>
> Any Ideas would be much appreciated!
>
> Thanks
>
> mwas
>
>
>
>
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
More information about the webkit-dev
mailing list