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

Unified Diff: Source/WebKit/chromium/src/WebElement.cpp

Issue 11273084: Merge 130847 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 years, 2 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/WebKit/chromium/public/WebElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebElement.cpp
===================================================================
--- Source/WebKit/chromium/src/WebElement.cpp (revision 132828)
+++ Source/WebKit/chromium/src/WebElement.cpp (working copy)
@@ -65,6 +65,12 @@
tagName.operator String());
}
+bool WebElement::hasHTMLTagName(const WebString& tagName) const
+{
+ const Element* element = constUnwrap<Element>();
+ return HTMLNames::xhtmlNamespaceURI == element->namespaceURI() && equalIgnoringCase(element->tagName(), String(tagName));
+}
+
bool WebElement::hasAttribute(const WebString& attrName) const
{
return constUnwrap<Element>()->hasAttribute(attrName);
« no previous file with comments | « Source/WebKit/chromium/public/WebElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698