Always enable ENABLE(XPATH)
[WebKit.git] / Source / WebCore / dom / Document.cpp
index 5703c26..b94c9c4 100644 (file)
 #include "XMLHttpRequestProgressEvent.h"
 #include "XMLNSNames.h"
 #include "XMLNames.h"
+#include "XPathEvaluator.h"
+#include "XPathExpression.h"
+#include "XPathNSResolver.h"
+#include "XPathResult.h"
 #include "htmlediting.h"
 #include <wtf/CurrentTime.h>
 #include <wtf/HashFunctions.h>
 #include "SharedWorkerRepository.h"
 #endif
 
-#if ENABLE(XPATH)
-#include "XPathEvaluator.h"
-#include "XPathExpression.h"
-#include "XPathNSResolver.h"
-#include "XPathResult.h"
-#endif
-
 #if ENABLE(XSLT)
 #include "XSLTProcessor.h"
 #endif
@@ -4313,8 +4310,6 @@ Vector<String> Document::formElementsState() const
     return stateVector;
 }
 
-#if ENABLE(XPATH)
-
 PassRefPtr<XPathExpression> Document::createExpression(const String& expression,
                                                        XPathNSResolver* resolver,
                                                        ExceptionCode& ec)
@@ -4343,8 +4338,6 @@ PassRefPtr<XPathResult> Document::evaluate(const String& expression,
     return m_xpathEvaluator->evaluate(expression, contextNode, resolver, type, result, ec);
 }
 
-#endif // ENABLE(XPATH)
-
 void Document::setStateForNewFormElements(const Vector<String>& stateVector)
 {
     // Walk the state vector backwards so that the value to use for each