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

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

Issue 1725243002: Fix some warnings in Eclipse (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: address comments Created 4 years, 7 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 | « java/org/chromium/distiller/DomUtil.java ('k') | java/org/chromium/distiller/LogUtil.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: java/org/chromium/distiller/IEReadingViewParser.java
diff --git a/java/org/chromium/distiller/IEReadingViewParser.java b/java/org/chromium/distiller/IEReadingViewParser.java
index 3d710e229fd08a740217a880646a6bc85e509612..5485a2bb1c88a8f7b907631cd85a2dcd01adefae 100644
--- a/java/org/chromium/distiller/IEReadingViewParser.java
+++ b/java/org/chromium/distiller/IEReadingViewParser.java
@@ -47,6 +47,7 @@ public class IEReadingViewParser implements MarkupParser.Accessor {
return mTitle;
}
+ @Override
public String getType() {
return ""; // Not supported.
}
@@ -237,18 +238,4 @@ public class IEReadingViewParser implements MarkupParser.Accessor {
}
return caption;
}
-
- private static boolean isTextInBody(Element root, String text) {
- String lowerText = text.toLowerCase();
- NodeList<Element> bodies = root.getElementsByTagName("BODY");
- for (int i = 0; i < bodies.getLength(); i++) {
- // Use javascript textContent (instead of javascript innerText) to include invisible
- // text.
- if (DomUtil.javascriptTextContent(
- bodies.getItem(i)).toLowerCase().contains(lowerText)) {
- return true;
- }
- }
- return false;
- }
}
« no previous file with comments | « java/org/chromium/distiller/DomUtil.java ('k') | java/org/chromium/distiller/LogUtil.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698