| 291 | } |
| 292 | |
| 293 | int litehtml::document::cvt_units( const tchar_t* str, int fontSize, bool* is_percent/*= 0*/ ) const |
| 294 | { |
| 295 | if(!str) return 0; |
| 296 | |
| 297 | css_length val; |
| 298 | val.fromString(str); |
| 299 | if(is_percent && val.units() == css_units_percentage && !val.is_predefined()) |
| 300 | { |
| 301 | *is_percent = true; |
| 302 | } |
| 303 | return cvt_units(val, fontSize); |
| 304 | } |
| 305 | |
| 306 | int litehtml::document::cvt_units( css_length& val, int fontSize, int size ) const |
| 307 | { |
no test coverage detected