{
}
-DocumentXPathEvaluator::~DocumentXPathEvaluator()
-{
-}
-
DocumentXPathEvaluator& DocumentXPathEvaluator::from(DocumentSupplementable& document)
{
DocumentXPathEvaluator* cache = static_cast<DocumentXPathEvaluator*>(DocumentSupplement::from(document, supplementName()));
if (!cache) {
cache = new DocumentXPathEvaluator();
- DocumentSupplement::provideTo(document, supplementName(), adoptPtr(cache));
+ DocumentSupplement::provideTo(document, supplementName(), adoptPtrWillBeNoop(cache));
}
return *cache;
}
return suplement.m_xpathEvaluator->evaluate(expression, contextNode, resolver, type, result, exceptionState);
}
+void DocumentXPathEvaluator::trace(Visitor* visitor)
+{
+ visitor->trace(m_xpathEvaluator);
+ DocumentSupplement::trace(visitor);
+}
+
} // namespace WebCore