From 061d9823f50068f4f006b01ac0a263070aff2a03 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Wed, 1 Dec 2021 18:44:42 +0000 Subject: [PATCH] WebView: optimization of the prior commit git-svn-id: svn://kolibrios.org@9351 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/browser/TWB/set_style.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/programs/cmm/browser/TWB/set_style.h b/programs/cmm/browser/TWB/set_style.h index d4d606413d..dd9b9d764e 100644 --- a/programs/cmm/browser/TWB/set_style.h +++ b/programs/cmm/browser/TWB/set_style.h @@ -150,17 +150,17 @@ void TWebBrowser::tag_meta_xml() } if (streq(tag.get_value_of("name"), "application")) { if (application_mode) { - if (tag.get_value_of("left")) { - MoveSize(atoi(tag.value),-1,-1,-1); + if (tag.get_number_of("left")) { + MoveSize(tag.number,-1,-1,-1); } - if (tag.get_value_of("top")) { - MoveSize(-1,atoi(tag.value),-1,-1); + if (tag.get_number_of("top")) { + MoveSize(-1,tag.number,-1,-1); } - if (tag.get_value_of("width")) { - MoveSize(-1,-1,atoi(tag.value),-1); + if (tag.get_number_of("width")) { + MoveSize(-1,-1,tag.number,-1); } - if (tag.get_value_of("height")) { - MoveSize(-1,-1,-1,atoi(tag.value)); + if (tag.get_number_of("height")) { + MoveSize(-1,-1,-1,tag.number); } } }