2011-02-03 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Make XSSFilter go fast by adding a SuffixTree
https://bugs.webkit.org/show_bug.cgi?id=53665
The SuffixTree lets us quickly reject snippets if the POST data is
large (because we can avoid a linear scan over the POST data).
* html/parser/XSSFilter.cpp:
(WebCore::XSSFilter::init):
(WebCore::XSSFilter::isContainedInRequest):
* html/parser/XSSFilter.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77560
268f45cc-cd09-0410-ab3c-
d52691b4dbfc