| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index f0b7b12554dac75334e698614c4d248274eebca2..f1c68f71d24408a3f1385ee21a752a5ace58cd1d 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -2690,14 +2690,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.throwUninformativeAndGenericDOMException(SyntaxError);
|
| - return false;
|
| - }
|
| -
|
| - SelectorQuery* selectorQuery = document().selectorQueryCache().add(selector, document(), exceptionState);
|
| + SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors, document(), exceptionState);
|
| if (!selectorQuery)
|
| return false;
|
| return selectorQuery->matches(*this);
|
|
|