#include "third_party/WebKit/public/web/WebDataSource.h"
#include "third_party/WebKit/public/web/WebDocument.h"
#include "third_party/WebKit/public/web/WebElement.h"
+#include "third_party/WebKit/public/web/WebElementCollection.h"
#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebHitTestResult.h"
#include "third_party/WebKit/public/web/WebNode.h"
namespace {
-GURL GetAbsoluteUrl(const blink::WebNode& node, const base::string16& url_fragment) {
+GURL GetAbsoluteUrl(const blink::WebNode& node,
+ const base::string16& url_fragment) {
return GURL(node.document().completeURL(url_fragment));
}
// This implementation is incomplete (for example if is an area tag) but
// matches the original WebViewClassic implementation.
- blink::WebNodeList list = node.getElementsByTagName("img");
+ blink::WebElementCollection list = node.getElementsByTagName("img");
if (list.length() > 0)
- return list.item(0);
+ return list.firstItem();
return blink::WebNode();
}