From: <asa...@us...> - 2016-04-11 11:30:50
|
Revision: 12384 http://sourceforge.net/p/htmlunit/code/12384 Author: asashour Date: 2016-04-11 11:30:47 +0000 (Mon, 11 Apr 2016) Log Message: ----------- simplify Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java 2016-04-11 11:21:57 UTC (rev 12383) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java 2016-04-11 11:30:47 UTC (rev 12384) @@ -602,7 +602,11 @@ */ @Override public String getFontSize() { - return defaultIfEmpty(super.getFontSize(), FONT_SIZE); + String value = super.getFontSize(); + if (!value.isEmpty()) { + value = pixelValue(value) + "px"; + } + return value; } /** |