Index: chrome/browser/resources/print_preview/print_preview_utils.js |
diff --git a/chrome/browser/resources/print_preview/print_preview_utils.js b/chrome/browser/resources/print_preview/print_preview_utils.js |
index 14eec327457fbad5a4eb3236077bc27806e17350..a7b6a74c0595dbb05f2f6a25b8e419cf0f7a18f1 100644 |
--- a/chrome/browser/resources/print_preview/print_preview_utils.js |
+++ b/chrome/browser/resources/print_preview/print_preview_utils.js |
@@ -187,8 +187,16 @@ function pageSetToPageRanges(pageSet) { |
} |
/** |
+ * @param {!HTMLElement} element Element to check for visibility. |
+ * @return {boolean} Whether the given element is visible. |
+ */ |
+function getIsVisible(element) { |
+ return !element.hidden; |
+} |
+ |
+/** |
* Shows or hides an element. |
- * @param {Element} element Element to show or hide. |
+ * @param {!HTMLElement} element Element to show or hide. |
* @param {boolean} isVisible Whether the element should be visible or not. |
*/ |
function setIsVisible(element, isVisible) { |