Lines Matching refs:old_unit
601 int old_unit = GPOINTER_TO_INT( g_object_get_data(tbl, "lineheight_unit"));
631 if ((unit->abbr == "" || unit->abbr == "em") && old_unit == SP_CSS_UNIT_EX) {
633 } else if ((unit->abbr) == "ex" && (old_unit == SP_CSS_UNIT_EM || old_unit == SP_CSS_UNIT_NONE) ) {
635 } else if ((unit->abbr == "" || unit->abbr == "em") && old_unit == SP_CSS_UNIT_PERCENT) {
637 } else if ((unit->abbr) == "%" && (old_unit == SP_CSS_UNIT_EM || old_unit == SP_CSS_UNIT_NONE) ) {
639 } else if ((unit->abbr) == "ex" && old_unit == SP_CSS_UNIT_PERCENT) {
641 } else if ((unit->abbr) == "%" && old_unit == SP_CSS_UNIT_EX) {
660 if (old_unit == SP_CSS_UNIT_NONE) old_unit = SP_CSS_UNIT_EM;
661 line_height = Quantity::convert(line_height, sp_style_get_css_unit_string(old_unit), "px");
671 } else if (old_unit==SP_CSS_UNIT_NONE || old_unit==SP_CSS_UNIT_PERCENT ||
672 old_unit==SP_CSS_UNIT_EM || old_unit==SP_CSS_UNIT_EX) {
689 if (old_unit == SP_CSS_UNIT_PERCENT) {
691 } else if (old_unit == SP_CSS_UNIT_EX) {
698 line_height = Quantity::convert(line_height, sp_style_get_css_unit_string(old_unit), unit);