Title: [103162] trunk/Source/WebCore
- Revision
- 103162
- Author
- kl...@webkit.org
- Date
- 2011-12-17 19:28:35 -0800 (Sat, 17 Dec 2011)
Log Message
NameNodeList: Use fastGetAttribute() in nodeMatches().
<http://webkit.org/b/74797>
Reviewed by Darin Adler.
It's safe and slightly more efficient to use fastGetAttribute()
for HTMLNames::nameAttr here.
* dom/NameNodeList.cpp:
(WebCore::NameNodeList::nodeMatches):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (103161 => 103162)
--- trunk/Source/WebCore/ChangeLog 2011-12-18 03:26:00 UTC (rev 103161)
+++ trunk/Source/WebCore/ChangeLog 2011-12-18 03:28:35 UTC (rev 103162)
@@ -1,5 +1,18 @@
2011-12-17 Andreas Kling <kl...@webkit.org>
+ NameNodeList: Use fastGetAttribute() in nodeMatches().
+ <http://webkit.org/b/74797>
+
+ Reviewed by Darin Adler.
+
+ It's safe and slightly more efficient to use fastGetAttribute()
+ for HTMLNames::nameAttr here.
+
+ * dom/NameNodeList.cpp:
+ (WebCore::NameNodeList::nodeMatches):
+
+2011-12-17 Andreas Kling <kl...@webkit.org>
+
CSSPrimitiveValue: Inline getIdent().
<http://webkit.org/b/74793>
Modified: trunk/Source/WebCore/dom/NameNodeList.cpp (103161 => 103162)
--- trunk/Source/WebCore/dom/NameNodeList.cpp 2011-12-18 03:26:00 UTC (rev 103161)
+++ trunk/Source/WebCore/dom/NameNodeList.cpp 2011-12-18 03:28:35 UTC (rev 103162)
@@ -44,7 +44,7 @@
bool NameNodeList::nodeMatches(Element* testNode) const
{
- return testNode->getAttribute(nameAttr) == m_nodeName;
+ return testNode->fastGetAttribute(nameAttr) == m_nodeName;
}
} // namespace WebCore
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes