Commit graph

679 commits

Author SHA1 Message Date
Ivailo Monev
05dd897b78 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-26 03:17:36 +00:00
Ivailo Monev
0041788b7f khtml: update adblock subscriptions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-25 04:53:54 +00:00
Ivailo Monev
73d50c52e9 kutils: for some media classes bugs
one bug was that replay was not possible after sucessfull finish, another
one was that controls remained hidden after finish because path is empty
and finally the play/pause button was not update on finish because MPV does
not emit the event on finish (noted in the API docs)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-25 04:43:58 +00:00
Ivailo Monev
3d92b0104f generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-25 03:23:43 +00:00
Ivailo Monev
38f880f312 kutils: make multimedia context creation more tolerant
returing from the constructor prematurely is not a good idea because the
settings pointer may be left uninitialized, also issue a general warning
if mpv_create() failed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-24 00:06:16 +00:00
Ivailo Monev
a26021c35c kutils: rework some parts of the media classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-23 04:16:54 +00:00
Ivailo Monev
003bfe1da1 kutils: add more paranoia checks to KMediaWidget
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-20 23:16:57 +00:00
Ivailo Monev
977adde9a6 kutils: set MPV debug level to info
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-20 23:16:24 +00:00
Ivailo Monev
d398932909 generic: drop Phonon in favour of MPV and custom player classes
kcompactdisc was remove because there is no use for it in the
current set of applications supported, if it is needed it will
need some work to make it use KMediaPlayer or whatever.

the Plasma VideoWidget class was dropped because custom widgets
(at some point) will be dropped unless absolutely needed and
hopefully getting rid of the heavy-weight QML stuff.

the new KMediaPlayer and KMediaWidgets classes are experimental
but they have been tested and they work as they should.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-20 02:43:02 +00:00
Ivailo Monev
2446169266 kjs: remove extra efforts to sanitize regexp
it is simply not worth it in 99% if the cases

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-11 03:49:12 +00:00
Ivailo Monev
cd76787921 khtml: further simplify the arena allocator
also for debug builds an assert has been added to ensure that
memory has been freed as many times as it has been allocated

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-11 02:07:54 +00:00
Ivailo Monev
b460d91fb0 khtml: simplify arena allocator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-10 21:58:35 +00:00
Ivailo Monev
0316d313bf khtml: make debugging of rendering memory pools easier
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-10 21:04:34 +00:00
Ivailo Monev
02c10edfd2 kdewidgets: fix regression since a7b93fa3
the automatically generated widgets source were not included in
the target sources because the sources list variable was overriden
but should have not been the case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-10 16:15:40 +00:00
Ivailo Monev
75af9fbb87 plasma: move wallpaper rendering to main thread
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-09 15:32:10 +00:00
Ivailo Monev
6e683d468b kio: fix build without Strigi
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-08 14:56:51 +00:00
Ivailo Monev
24262a6821 khtml: do not use arenas for rendering for release builds
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-07 04:15:01 +00:00
Ivailo Monev
4e4398ee0c Revert "khtml: do not use arenas for rendering allocations"
This reverts commit 45a85bce5d.
2016-03-07 04:14:03 +00:00
Ivailo Monev
45a85bce5d khtml: do not use arenas for rendering allocations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-07 03:48:04 +00:00
Ivailo Monev
baaae44ee1 khtml: fix debug build after 1159ece1
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-07 01:20:19 +00:00
Ivailo Monev
1159ece183 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-06 15:59:05 +00:00
Ivailo Monev
c9cbc904e1 generic: adjust plugin installation paths
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-06 14:59:19 +00:00
Ivailo Monev
05145bc776 cmake: adjust paths so that plugins can be found by QLibrary
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-05 05:01:02 +02:00
Ivailo Monev
376484dff8 generic: get rid of KLibrary
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-05 03:36:21 +02:00
Ivailo Monev
89e60600f8 kdecore: remove unused KSycoca enumerators
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-05 02:45:52 +02:00
Ivailo Monev
d8c17c0a7e kdecore: do not define KStandardDirs defaults on the stack
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-04 20:51:02 +02:00
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
e8c09de3c1 khtml: cleanup Java leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-03 04:46:49 +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
ac6aaa5fee khtml: cleanup and fix alpha channel detection regression since 2f72cbbd
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-29 03:45:57 +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
ce25e6a7f9 khtml: get rid of "FastMalloc"
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-24 05:21:15 +02:00
Ivailo Monev
0db6a11416 kjs: fix a compiler warning
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-24 05:11:35 +02:00
Ivailo Monev
a946b15968 kjs: get rid of "FastMalloc"
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-24 05:04:58 +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
1d0fabce0f plasma: fix build against Katie
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-23 01:38:15 +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
f861163435 khtml: do not bother compressing page caches
they are very small and the compression cost is not worth it in most cases

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-20 18:01:07 +02:00
Ivailo Monev
8cd418cd6a kdecore: cleanup Desktop file handler
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-20 16:39:26 +02:00
Ivailo Monev
fea84d5570 kdecore: use QCache for the standard directories cache
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-20 16:21:10 +02:00
Ivailo Monev
ca67972e3f khtml: disable xpath parser debugging for release builds
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-20 07:28:15 +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
106a76e67f generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-17 20:49:17 +02:00
Ivailo Monev
523b0445f0 kdecore: fix build on musl
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-14 02:33:11 +02:00
Ivailo Monev
2edcb0b5d8 kdecore: fix build on musl
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-14 01:56:00 +02:00
Ivailo Monev
14f89b73a3 kdeui: do not hardcode the pixmaps directory
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-12 20:53:00 +02:00
Ivailo Monev
e7cb928c80 Revert "kio: make checkDesktopFile in kfileitem operation"
This reverts commit e89235680d.
2016-02-07 16:41:08 +00:00
Ivailo Monev
c2c63fa928 cmake: fix detection of QCA Katie build
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-29 17:20:32 +02:00
Ivailo Monev
6fce4d2cee cmake: fix detection of QCA Katie build
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-29 17:16:40 +02:00