| Index: Source/web/WebFrameImpl.cpp
|
| diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
|
| index 9c9c69c74eb53da0f71f9557d674702a995822d9..28791d319dbf5c6f8ceef15ce2b35ba6a7b42546 100644
|
| --- a/Source/web/WebFrameImpl.cpp
|
| +++ b/Source/web/WebFrameImpl.cpp
|
| @@ -162,8 +162,6 @@
|
| #include "core/rendering/RenderView.h"
|
| #include "core/rendering/style/StyleInheritedData.h"
|
| #include "core/timing/Performance.h"
|
| -#include "core/xml/DocumentXPathEvaluator.h"
|
| -#include "core/xml/XPathResult.h"
|
| #include "platform/TraceEvent.h"
|
| #include "platform/UserGestureIndicator.h"
|
| #include "platform/clipboard/ClipboardUtilities.h"
|
| @@ -713,24 +711,6 @@ WebFrame* WebFrameImpl::findChildByName(const WebString& name) const
|
| return fromFrame(frame()->tree().child(name));
|
| }
|
|
|
| -WebFrame* WebFrameImpl::findChildByExpression(const WebString& xpath) const
|
| -{
|
| - if (xpath.isEmpty())
|
| - return 0;
|
| -
|
| - Document* document = frame()->document();
|
| - ASSERT(document);
|
| -
|
| - RefPtrWillBeRawPtr<XPathResult> xpathResult = DocumentXPathEvaluator::evaluate(*document, xpath, document, nullptr, XPathResult::ORDERED_NODE_ITERATOR_TYPE, 0, IGNORE_EXCEPTION);
|
| - if (!xpathResult)
|
| - return 0;
|
| -
|
| - Node* node = xpathResult->iterateNext(IGNORE_EXCEPTION);
|
| - if (!node || !node->isFrameOwnerElement())
|
| - return 0;
|
| - return fromFrame(toLocalFrame(toHTMLFrameOwnerElement(node)->contentFrame()));
|
| -}
|
| -
|
| WebDocument WebFrameImpl::document() const
|
| {
|
| if (!frame() || !frame()->document())
|
|
|