Index: java/org/chromium/distiller/DomDistiller.java |
diff --git a/java/org/chromium/distiller/DomDistiller.java b/java/org/chromium/distiller/DomDistiller.java |
index 027fde8885350c0705e84649788549b9c5c6f609..4f35f8f8bbcb75c2e7abe6ebb89374f7f6367848 100644 |
--- a/java/org/chromium/distiller/DomDistiller.java |
+++ b/java/org/chromium/distiller/DomDistiller.java |
@@ -7,6 +7,7 @@ package org.chromium.distiller; |
import org.chromium.distiller.proto.DomDistillerProtos; |
import org.chromium.distiller.proto.DomDistillerProtos.DebugInfo; |
import org.chromium.distiller.proto.DomDistillerProtos.TimingInfo; |
+import org.chromium.distiller.StringUtil; |
import com.google.gwt.core.client.js.JsExport; |
import com.google.gwt.dom.client.Document; |
@@ -23,6 +24,7 @@ public class DomDistiller { |
public static DomDistillerProtos.DomDistillerResult applyWithOptions( |
DomDistillerProtos.DomDistillerOptions options) { |
double startTime = DomUtil.getTime(); |
+ StringUtil.selectCountWordsFunc(Document.get().getBody().getInnerText()); |
cjhopman
2015/05/21 19:32:02
This should use textcontent not innertext
wychen
2015/05/21 23:07:03
Done.
|
DomDistillerProtos.DomDistillerResult result = |
DomDistillerProtos.DomDistillerResult.create(); |
ContentExtractor contentExtractor = |