Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: java/org/chromium/distiller/webdocument/WebImage.java

Issue 2000093005: Support extraction of lazily-loaded images (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: fix comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: java/org/chromium/distiller/webdocument/WebImage.java
diff --git a/java/org/chromium/distiller/webdocument/WebImage.java b/java/org/chromium/distiller/webdocument/WebImage.java
index 0c14d46f7ae7605d53ad2e64465367e415142304..ceb3a405279c3dbf95c723c6eb9ced12f7a095b6 100644
--- a/java/org/chromium/distiller/webdocument/WebImage.java
+++ b/java/org/chromium/distiller/webdocument/WebImage.java
@@ -45,6 +45,7 @@ public class WebImage extends WebElement {
if (textOnly) return "";
ImageElement ie = ImageElement.as(Element.as(imgElement.cloneNode(false)));
+ ie.setSrc(srcUrl);
ie.setSrc(ie.getSrc());
// If computed width or height is zero, do not override them
// to keep them visible.

Powered by Google App Engine
This is Rietveld 408576698