| Index: third_party/WebKit/Source/core/xml/XPathParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/xml/XPathParser.cpp b/third_party/WebKit/Source/core/xml/XPathParser.cpp
|
| index 3d2a055ceecc3d7a9891b9c55a423e1778e72440..c44cbba1446db6b1794bd4da0dffe3f82bab7e28 100644
|
| --- a/third_party/WebKit/Source/core/xml/XPathParser.cpp
|
| +++ b/third_party/WebKit/Source/core/xml/XPathParser.cpp
|
| @@ -106,13 +106,12 @@ static bool isAxisName(const String& name, Step::Axis& type)
|
|
|
| static bool isNodeTypeName(const String& name)
|
| {
|
| - DEFINE_STATIC_LOCAL(HashSet<String>, nodeTypeNames, ());
|
| - if (nodeTypeNames.isEmpty()) {
|
| - nodeTypeNames.add("comment");
|
| - nodeTypeNames.add("text");
|
| - nodeTypeNames.add("processing-instruction");
|
| - nodeTypeNames.add("node");
|
| - }
|
| + DEFINE_STATIC_LOCAL(HashSet<String>, nodeTypeNames, ({
|
| + "comment",
|
| + "text",
|
| + "processing-instruction",
|
| + "node",
|
| + }));
|
| return nodeTypeNames.contains(name);
|
| }
|
|
|
|
|