1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 goog.provide('image.collections.extension.domextractor.Size');
8 goog.scope(function() {
13 * @param {number} width
14 * @param {number} height
17 image.collections.extension.domextractor.Size = function(width, height) {
27 * @return {number} The area of the size (width * height).
29 image.collections.extension.domextractor.Size.prototype.area = function() {
30 return this.width * this.height;