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

Unified Diff: Source/core/dom/Node.h

Issue 406843002: Optimize hasTagName when called on an HTMLElement / SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/dom/ElementTraversal.h ('k') | Source/core/editing/ApplyStyleCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 270f9cab758af2969c6a0f23dc0d323ed0242b70..c73d7bf8443d469dd740a80da94765c9c5b94bc7 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -2,7 +2,7 @@
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
+ * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
* Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
*
* This library is free software; you can redistribute it and/or
@@ -57,6 +57,7 @@ class ExceptionState;
class FloatPoint;
class LocalFrame;
class HTMLInputElement;
+class HTMLQualifiedName;
class IntRect;
class KeyboardEvent;
class NSResolver;
@@ -77,6 +78,7 @@ class RenderBox;
class RenderBoxModelObject;
class RenderObject;
class RenderStyle;
+class SVGQualifiedName;
class ShadowRoot;
class StaticNodeList;
class TagCollection;
@@ -170,6 +172,8 @@ public:
// DOM methods & attributes for Node
bool hasTagName(const QualifiedName&) const;
+ bool hasTagName(const HTMLQualifiedName&) const;
+ bool hasTagName(const SVGQualifiedName&) const;
virtual String nodeName() const = 0;
virtual String nodeValue() const;
virtual void setNodeValue(const String&);
« no previous file with comments | « Source/core/dom/ElementTraversal.h ('k') | Source/core/editing/ApplyStyleCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698