summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authoryoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-30 12:13:09 +0000
committeryoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-30 12:13:09 +0000
commitdd9e7ce7fc9932d775968f0058e2ace867c1e890 (patch)
tree36b10b3767c56a92a697e400e3eec540e60df700 /ui
parent95918a2f4b00a5c265c20cfed1cd9da5f47591e9 (diff)
downloadchromium_src-dd9e7ce7fc9932d775968f0058e2ace867c1e890.zip
chromium_src-dd9e7ce7fc9932d775968f0058e2ace867c1e890.tar.gz
chromium_src-dd9e7ce7fc9932d775968f0058e2ace867c1e890.tar.bz2
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
Diffstat (limited to 'ui')
-rw-r--r--ui/webui/resources/js/cr/ui/grid.js7
-rw-r--r--ui/webui/resources/js/cr/ui/table.js2
2 files changed, 5 insertions, 4 deletions
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);
});