Index: LayoutTests/fast/css/custom-font-xheight.html |
diff --git a/LayoutTests/fast/css/custom-font-xheight.html b/LayoutTests/fast/css/custom-font-xheight.html |
index 8a173a50e3466eab82ab64d8dc40b2656cef3fc2..7f74f18f18b64dfcdf3e3aec9c91407801d9560e 100644 |
--- a/LayoutTests/fast/css/custom-font-xheight.html |
+++ b/LayoutTests/fast/css/custom-font-xheight.html |
@@ -42,8 +42,7 @@ if (window.testRunner) |
function test() |
{ |
- var totalHeight = document.defaultView.getComputedStyle(document.getElementById("test"), null).getPropertyCSSValue("height"); |
- totalHeight = totalHeight.getFloatValue(CSSPrimitiveValue.CSS_PX); |
+ var totalHeight = parseFloat(getComputedStyle(document.getElementById("test")).height); |
if (totalHeight > 150 && totalHeight < 300) |
document.getElementById("result").innerHTML = "PASS"; |
else |