| Index: Source/core/dom/Element.cpp | 
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp | 
| index 57c2c248ff1a60251ce5ebe3c6691aff2fd0667f..00fa98a94b1c7bcffd26d2de4feeffdce37223cd 100644 | 
| --- a/Source/core/dom/Element.cpp | 
| +++ b/Source/core/dom/Element.cpp | 
| @@ -2811,14 +2811,9 @@ RenderObject* Element::pseudoElementRenderer(PseudoId pseudoId) const | 
| return 0; | 
| } | 
|  | 
| -bool Element::webkitMatchesSelector(const String& selector, ExceptionState& exceptionState) | 
| +bool Element::matches(const String& selectors, ExceptionState& exceptionState) | 
| { | 
| -    if (selector.isEmpty()) { | 
| -        exceptionState.throwDOMException(SyntaxError, "The selector provided is empty."); | 
| -        return false; | 
| -    } | 
| - | 
| -    SelectorQuery* selectorQuery = document().selectorQueryCache().add(AtomicString(selector), document(), exceptionState); | 
| +    SelectorQuery* selectorQuery = document().selectorQueryCache().add(AtomicString(selectors), document(), exceptionState); | 
| if (!selectorQuery) | 
| return false; | 
| return selectorQuery->matches(*this); | 
|  |