Do no check seek offset against internal size on gstreamer source element

https://bugs.webkit.org/show_bug.cgi?id=116533

Reviewed by Philippe Normand.

The internal size on gstreamer source element may be wrong in case the received size in
didReceiveResponse is not accurate. Lets just try to seek and let it fail if necessary.

* platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
(webKitWebSrcSeekDataCb):

Change-Id: Iacdd4e3f615528ba8bff2f1d6510855d45f9e1af
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
[GStreamer] cannot play live streams

https://bugs.webkit.org/show_bug.cgi?id=116831

Reviewed by Philippe Normand.

Source/WebCore:

Fix issues with rtsp streams embedded on <video> not loading.

* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
Do not reset pipeline to READY state on STATE_CHANGE_ASYNC when entering PAUSED state for
live streams, otherwise we enter an endless loop of READY->PAUSED->READY->PAUSED when
starting playback.

Change-Id: Iec00e0f41ca6b55994524c9864336f765c0d56d3
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Trigger layout after resizing the FrameView.

There are problems with QGLWidget based web plugins due to the fact
that WebKit forces us to relayout during paint events, which in turn
might resize widgets, causing the shared backing store's QImages to
be corrupted and hence causing crashed.

This patch triggers a layout upon resizing the FrameView, which reduces
the likely hood of resizing plugins during a subsequent paintEvent.

Task-number: QTBUG-34277
Change-Id: Id35c72a3cc68ac6633a74fba0669c2d8fbfabc88
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Add padding objects for classes with netscape plugin api conditionals.

When building with the Visual Studio Compiler on windows, we are facing
some problems because objects that are shared between WebKit1 and
WebKit2 have different memory maps for inlined accessors because the
Netscape Plugin API had to be disabled for the WebKit2 API on Windows
in the new snapshot for Qt 5.2.

This caused plugins not to be loaded because the wrong values for the
mime types and urls are returned and might lead to all kinds of bugs and
quirks.

This patch adds dummy pointers / data structures for the parts of the
build that do not have the Netscape Plugin API enabled.

Task-number: QTBUG-34280
Change-Id: Iaa2cd2b19d07eff71981f392d913ae5218495266
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Fix MSVC2013 compilation

Starting with MSVC 2013, more functions are provided.

Task-number: QTBUG-34705

Change-Id: I90bf939ad4503a00d31e81c148c6b4ef8af6caff
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Fix crash when converting QObjectList

We were passing on a PassRefPtr to multiple lower calls, since any
conversion from a PassRefPtr to a RefPtr will reset the PassRefPtr to
null, it should not be used for multiple calls.

Task-number: QTBUG-34278
Change-Id: I8d4bf28e25eb6e66baef38e0352c40a08f504538
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Fix left-over reference to qtlocation

QtWebKitWidgets were still incorrectly looking for the qtlocation module
instead of the qtpositioning module.

Change-Id: I3945a6d73e8438dadde05055c082ee3f4f39cdc6
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Merge remote-tracking branch 'origin/release' into stable

Change-Id: I66176b416e672de84bf9df7e96346c3bea0c4dca
Fix compilation on ARM

Android fix broke ARM compilation on non-Android Linux platforms.
Now correcly define Elf32_auxv_t only on Android/Qt and otherwise
include asm/hwcap.h

Same fix was previously applied to QtScript, which had the exact
same android problem (QTBUG-30978).

Task-number: QTBUG-34917
Change-Id: I29d570731754c6291f8dc0c379e6fdc8ec72b897
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Fix performance regression in HTML5 canvas stroke()

To solve corner case of stroking intersecting path with a transparent
color we switched the strokePath implementation to using QPainterPathStroker
in Qt 5. Unfortunately this appears to be 100-1000x slower than using
QPainter::strokePath.

This patch partially reverts the change and now only use QPainterPathStroker
when stroking a transparent outline.

Task-number: QTBUG-34855
Change-Id: I9f5c593b9093a8eb94a76081bbc2e7565c306afd
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
[sh4] Refactor jumps in baseline JIT to return label after the jump.

https://bugs.webkit.org/show_bug.cgi?id=123734

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-11-04
Reviewed by Michael Saboff.

Current implementation of jumps in sh4 baseline JIT returns a label on the jump itself
and not after it. This is not correct and leads to issues like infinite loop the DFG
(https://bugs.webkit.org/show_bug.cgi?id=122597 for instance). This refactor fixes this
and also simplifies the link and relink procedures for sh4 jumps.

* assembler/MacroAssemblerSH4.h:
(JSC::MacroAssemblerSH4::branchDouble):
(JSC::MacroAssemblerSH4::branchTrue):
(JSC::MacroAssemblerSH4::branchFalse):
* assembler/SH4Assembler.h:
(JSC::SH4Assembler::jmp):
(JSC::SH4Assembler::extraInstrForBranch):
(JSC::SH4Assembler::jne):
(JSC::SH4Assembler::je):
(JSC::SH4Assembler::bra):
(JSC::SH4Assembler::linkJump):
(JSC::SH4Assembler::relinkJump):

Change-Id: Ia31b326a1f3c41e9c913e513563ff1e6b8f8e55e
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158580 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
[sh4] Fix load32WithUnalignedHalfWords function in baseline JIT.

https://bugs.webkit.org/show_bug.cgi?id=124233

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-11-12
Reviewed by Michael Saboff.

* assembler/MacroAssemblerSH4.h:
(JSC::MacroAssemblerSH4::load32WithUnalignedHalfWords): Do not claim scratch register too early.
Test already covered by fast/regex/pcre-test-1.

Change-Id: Ib783d70723754e80d961ade9463d7dc85ccb83f0
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159153 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
[sh4] Protect repatchCompact from flushConstantPool.

https://bugs.webkit.org/show_bug.cgi?id=124278

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-11-13
Reviewed by Michael Saboff.

Random crashes may occur with sh4 architecture, when a flushConstantPool occurs in
movlMemRegCompact. As in this case a branch opcode and the constant pool are put
before the movlMemRegCompact, the branch itself is patched when calling repatchCompact
instead of the mov instruction, which is really bad.

* assembler/SH4Assembler.h:
(JSC::SH4Assembler::repatchCompact): Handle this specific case and add an ASSERT.

Change-Id: I9c0e78cade4d20d0d83d683ffe6a499cee63bdbb
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159203 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
[sh4] Fix revertJumpReplacementToBranchPtrWithPatch in MacroAssembler.

https://bugs.webkit.org/show_bug.cgi?id=124468

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-11-17
Reviewed by Michael Saboff.

Current implementation of revertJumpReplacementToBranchPtrWithPatch is wrong in
the sh4 MacroAssembler part, leading to random instabilities. This patch fixes it
and also renames the bad-named revertJumpToMove to revertJumpReplacementToBranchPtrWithPatch
in the SH4Assembler.

* assembler/MacroAssemblerSH4.h:
(JSC::MacroAssemblerSH4::revertJumpReplacementToBranchPtrWithPatch):
* assembler/SH4Assembler.h:
(JSC::SH4Assembler::replaceWithJump):
(JSC::SH4Assembler::revertJumpReplacementToBranchPtrWithPatch):

Change-Id: Ifbc6851f506a1303c85cff3a47c23e932fad033c
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159400 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Detach image data when returning an ImageFrame as a native image.

With error analysis and fixing guidance by Allan Sandfeld Jensen.

This caused crashes when a gif was being loaded and the data in the
backing store for image frame was prematurely freed.

Task-number: QTBUG-31936
Change-Id: I7f4454db00cbbcf53f18060aa986a843c7522d57
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Doc: Fix issues in Qt WebKit documentation config file

This change addresses following issues:
    - Replace hard-coded version strings with QT_VERSION et al.
    - Use the word 'Reference' in description for consistency
    - Add a url variable
    - Add a filter for Qt WebKit (usable in Qt Creator Help)
    - Use the correct selector for listing QML types

Task-number: QTBUG-34966
Change-Id: Ic8f404720b02e022da964eadd50cbd140482809c
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Make qtwebkit disable itself if the gui module isn't present.

Building qtwebkit will fail if the qtgui modules is not present and
hence the qt build will fail.

Task-number: QTBUG-33108
Change-Id: Iab56781bf194e100daf3e509a5ed7e274ee201e4
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
WebKitQML examples does not work on Mac

A combination of a flawed GCC 4.2 implementation and a compiler
misdetection that meant it was also used for clang caused WebKitQML
to crash on startup.

Task-number: QTBUG-35040
Change-Id: I77534c0e9974a79e7487d5211b1374b250219d49
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Account for when the QGraphicsView is a top level widget

When the QGraphicsView was a top level widget then it would not account
for the transformations as it did not translate the point from the scene
to the view.

[ChangeLog][QtWebKitWidgets][QGraphicsWebView] Make sure that mouse
events for QGraphicsWebView items in a top level QGraphicsView.
Task-number: QTBUG-32179

Change-Id: I2c26580a7e7e5eaec08d71768298e961d3e9d13b
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Bump MODULE_VERSION to 5.2.1

Change-Id: Ie398288908d0c2dcabe8aaf8916c8b10c73a70e1
Reviewed-by: Matti Paaso <matti.paaso@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>