Fix build with force_static_libs_as_shared

The tools and tests now only links directly against webkitwidgets,
which means they not treated correctly force_static_libs_as_shared mode.

Change-Id: If51c1af1fad3c070710742d2db797d2c073d6046
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Fix dragging of selections

A regression from (r151091) broke drag and drop of selections. This
patch restores the maintenance of the m_writableData which is used
by DragClientQt.

Task-number: QTBUG-37314
Change-Id: I9afa193daec53d8d5affa560b8f225bb7dc79470
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Fix link and image dragging

Ensure we can drag and drop images, and fix copying and dragging of
links so the link title is correctly preserved.

Change-Id: Ib257ee67405ac259c72387616b5d620b163c07b0
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Fix doc warnings

- Qt for Embedded Linux Requirements isn't available since Qt5
- NOTIFY signal documentations are now ignored and are part of their property
- The QtQuick1 WebView code isn't available anymore
- Adjust to other renamed and removed pages

Change-Id: Ife04becb1a847fb0bfb11dfafa6db2caa36aa9f0
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Fix a documentation oversight

We had forgotten a few substitutions in the process it would seem.

Change-Id: I37297c39bea84b0d277784edb80e72eab8de7ca7
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Fix build: LLIntAssembly.h is in a subdir of generated/

ruby /home/thiago/src/qt/qt5/qtwebkit/Source/JavaScriptCore/offlineasm/asm.rb /home/thiago/src/qt/qt5/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm LLIntOffsetsExtractor generated/LLIntOffsetsExtractor/LLIntAssembly.h
offlineasm: Parsing /home/thiago/src/qt/qt5/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm and LLIntOffsetsExtractor and creating assembly file generated/LLIntOffsetsExtractor/LLIntAssembly.h.

Change-Id: If12f1476de74c3feeb5c6d6e2e115829e1106581
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Fix compiler warnings when building Qt WebKit

Fix warnings about C++11 violating syntax, unused variables in leveldb
and non anynomous classes deriving from anonymous ones.

Change-Id: I39326eed03fabe2856f1ea7c93eff65f30ee78ee
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Fix static builds

Disable WebKit2 since WTF from qtdeclarative conflicts with ours,
and renable use of thin archives for static builds, except only use
it for the intermediate staticlibs.

Change-Id: Iee625c5d25f01d1700d4c89028578e4d1288e2ba
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Doc: Put \qtvariable in module page back

It was removed by d441d6f39bb846989d95bcf5caf387b42414718d for
some reason.

Change-Id: I333cf71dc5bf69b3a1f5aa04f5089e9fbd617c6b
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I633b40f8083ed0a056df5effaf19cf22e2f9a5d9
Mention default encoding for QML WebView loadHtml method in docs.

The fact that the html string will be implicitly converted to UTF-16
led to some errors with loaded resources.

Task-number: QTBUG-36656
Change-Id: I6ed36e2e814034cfccb4082c24e3327674e04cdf
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Fix loading nested mpegurls using GStreamer

If gstreamer tries to load an http source, we currently lose the context
of where it is loaded from, which causes the load to fail.

This patch caches a loading context when one is set on the outer most
appsrc, and uses that for gstreamer requests until the outer most source
is unloaded.

This can have consequences if multiple webviews are open at the same
time with different QNetworkAccessManagers, but this is considered
unusual, and wouldn't work with the QtMultimedia either.

Task-number: QTBUG-37636
Change-Id: I9d3b4d10705254629bc5fce7d76765077585caa2
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Fix crash on access of dead QMimeData

When we give a QMimeData to the system pasteboard, we should no longer
access it locally.

This patch ensures we invalidate the pointer to the QMimeDate once it
has been uploaded to the system clipboard. To ensure we can still read
values we have writen, the code to read the pasteboard data will now
read it from the system pasteboard when applicable. Several places
the latter was done manually have been removed.

Task-number: QTBUG-37904
Change-Id: I9c37b2fcc58ebbc387319be39c190fd7db6f70eb
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Set image drag hotspot from drag image origin.

QtWebKit does not currently set the drag image origin, this cause
any dragged image to always visibly jump as soon as the drag start.

By setting the hotspot any dragged image will start at its origin and
only move when then the mouse moves.

Change-Id: I6cdfa1bdbcf79a63f26fc62442978f65aabd493b
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: If269e1ff5b01c01e4168f5ef43e7346253cc837b