Commit graph

12 commits

Author SHA1 Message Date
Ivailo Monev
bb26b6abd8 generic: make KJS KHTML exclusive
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-04 16:07:03 +02:00
Ivailo Monev
225eb7a170 generic: remove Java and image plugins for khtml
the Java applet viewer has not been touch for a long time and I
suppose nobody will. the image plugin is useless when gwenview is
installed which is the image viewer for KDE.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-03 03:52:19 +02:00
Ivailo Monev
ad78e5d7b6 khtml: simplify line break handling
for the Thai language it get's it right most of the time, the
point is to avoid dlopen-ing the library and resolving the symbols
at runtime avoiding overheat and dependency on the library by
making use of what Qt4/Katie offers. the actual compile-time check
for libthai was not in place so it was always probed for at
runtime which can cause all kinds of problems and leaves open an
attack vector.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-01 06:17:53 +02:00
Ivailo Monev
aef9f7cf16 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-25 18:59:51 +02:00
Ivailo Monev
16fe7d53bd generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-24 04:42:44 +02:00
Ivailo Monev
a5d692d325 khtml: store page caches in memory
they are small enough (usually ~200KB) to not cause major increase
of system requirements as QCache is used and it defaults to not
more than 10 entries. worst case scenario they can be compressed
via qCompress() but that will make things a bit more complicated.

the change prevents exposure of the page caches so that
overwriting them for malicious purposes is less likely to happen.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-22 19:23:09 +02:00
Ivailo Monev
2f72cbbdbe khtml: use QImageReader explicitly
this allows to use char* instead of uchar* to avoid some casts,
also incremental requests are no more and the data is handled in
one go to avoid a lot of small memory allocations and extra array
for each image. it does perform slitely worse but with this a lot
more image formats can be handled with higher quality (slitely)
and even more correct, some images previously did not show
at all because of the broken image handlers.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-20 07:03:18 +02:00
Ivailo Monev
ffc882bbde khtml: build system cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-14 00:28:18 +02:00
Ivailo Monev
d7678b6e94 khtml: build debugger only when build type is Debug
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-10 01:11:59 +02:00
Ivailo Monev
39f1e04295 generic: add back khtml and kjs with some changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-09 23:23:53 +02:00
Ivailo Monev
089d87392b removed khtml 2014-11-18 13:21:08 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00