From dd9e7ce7fc9932d775968f0058e2ace867c1e890 Mon Sep 17 00:00:00 2001 From: "yoshiki@chromium.org" Date: Wed, 30 Jan 2013 12:13:09 +0000 Subject: Added missing 'window.' prefix. A 'window.' prefix cannot be omitted to pass closure compiler. BUG=none TEST=manual Review URL: https://chromiumcodereview.appspot.com/12094014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179610 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/webui/resources/js/cr/ui/grid.js | 7 ++++--- ui/webui/resources/js/cr/ui/table.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'ui/webui') diff --git a/ui/webui/resources/js/cr/ui/grid.js b/ui/webui/resources/js/cr/ui/grid.js index 303f28f..1203cf4 100644 --- a/ui/webui/resources/js/cr/ui/grid.js +++ b/ui/webui/resources/js/cr/ui/grid.js @@ -122,7 +122,7 @@ cr.define('cr.ui', function() { // Check changings that may affect number of columns. var offsetWidth = this.offsetWidth; var offsetHeight = this.offsetHeight; - var overflowY = getComputedStyle(this).overflowY; + var overflowY = window.getComputedStyle(this).overflowY; if (this.lastOffsetWidth_ == offsetWidth && this.lastOverflowY == overflowY) { @@ -358,8 +358,9 @@ cr.define('cr.ui', function() { * @return {boolean} True if accessibility is enabled. */ isAccessibilityEnabled: function() { - return window.cvox && cvox.Api && - cvox.Api.isChromeVoxActive && cvox.Api.isChromeVoxActive(); + return window.cvox && window.cvox.Api && + window.cvox.Api.isChromeVoxActive && + window.cvox.Api.isChromeVoxActive(); }, /** diff --git a/ui/webui/resources/js/cr/ui/table.js b/ui/webui/resources/js/cr/ui/table.js index a2c1bcc..d561ca4 100644 --- a/ui/webui/resources/js/cr/ui/table.js +++ b/ui/webui/resources/js/cr/ui/table.js @@ -354,7 +354,7 @@ cr.define('cr.ui', function() { container.appendChild(div); } list.appendChild(container); - var width = parseFloat(getComputedStyle(container).width); + var width = parseFloat(window.getComputedStyle(container).width); list.removeChild(container); cm.setWidth(index, width); }); -- cgit v1.1