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

Unified Diff: heuristics/distillable/extract_features.js

Issue 1809473003: Decrease mismatches in feature extraction (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: Created 4 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: heuristics/distillable/extract_features.js
diff --git a/heuristics/distillable/extract_features.js b/heuristics/distillable/extract_features.js
index 5392aa052fa65ee65d337f5d3cfe8af03c343183..068c71e1bb61e921cd0c98861c48442936401398 100644
--- a/heuristics/distillable/extract_features.js
+++ b/heuristics/distillable/extract_features.js
@@ -14,7 +14,7 @@ return (function() {
var bounds = e.getBoundingClientRect()
var style = window.getComputedStyle(e);
return !(
- bounds.height == 0 || bounds.width == 0 ||
+ (bounds.height == 0 && bounds.width == 0) ||
style.display == "none" ||
style.visibility == "hidden" ||
style.opacity == 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698