Bump version

Change-Id: I2522e10d7710331b57ace5d0a4e5b6e871987600
GraphicsContext for Qt: add popTransparencyLayerInternal method.

It is harmful to just call endPlatformTransparencyLayer inside
GraphicsContextQt.cpp,because the three calling sequences:

 1. beginPlatformTransparenceyLayer
    endPlatformTransparencyLayer

 2. pushTransparencyLayerInternal

 3. savePlatformState
    restorePlatformState

may interleave, which makes unexpected result.

Task-number: QTBUG-39577
Change-Id: I676a85cd5210e0f944cf6b522dd21deec06f03bc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Add qtxmlpatters to sync.profile

Indirect dependencies should also be listed in sync.profile

qtwebkit depends on qtdeclarative which depends on qtxmlpatterns, so
adding the latter as the CI system uses the information in sync.profile
to clone the required repositories.

Change-Id: I52f34b4ff1656aa20e0ceeacc4f42689f1505306
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Fix build with gcc 4.4

Gcc 4.4 does not have the unused-but-set-variable warning flag and
fails when building leveldb which tries to set it.

This patch only sets it on gcc versions that supports it.

Change-Id: Iea4fb5bab062729fc0518d644122f13502967cfb
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Prevent crashes when the QWebView gets reparented.

Wrap the QWindow pointer in a QPointer so it gets set to NULL
when the QWindow gets deleted without notification.

Task-number: QTBUG-39524
Change-Id: I7c8fbe0f6f1921a7b48c58dc502d6a0a3409d084
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Qt5WebKitWidgets should keep private dependencies private

The qmake file webkit_modules was not loaded, which meant we never
separated private Qt dependencies from public Qt dependencies in the QT
qmake variable.

Task-number: QTBUG-39249
Change-Id: Iadad6b652cee5a51894c4ac2e9979d7d41619d27
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
Fix debug builds of qtwebkit on linux-icc

The thin archives are available for all compilers on Linux, and are
also required by the intel compiler for debug builds. Clang does not
need thin archives but it still helps.

Task-number: QTBUG-39632
Change-Id: I24f108e87492bd5b5dceb3c62126756f3976b88b
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Fix WebView crash when using gcc 4.9.

Fix copied from https://code.google.com/p/angleproject/issues/detail?id=651

Task-number: QTBUG-39723
Change-Id: I8ee694079c263bf6d21e2a0eadc2234a2c69cae2
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Specify location of CMake tests

The create_cmake.prf file now checks for the existence of tests, so
ensure that they are searched for in the correct path.

Change-Id: Ibac09b01e1d2546b5ee553990e6257fd92d453bf
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
QWebHitTestResult::element() should return the inner element

QWebHitTestResult::element() currently only returns a non-null result
if the innernode happens to be an element. This means it will never
contain anything when hittesting over text.

This patch changes QWebHitTestResult::element() to instead return the
inner element.

Task-number: QTBUG-39591
Change-Id: Ic00f30d0b6429f2bcfb47f6e386be7d890d45bfb
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
QtWebKitWidgets should not depend directly on QtQuick

A left-over from the split of the QtWebKit and QtWebKitWidgets libraries
meant that QtWebKitWidgets still linked directly to QtQuick, though it
doesn't use it.

Change-Id: I16ebc0020610ee17edde39dcf0a5caeca15a3ef8
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Fix SpeculateCellOperand ASSERT failure in DFG for 32-bit builds.

Original patch by Filip Pizlo <fpizlo@apple.com> on 2013-08-28
taken from WebKit r154804 (http://trac.webkit.org/changeset/154804).

Task-number: QTBUG-39768
Change-Id: I239f2ee2ec5d1c21f7e50709b8989e744fd87995
Reviewed-by: Zhang Zengbo <zengbo.zhang@gmail.com>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Fix android build error about already defined struct.

Minimum API version is 9, which already defines this struct in elf.h

Also see qtscript/49ab1bd9838dc3c069be780ff6d69a2543c06ed6 which does
the same thing there.

Change-Id: Ia56f8399156a93edc569e7bb982bd7186a16a445
Reviewed-by: BogDan Vatra <bogdan@kde.org>
Prevent interpreting URL parameter for Qt plugins as content URLs.

This prevents a compatibility workaround for NPAPI plugins from
interfering with the Qt plugins.

Task-number: QTBUG-39483
Change-Id: Ic9342d3bdeec4c26c21f56b475d3d3751b30f057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Actually load icc.prf for the Intel compiler

Nothing sets CONFIG += icc, so the .prf file was not getting loaded at
all. So force it on both Windows and Unix.

Change-Id: I0c9a0ab07b5637716e37fb2066d6013fa28c4012
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS on HPPA

Solves building WebKit on HPPA.

Change-Id: I00a455ad03d3f896de589aaf6e6f4dc0e71398ac
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
use after free in WebCore::DocumentOrderedMap::remove / WebCore::TreeScope::removeElementById

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

Reviewed by Ryosuke Niwa.

Update the document ordered map for an image element before dispatching
load or error events
when it's inserted into a document.

Source/WebCore:

Test: fast/dom/modify-node-and-while-in-the-callback-too-crash.html

* dom/DocumentOrderedMap.cpp: defensive fix to avoid use after free
issues.
(WebCore::DocumentOrderedMap::remove):
* html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::insertedInto):
* loader/ImageLoader.cpp:
(WebCore::ImageLoader::updateFromElement): setting m_failedLoadURL makes
repeated updateFromElement calls return early.

Change-Id: I305e56de969d0efe3dc67930cdf585a201e8c6a5
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Bad cast from CSSInitialValue to CSSValueList

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

Reviewed by Beth Dakin.

Add a regression test. This is not a merge since the test in the Blink change involves
superfluous execCommand calls.

Change-Id: I13e08031516548a5915f8ad4c42486e9ba0e3d96
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Crash during exception unwinding

https://webkit.org/b/119860

Reviewed by Filip Pizlo.

Add an "Unreachable" NodeType, and then rearrange op_throw and op_throw_reference_error
to plant Throw or ThrowReferenceError followed by a flush and then the Unreachable node.

We need this so that Throw and ThrowReferenceError no longer need to be treated as
terminals and the subsequent flush keeps the activation (and other registers) live.

* dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::::executeEffects):
* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::parseBlock):
* dfg/DFGClobberize.h:
(JSC::DFG::clobberize):
* dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::fixupNode):
* dfg/DFGNode.h:
(JSC::DFG::Node::isTerminal):
* dfg/DFGNodeType.h:
* dfg/DFGPredictionPropagationPhase.cpp:
(JSC::DFG::PredictionPropagationPhase::propagate):
* dfg/DFGSafeToExecute.h:
(JSC::DFG::safeToExecute):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):

Change-Id: Idb894e780cd3ebe15515d1796c58a339ae54d55f
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154290 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
QWebPage crashes on drag without QWidget view

QWebPage can be used without a widgets and has a documentation section
on how to do so, but if QWegPage hasn't been given a QWidget in setView
a drag operation will crash.  To reproduce select a section of the web page
click and drag from within the selection and it will crash.

Add a check to avoid a NULL dereference, the existing code already has
a check for not having a QWidget set as the view.
DragClientQt::startDrag
m_chromeClient->platformPageClient() is NULL

Task-number: QTBUG-40204
Change-Id: I5739285696ab57c05ee59c10ae00a1cf652ff494
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>