MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / cvt_units

Method cvt_units

player/NymphCastPlayer/litehtml/src/document.cpp:293–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293int 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
306int litehtml::document::cvt_units( css_length& val, int fontSize, int size ) const
307{

Callers 10

create_from_stringMethod · 0.80
parse_stylesMethod · 0.80
parse_stylesMethod · 0.80
parse_backgroundMethod · 0.80
init_fontMethod · 0.80
render_boxMethod · 0.80
get_predefined_heightMethod · 0.80
calc_widthMethod · 0.80
calc_max_heightMethod · 0.80
renderMethod · 0.80

Calls 11

round_fFunction · 0.85
minFunction · 0.85
maxFunction · 0.85
unitsMethod · 0.80
is_predefinedMethod · 0.80
calc_percentMethod · 0.80
valMethod · 0.80
pt_to_pxMethod · 0.80
get_font_sizeMethod · 0.80
fromStringMethod · 0.45
set_valueMethod · 0.45

Tested by

no test coverage detected