Resource leak related to gstreamer and videos

MERGE NOTE: Fixes a leak caused by a circular reference between GStreamer
and WebKit, that triggers whenever a page with HTML5 video has been visited
and it fully loaded.

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

Reviewed by Eric Carlson.

Since active DOM object are only stopped once and can not be restarted, we can
unreference the media player there, instead of waiting for garbage collection.

If the r152778 is rolled back, this also breaks a circular reference between
GStreamer and WebKit which prevented garbage collecting from triggering.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::stop):

Change-Id: Ie13d202d3cac9b97eb158964b33d492e17f817ef
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
[Qt][WK2] Composited and transformed links asserts in tap highlight

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

Reviewed by Jocelyn Turcotte.

Use a mapping that does not assert when hitting transforms. We still skip
transforms that produces non-rectangular areas.

* page/GestureTapHighlighter.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153893 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Task-number: QTBUG-32454
Change-Id: I608ed624047dd850c5809cdbbc688ca718add736
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Revert "[Qt] memory leak in WebCore::FontCache::getLastResortFallbackFont"

This causes the browser example to crash on startup on 32bit x86.

This reverts commit 25e8da88b2008e62c62206bddc815229761a0fb2
Task-number: QTBUG-32879

Change-Id: I38fb03f7fec5f9a197613d16cc59761b780ec49a
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Merge remote-tracking branch 'origin/release' into stable

Change-Id: Id5cb34a6df11467cb5d32b0d5c2dfb921befb45d
[Qt] Kerning in fast font path breaks letter-spacing

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

Reviewed by Jocelyn Turcotte.

Source/WebCore:

Mark fonts with both kerning and letter-spacing as unsupported by the simple font-path.

Test: fast/text/letter-spacing-kerned.html

* platform/graphics/WidthIterator.h:
(WebCore::WidthIterator::supportsTypesettingFeatures):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154186 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Task-number: QTBUG-32891
Change-Id: I26ef2b8e3953b7e07f42931a233802644ab586e1
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
ANGLE doesn't build with bison 3.0

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

Reviewed by Antti Koivisto.

Make glslang.y compatible with bison 3.0
by using %lex-param to set YYLEX_PARAM.

* src/compiler/glslang.y:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154109 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Task-number: QTBUG-32913
Change-Id: I15505d31f0588c4d558b73befdb9d2358e29c1a3
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
[Qt] QtWebKit (using the Arora browser) displays the border radii (radius) of a button very ugly

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

Reviewed by Jocelyn Turcotte.

StylePainter::init() was called twice making it clobber the previous antialiasing setting.

This patch cleans up the construction so we only have one constructor with init inlined.

* platform/qt/RenderThemeQStyle.cpp:
(WebCore::StylePainterQStyle::StylePainterQStyle):
(WebCore::StylePainterQStyle::setupStyleOption):
* platform/qt/RenderThemeQStyle.h:
* platform/qt/RenderThemeQt.cpp:
(WebCore::StylePainter::StylePainter):
* platform/qt/RenderThemeQt.h:
* platform/qt/RenderThemeQtMobile.cpp:
(WebCore::StylePainterMobile::StylePainterMobile):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154270 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Task-number: QTWEBKIt-355
Change-Id: I5f9e50ccc3deeb1ac1c1714c010d766f4ea29908
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
[Qt] memory leak in WebCore::FontCache::getLastResortFallbackFont

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

Reviewed by Jocelyn Turcotte.

We don't need to allocate FontPlatformData on the heap
since getCachedFontData makes a deep copy anyway.

* platform/graphics/qt/FontCacheQt.cpp:
(WebCore::FontCache::getLastResortFallbackFont):

Change-Id: I02e974e53f36dd01a4b43a21cc98651913c0d515
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154103 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
adjust to new MODULE_* variable semantics

Change-Id: Ida3da49e2df10edf72d9de6b717925bd6c4ac77e
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Assertion while scrolling news.google.com

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

Reviewed by Anders Carlsson.

Do not relayout when accessing script elements during painting.

* html/HTMLEmbedElement.cpp:
(WebCore::HTMLEmbedElement::renderWidgetForJSBindings):

Task-number: QTBUG-30892
Change-Id: Ide884c78dd6a359c0e0de22bb98774d7da90b901
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I2944629d0ee384b4fdcdb43108ddc2322ba76676
Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev