Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't put every <img> in the page in a WebVector in AwRenderViewExt::…
…OnDocumentHasImagesRequest. This method was doing: blink::WebVector<blink::WebElement> images; webview->mainFrame()->document().images(images); hasImages = !images.isEmpty(); which meant Blink would walk the entire document putting every <img> into a Vector, then it would copy that Vector into this WebVector all so this code could check if the Vector wasn't empty. Instead just use the NodeList version of getElementsByHTMLTagName, which we can already just call in this file with GetImgChild. This only walks until it finds the first <img> and doesn't need additional storage. Review URL: https://codereview.chromium.org/1220333011 Cr-Commit-Position: refs/heads/master@{#337920}
- Loading branch information