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

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

Issue 2020403002: Add support for figure element (Closed) Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: mdjones' comments addressed Created 4 years, 4 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 d58f4e43bf0159c9aa8eea5fe07ba2bfc348bf26..932897818fe1a3a1c868a78bb67d6ea55125911a 100644
--- a/java/org/chromium/distiller/webdocument/WebImage.java
+++ b/java/org/chromium/distiller/webdocument/WebImage.java
@@ -110,4 +110,11 @@ public class WebImage extends WebElement {
list.addAll(DomUtil.getSrcSetUrls(clonedImg));
return list;
}
+
+ protected ImageElement getProcessedNode() {
+ if (clonedImg == null) {
+ cloneAndProcessNode();
+ }
+ return clonedImg;
+ }
}
« no previous file with comments | « java/org/chromium/distiller/webdocument/WebFigure.java ('k') | javatests/org/chromium/distiller/EmbedExtractorTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698