| OLD | NEW |
| (Empty) |
| 1 diff --git a/third_party/document_image_extractor/third_party/closure-library/cl
osure/goog/dom/dom.js b/third_party/document_image_extractor/third_party/closure
-library/closure/goog/dom/dom.js | |
| 2 index 9b9ec9e..2d0cdd0 100644 | |
| 3 --- a/third_party/document_image_extractor/third_party/closure-library/closure/g
oog/dom/dom.js | |
| 4 +++ b/third_party/document_image_extractor/third_party/closure-library/closure/g
oog/dom/dom.js | |
| 5 @@ -249,7 +249,7 @@ goog.dom.getElementByClass = function(className, opt_el) { | |
| 6 * @param {string} className the name of the class to look for. | |
| 7 * @param {!Element|!Document=} opt_root Optional element or document to look | |
| 8 * in. | |
| 9 - * @return {!Element} The first item with the class name provided. | |
| 10 + * @return {!Element|null} The first item with the class name provided. | |
| 11 * @throws {goog.asserts.AssertionError} Thrown if no element is found. | |
| 12 */ | |
| 13 goog.dom.getRequiredElementByClass = function(className, opt_root) { | |
| 14 @@ -2340,7 +2340,7 @@ goog.dom.DomHelper.prototype.getElementByClass = function(
className, opt_el) { | |
| 15 * @param {string} className the name of the class to look for. | |
| 16 * @param {(!Element|!Document)=} opt_root Optional element or document to look | |
| 17 * in. | |
| 18 - * @return {!Element} The first item found with the class name provided. | |
| 19 + * @return {!Element|null} The first item found with the class name provided. | |
| 20 * @throws {goog.asserts.AssertionError} Thrown if no element is found. | |
| 21 */ | |
| 22 goog.dom.DomHelper.prototype.getRequiredElementByClass = function(className, | |
| 23 diff --git a/third_party/document_image_extractor/third_party/closure-library/cl
osure/goog/style/style.js b/third_party/document_image_extractor/third_party/clo
sure-library/closure/goog/style/style.js | |
| 24 index c9179b2f..9ed0efa 100644 | |
| 25 --- a/third_party/document_image_extractor/third_party/closure-library/closure/g
oog/style/style.js | |
| 26 +++ b/third_party/document_image_extractor/third_party/closure-library/closure/g
oog/style/style.js | |
| 27 @@ -38,8 +38,8 @@ goog.require('goog.object'); | |
| 28 goog.require('goog.string'); | |
| 29 goog.require('goog.userAgent'); | |
| 30 | |
| 31 -goog.forwardDeclare('goog.events.BrowserEvent'); | |
| 32 -goog.forwardDeclare('goog.events.Event'); | |
| 33 +goog.require('goog.events.BrowserEvent'); | |
| 34 +goog.require('goog.events.Event'); | |
| 35 | |
| 36 | |
| 37 /** | |
| 38 @@ -438,7 +438,7 @@ goog.style.getViewportPageOffset = function(doc) { | |
| 39 * If the element is not in the DOM, the result is undefined, and an error may | |
| 40 * be thrown depending on user agent. | |
| 41 * | |
| 42 - * @param {!Element} el The element whose bounding rectangle is being queried. | |
| 43 + * @param {!Element|null} el The element whose bounding rectangle is being quer
ied. | |
| 44 * @return {Object} A native bounding rectangle with numerical left, top, | |
| 45 * right, and bottom. Reported by Firefox to be of object type ClientRect. | |
| 46 * @private | |
| 47 @@ -819,7 +819,7 @@ goog.style.getRelativePosition = function(a, b) { | |
| 48 /** | |
| 49 * Returns the position of the event or the element's border box relative to | |
| 50 * the client viewport. | |
| 51 - * @param {!Element} el Element whose position to get. | |
| 52 + * @param {!Element|null} el Element whose position to get. | |
| 53 * @return {!goog.math.Coordinate} The position. | |
| 54 * @private | |
| 55 */ | |
| 56 diff --git a/third_party/document_image_extractor/third_party/closure-library/cl
osure/goog/events/eventhandler.js b/third_party/document_image_extractor/third_p
arty/closure-library/closure/goog/events/eventhandler.js | |
| 57 index 16b1ad0..3551d10 100644 | |
| 58 --- a/third_party/document_image_extractor/third_party/closure-library/closure/g
oog/events/eventhandler.js | |
| 59 +++ b/third_party/document_image_extractor/third_party/closure-library/closure/g
oog/events/eventhandler.js | |
| 60 @@ -61,7 +61,7 @@ goog.require('goog.Disposable'); | |
| 61 goog.require('goog.events'); | |
| 62 goog.require('goog.object'); | |
| 63 | |
| 64 -goog.forwardDeclare('goog.events.EventWrapper'); | |
| 65 +goog.require('goog.events.EventWrapper'); | |
| 66 | |
| 67 | |
| 68 | |
| 69 diff --git a/third_party/document_image_extractor/third_party/closure-library/cl
osure/goog/events/events.js b/third_party/document_image_extractor/third_party/c
losure-library/closure/goog/events/events.js | |
| 70 index 39cc405..7687b5c 100644 | |
| 71 --- a/third_party/document_image_extractor/third_party/closure-library/closure/g
oog/events/events.js | |
| 72 +++ b/third_party/document_image_extractor/third_party/closure-library/closure/g
oog/events/events.js | |
| 73 @@ -63,8 +63,8 @@ goog.require('goog.events.BrowserFeature'); | |
| 74 goog.require('goog.events.Listenable'); | |
| 75 goog.require('goog.events.ListenerMap'); | |
| 76 | |
| 77 -goog.forwardDeclare('goog.debug.ErrorHandler'); | |
| 78 -goog.forwardDeclare('goog.events.EventWrapper'); | |
| 79 +goog.require('goog.debug.ErrorHandler'); | |
| 80 +goog.require('goog.events.EventWrapper'); | |
| 81 | |
| 82 | |
| 83 /** | |
| 84 diff --git a/third_party/document_image_extractor/third_party/closure-library/cl
osure/goog/ui/component.js b/third_party/document_image_extractor/third_party/cl
osure-library/closure/goog/ui/component.js | |
| 85 index b8806fd..0ee9b9f 100644 | |
| 86 --- a/third_party/document_image_extractor/third_party/closure-library/closure/g
oog/ui/component.js | |
| 87 +++ b/third_party/document_image_extractor/third_party/closure-library/closure/g
oog/ui/component.js | |
| 88 @@ -474,7 +474,7 @@ goog.ui.Component.prototype.getElement = function() { | |
| 89 * it assumes that the element exists (i.e. the component has been | |
| 90 * rendered/decorated) and will cause an assertion error otherwise (if | |
| 91 * assertion is enabled). | |
| 92 - * @return {!Element} The element for the component. | |
| 93 + * @return {!Element|null} The element for the component. | |
| 94 */ | |
| 95 goog.ui.Component.prototype.getElementStrict = function() { | |
| 96 var el = this.element_; | |
| 97 @@ -530,7 +530,7 @@ goog.ui.Component.prototype.getElementByClass = function(cla
ssName) { | |
| 98 * element to be present in the dom thus returning a required value. Otherwise, | |
| 99 * will assert. | |
| 100 * @param {string} className The name of the class to look for. | |
| 101 - * @return {!Element} The first item with the class name provided. | |
| 102 + * @return {!Element|null} The first item with the class name provided. | |
| 103 */ | |
| 104 goog.ui.Component.prototype.getRequiredElementByClass = function(className) { | |
| 105 var el = this.getElementByClass(className); | |
| OLD | NEW |