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

Unified Diff: java/org/chromium/distiller/webdocument/WebDocumentBuilder.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
Index: java/org/chromium/distiller/webdocument/WebDocumentBuilder.java
diff --git a/java/org/chromium/distiller/webdocument/WebDocumentBuilder.java b/java/org/chromium/distiller/webdocument/WebDocumentBuilder.java
index 36d384f4390ad3ecd2cfe67aa8b508df85cfb953..d40308685f4da2cdc07f2c96198b163206a88363 100644
--- a/java/org/chromium/distiller/webdocument/WebDocumentBuilder.java
+++ b/java/org/chromium/distiller/webdocument/WebDocumentBuilder.java
@@ -115,6 +115,12 @@ public class WebDocumentBuilder implements WebDocumentBuilderInterface {
}
@Override
+ public void tag(WebTag tag) {
+ flushBlock(groupNumber);
+ document.addTag(tag);
+ }
+
+ @Override
public void embed(WebElement embedNode) {
flushBlock(groupNumber);
document.addEmbed(embedNode);

Powered by Google App Engine
This is Rietveld 408576698