| Index: Source/core/xml/XPathStep.cpp
|
| diff --git a/Source/core/xml/XPathStep.cpp b/Source/core/xml/XPathStep.cpp
|
| index 9d0d7cd9a218f1ee83c666e9c5b9235a95478d1d..b79975e1374a3c439f691a5a10fbeb12a62252ef 100644
|
| --- a/Source/core/xml/XPathStep.cpp
|
| +++ b/Source/core/xml/XPathStep.cpp
|
| @@ -170,10 +170,8 @@ static inline Node::NodeType primaryNodeType(Step::Axis axis)
|
| static inline bool nodeMatchesBasicTest(Node* node, Step::Axis axis, const Step::NodeTest& nodeTest)
|
| {
|
| switch (nodeTest.kind()) {
|
| - case Step::NodeTest::TextNodeTest: {
|
| - Node::NodeType type = node->nodeType();
|
| - return type == Node::TEXT_NODE || type == Node::CDATA_SECTION_NODE;
|
| - }
|
| + case Step::NodeTest::TextNodeTest:
|
| + return node->nodeType() == Node::TEXT_NODE;
|
| case Step::NodeTest::CommentNodeTest:
|
| return node->nodeType() == Node::COMMENT_NODE;
|
| case Step::NodeTest::ProcessingInstructionNodeTest: {
|
|
|