summaryrefslogtreecommitdiff
path: root/Source/WebCore/inspector/InspectorNodeFinder.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/inspector/InspectorNodeFinder.h')
-rw-r--r--Source/WebCore/inspector/InspectorNodeFinder.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/WebCore/inspector/InspectorNodeFinder.h b/Source/WebCore/inspector/InspectorNodeFinder.h
index 941253f71..5d55dd371 100644
--- a/Source/WebCore/inspector/InspectorNodeFinder.h
+++ b/Source/WebCore/inspector/InspectorNodeFinder.h
@@ -12,7 +12,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
+ * 3. Neither the name of Apple Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -28,8 +28,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorNodeFinder_h
-#define InspectorNodeFinder_h
+#pragma once
#include <wtf/ListHashSet.h>
#include <wtf/text/WTFString.h>
@@ -42,7 +41,7 @@ class Node;
class InspectorNodeFinder {
public:
- InspectorNodeFinder(String whitespaceTrimmedQuery);
+ InspectorNodeFinder(const String& whitespaceTrimmedQuery);
void performSearch(Node*);
const ListHashSet<Node*>& results() const { return m_results; }
@@ -50,9 +49,9 @@ private:
bool matchesAttribute(const Attribute&);
bool matchesElement(const Element&);
- void searchUsingDOMTreeTraversal(Node*);
- void searchUsingXPath(Node*);
- void searchUsingCSSSelectors(Node*);
+ void searchUsingDOMTreeTraversal(Node&);
+ void searchUsingXPath(Node&);
+ void searchUsingCSSSelectors(Node&);
bool m_startTagFound;
bool m_endTagFound;
@@ -66,5 +65,3 @@ private:
};
} // namespace WebCore
-
-#endif // InspectorNodeFinder_h