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

Unified Diff: third_party/document_image_extractor/third_party/src/visible_element_filter.js

Issue 1138123002: Update third_party/document_image_extractor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/document_image_extractor/third_party/src/element_filter.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/document_image_extractor/third_party/src/visible_element_filter.js
diff --git a/third_party/document_image_extractor/third_party/src/visible_element_filter.js b/third_party/document_image_extractor/third_party/src/visible_element_filter.js
deleted file mode 100644
index 7b7704e015dd23d21a0d3829daa6101c15735687..0000000000000000000000000000000000000000
--- a/third_party/document_image_extractor/third_party/src/visible_element_filter.js
+++ /dev/null
@@ -1,43 +0,0 @@
-goog.provide('image.collections.extension.VisibleElementFilter');
-
-goog.require('goog.dom');
-goog.require('goog.style');
-goog.require('image.collections.extension.ElementFilter');
-
-goog.scope(function() {
-var ElementFilter = image.collections.extension.ElementFilter;
-
-
-
-/**
- * Filters elements by visibility.
- * @implements {ElementFilter}
- * @constructor
- */
-image.collections.extension.VisibleElementFilter = function() {};
-var VisibleElementFilter = image.collections.extension.VisibleElementFilter;
-
-
-/** @override */
-VisibleElementFilter.prototype.filter = function(element) {
- // TODO(busaryev): handle the overflow: hidden case.
- var ancestorElement = element;
- while (ancestorElement) {
- if (goog.style.getComputedStyle(ancestorElement, 'display') == 'none') {
- return false;
- }
- var size = goog.style.getSize(ancestorElement);
- var overflow = goog.style.getComputedStyle(ancestorElement, 'overflow');
- if ((overflow == 'hidden') && size.isEmpty()) {
- return false;
- }
- if (goog.style.getComputedStyle(ancestorElement, 'visibility') ==
- 'hidden') {
- return false;
- }
-
- ancestorElement = goog.dom.getParentElement(ancestorElement);
- }
- return true;
-};
-}); // goog.scope
« no previous file with comments | « third_party/document_image_extractor/third_party/src/element_filter.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698