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

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

Issue 1265533004: Handle lists more appropriately (Closed) Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: Created 5 years, 5 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/ElementAction.java
diff --git a/java/org/chromium/distiller/webdocument/ElementAction.java b/java/org/chromium/distiller/webdocument/ElementAction.java
index 1dbc88baf240b81966e47218812187858c63a1fd..d85f122ceff1a5e6972d694f0e4f754da262c224 100644
--- a/java/org/chromium/distiller/webdocument/ElementAction.java
+++ b/java/org/chromium/distiller/webdocument/ElementAction.java
@@ -17,6 +17,7 @@ public class ElementAction {
public boolean changesTagLevel = false;
public boolean flush = false;
public boolean isAnchor = false;
+ public boolean isList = false;
public JsArrayString labels = JavaScriptObject.createArray().<JsArrayString>cast();
private static final RegExp REG_COMMENT = RegExp.compile("\\bcomments?\\b");
@@ -91,6 +92,10 @@ public class ElementAction {
action.isAnchor = true;
}
break;
+ case "OL":
+ case "UL":
+ action.isList = true;
+ break;
}
}
return action;

Powered by Google App Engine
This is Rietveld 408576698