Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1359)

Unified Diff: Source/core/xml/XPathParser.cpp

Issue 17239008: Remove XPathException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/xml/XPathParser.cpp
diff --git a/Source/core/xml/XPathParser.cpp b/Source/core/xml/XPathParser.cpp
index 5daab74430213211f9492e63e3176b7e08f55e2e..4ef59b6cce3f9bc68c64fcc04fe497def9594339 100644
--- a/Source/core/xml/XPathParser.cpp
+++ b/Source/core/xml/XPathParser.cpp
@@ -30,7 +30,6 @@
#include "core/dom/ExceptionCode.h"
#include "core/xml/XPathEvaluator.h"
-#include "core/xml/XPathException.h"
#include "core/xml/XPathNSResolver.h"
#include "core/xml/XPathPath.h"
#include "core/xml/XPathStep.h"
@@ -504,7 +503,7 @@ Expression* Parser::parseStatement(const String& statement, PassRefPtr<XPathNSRe
if (m_gotNamespaceError)
ec = NAMESPACE_ERR;
else
- ec = XPathException::INVALID_EXPRESSION_ERR;
+ ec = SYNTAX_ERR;
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698