| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index bf184d26de887810fb8b9be688c6f134fefe8afe..bbeda432053a4e4191fe25cf66ad145ba8cfee27 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -2557,19 +2557,6 @@
|
| return selectorQuery->matches(*this);
|
| }
|
|
|
| -Element* Element::closest(const String& selectors, ExceptionState& exceptionState)
|
| -{
|
| - SelectorQuery* selectorQuery = document().selectorQueryCache().add(AtomicString(selectors), document(), exceptionState);
|
| - if (selectorQuery) {
|
| - for (Element* currentElement = this; currentElement; currentElement = currentElement->parentElement()) {
|
| - if (selectorQuery->matches(*currentElement))
|
| - return currentElement;
|
| - }
|
| - }
|
| -
|
| - return nullptr;
|
| -}
|
| -
|
| DOMTokenList& Element::classList()
|
| {
|
| ElementRareData& rareData = ensureElementRareData();
|
|
|