summaryrefslogtreecommitdiffstats
path: root/ui/webui
diff options
context:
space:
mode:
Diffstat (limited to 'ui/webui')
-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);
});