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

Unified Diff: java/org/chromium/distiller/ContentExtractor.java

Issue 1230583006: Fix for keeping lists structure (Closed) Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: canBeNested move out of the switch. Created 5 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
« no previous file with comments | « no previous file | java/org/chromium/distiller/webdocument/DomConverter.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: java/org/chromium/distiller/ContentExtractor.java
diff --git a/java/org/chromium/distiller/ContentExtractor.java b/java/org/chromium/distiller/ContentExtractor.java
index b9f0b2da0eab6d305cb30548856946b32e971228..4a8f8bd8dbee9acff98fbbc9084f7f5d8b4626fe 100644
--- a/java/org/chromium/distiller/ContentExtractor.java
+++ b/java/org/chromium/distiller/ContentExtractor.java
@@ -16,6 +16,7 @@ import org.chromium.distiller.webdocument.WebDocumentBuilder;
import org.chromium.distiller.webdocument.WebImage;
import org.chromium.distiller.webdocument.filters.RelevantElements;
import org.chromium.distiller.webdocument.filters.LeadImageFinder;
+import org.chromium.distiller.webdocument.filters.NestedElementRetainer;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
@@ -93,6 +94,7 @@ public class ContentExtractor {
processDocument(documentInfo.document);
RelevantElements.process(documentInfo.document);
LeadImageFinder.process(documentInfo.document);
+ NestedElementRetainer.process(documentInfo.document);
List<WebImage> images = documentInfo.document.getContentImages();
for (WebImage wi : images) {
« no previous file with comments | « no previous file | java/org/chromium/distiller/webdocument/DomConverter.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698