WebView: optimization of the prior commit

git-svn-id: svn://kolibrios.org@9351 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2021-12-01 18:44:42 +00:00
parent 67c53d7a93
commit 061d9823f5

View File

@ -150,17 +150,17 @@ void TWebBrowser::tag_meta_xml()
} }
if (streq(tag.get_value_of("name"), "application")) { if (streq(tag.get_value_of("name"), "application")) {
if (application_mode) { if (application_mode) {
if (tag.get_value_of("left")) { if (tag.get_number_of("left")) {
MoveSize(atoi(tag.value),-1,-1,-1); MoveSize(tag.number,-1,-1,-1);
} }
if (tag.get_value_of("top")) { if (tag.get_number_of("top")) {
MoveSize(-1,atoi(tag.value),-1,-1); MoveSize(-1,tag.number,-1,-1);
} }
if (tag.get_value_of("width")) { if (tag.get_number_of("width")) {
MoveSize(-1,-1,atoi(tag.value),-1); MoveSize(-1,-1,tag.number,-1);
} }
if (tag.get_value_of("height")) { if (tag.get_number_of("height")) {
MoveSize(-1,-1,-1,atoi(tag.value)); MoveSize(-1,-1,-1,tag.number);
} }
} }
} }