WebView beta 4: bugfixes

git-svn-id: svn://kolibrios.org@8355 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2020-12-09 20:26:53 +00:00
parent 7fc85872d7
commit 810085e9ec
5 changed files with 8 additions and 4 deletions

View File

@ -160,6 +160,7 @@ csv=21
xls=21
xlsx=21
nes=23
sna=23
bat=24
sh=24
sys=25

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -124,7 +124,7 @@ void TWebBrowser::SetPageDefaults()
style.tag_list.reset();
link_color_default = 0x0000FF;
link_color_active = 0xFF0000;
page_bg = 0xFFFFFF;
page_bg = 0xEBE8E9; //E0E3E3 EBE8E9
style.bg_color = page_bg;
DrawBuf.Fill(0, page_bg);
links.clear();
@ -457,6 +457,7 @@ void TWebBrowser::SetStyle() {
strlcpy(#img_path, value, sizeof(img_path)-1);
get_absolute_url(#img_path, history.current());
//if (check_is_the_adress_local(#img_path)) <== load local files
if (cache.has(#img_path))
{
img_decode stdcall (cache.current_buf, cache.current_size, 0);

View File

@ -42,7 +42,7 @@
// DATA //
// //
//===================================================//
char version[]="WebView 2.8 BETA 3";
char version[]="WebView 2.8 BETA 4";
#define DEFAULT_URL URL_SERVICE_HOMEPAGE
@ -421,7 +421,7 @@ void EventAllTabsClick(dword _n)
EventTabClose(_n);
} else {
EventTabClick(_n);
}
}
}
void EventEditSource()
@ -451,7 +451,6 @@ void StopLoading()
{
if (http.stop()) pause(10);
prbar.value = 0;
DrawOmnibox();
}
//rewrite into
@ -893,6 +892,8 @@ void DrawOmnibox()
void SetOmniboxText(dword _text)
{
edit_box_set_text stdcall (#omnibox_edit, _text);
omnibox_edit.pos = omnibox_edit.flags = 0;
DrawOmnibox();
}
dword GetAbsoluteActiveURL()

View File

@ -48,6 +48,7 @@ void _cache::clear()
url.drop();
data.drop();
size.drop();
type.drop();
current_buf = NULL;
current_size = NULL;
}