Index: third_party/WebKit/Source/core/dom/Attribute.h |
diff --git a/third_party/WebKit/Source/core/dom/Attribute.h b/third_party/WebKit/Source/core/dom/Attribute.h |
index f207741ae562d9bcfaaa79571e73627833076dd6..8779f88c8fd71c686dcb089b54ddf3e575e0433f 100644 |
--- a/third_party/WebKit/Source/core/dom/Attribute.h |
+++ b/third_party/WebKit/Source/core/dom/Attribute.h |
@@ -53,6 +53,7 @@ class Attribute { |
bool isEmpty() const { return m_value.isEmpty(); } |
bool matches(const QualifiedName&) const; |
+ bool matchesCaseInsensitive(const QualifiedName&) const; |
void setValue(const AtomicString& value) { m_value = value; } |
@@ -79,6 +80,13 @@ inline bool Attribute::matches(const QualifiedName& qualifiedName) const { |
qualifiedName.namespaceURI() == namespaceURI(); |
} |
+inline bool Attribute::matchesCaseInsensitive( |
+ const QualifiedName& qualifiedName) const { |
+ return qualifiedName.localNameUpper() == m_name.localNameUpper() && |
+ (qualifiedName.prefix() == starAtom || |
+ qualifiedName.namespaceURI() == namespaceURI()); |
+} |
+ |
} // namespace blink |
#endif // Attribute_h |