HTMLv: fixes

git-svn-id: svn://kolibrios.org@4533 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2014-01-27 01:17:07 +00:00
parent f17a706c3f
commit 72b2ccfd17
4 changed files with 10 additions and 14 deletions

View File

@ -474,7 +474,7 @@ void TWebBrowser::WhatTextStyle(int left1, top1, width1) {
TextGoDown(left1, top1, width1);
return;
}
if (isTag("div")) {
if (isTag("div")) || (isTag("header")) || (isTag("footer")) {
IF(oldtag[0] <>'h') TextGoDown(left1, top1, width1);
return;
}

View File

@ -79,16 +79,6 @@ void main()
switch(EAX & 0xFF)
{
CASE evMouse:
/*
//not work well, so we are use custom way of processing scroll
scrollbar_v_mouse (#scroll_wv);
if (WB1.list.first <> scroll_wv.position)
{
WB1.list.first = scroll_wv.position;
WB1.ParseHTML(buf, filesize);
};
*/
if (!CheckActiveProcess(Form.ID)) break;
edit_box_mouse stdcall (#address_box);
@ -241,7 +231,12 @@ void Scan(int id)
WB1.ParseHTML(buf);
return;
case 002: //free img cache
case 005: //Win encoding
WB1.ReadHtml(_WIN);
WB1.ParseHTML(buf);
return;
case 009: //free img cache
ImgCache.Free();
notify(IMAGES_CACHE_CLEARED);
WB1.ParseHTML(buf);

View File

@ -1,7 +1,7 @@
//Leency - 2012-2013
char *ITEMS_LIST[]={
"WIN F5",54,
"WIN Ctrl+E",05,
"DOS Ctrl+D",04,
"KOI Ctrl+K",11,
"UTF Ctrl+U",21,
@ -10,7 +10,7 @@ char *ITEMS_LIST[]={
"Žç¨áâ¨âì ªíè ª à⨭®ª" ,02,
#else
"View source F3",52,
"Free image cache" ,02,
"Free image cache" ,09,
#endif
0};

View File

@ -41,6 +41,7 @@ void llist::SetSizes(int xx, yy, ww, hh, min_hh, line_hh)
int llist::MouseScroll(dword scroll_state)
{
if (count<=visible) return 0;
if (scroll_state == 65535)
{
if (first == 0) return 0;