Reduce memory footprint when linking

Linking QtWebKit on Linux x64 with debug symbols can use up to 11Gbyte
of memory. This can make it impossible to link on many systems.

This patch forces GCC 4.8+ to fully use DWARF-4 debug-types sections
to eleminate duplicate symbols and makes earlier GCC versions STABS
which also uses much less memory.

Task-number: QTBUG-36131

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

Change-Id: I82f158687d0b5da3e85c025d720111b6b1414010
Simplify ImageBuffer conversion using RGBA8888 formats

Using the RGBA8888 formats introduced in Qt 5.2, we can remove the
corresponding code in WebKit. This greatly simplifies the code.

Change-Id: I3df43995c4df53610fc881c68998188ec08370f9
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Make sure the correct position for the plugin is used when showing

When the plugin was windowed then it was always being shown at 0x0 of
the containing window rather than the correct position of the plugin
inside the containing window. This enesures it is placed correctly in
that case.

Task-number: QTBUG-31730
             QTBUG-33053
             QTBUG-32546

Change-Id: I5ce0321924d288437d483002e9cb6dd1c98b6863
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Replace win32-g++ with mingw scope

Commit 773dd01 in qtbase introduced a general mingw platform scope, which
is cleaner and more flexible than matching the spec name.

(see 278152fff for a similar commit in qtbase).

Change-Id: Id3dcd3474504aebeee16dc41cd1eeab7ac21b319
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Idc5d37689051103b5101a33ecb2fec69b30d8987
Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev
Detect AArch64 architecture

Adds WTF platform support for the AArch64 architecture.

Patch is based on WebKit-gtk patch done by Riku Voipio, and was
cherry-picked and tested by Marcin Juszkiewicz.

Task-number: QTBUG-35442
Change-Id: I81b8c43fb3a6a65c56446f84a7b1001075998d1e
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Allow SVG images to be drawn into canvas without tainting.

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

Reviewed by Darin Adler.

Source/WebCore:

* html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::parseAttribute): Call shouldProhibitLinks.
(WebCore::shouldProhibitLinks): Added.
* html/HTMLAnchorElement.h:
* html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::parseAttribute): Call shouldProhibitLinks.
* rendering/svg/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::isEmbeddedThroughSVGImage): Use isInSVGImage.
* svg/SVGAElement.cpp:
(WebCore::SVGAElement::svgAttributeChanged): Call shouldProhibitLinks.
* svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::hasSingleSecurityOrigin): Added.
(WebCore::isInSVGImage): Added.
* svg/graphics/SVGImage.h:

Change-Id: I294821dff7299e3c6a3e1df8f8ff3d855dc16dbd
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Unable to upload <img src="foo.svg"> as WebGL texture

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

Reviewed by Tim Horton.

Source/WebCore:

If the HTMLImageElement passed to texture2D is an SVG
image, paint it first into a bitmap buffer and upload that.
Note that the SVG image still needs to have an intrinsic
or explicit size - see how the test case must set width and
height.

I also renamed the cache of ImageBuffers since it is
no longer only being used for video frames.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::WebGLRenderingContext): Rename m_videoCache to m_generatedImageCache.
(WebCore::WebGLRenderingContext::drawImageIntoBuffer): New method that creates an ImageBuffer
of the appropriate size and renders into that.
(WebCore::WebGLRenderingContext::texImage2D): If we see an SVG image, render it first.
(WebCore::WebGLRenderingContext::videoFrameToImage): Renamed m_generatedImageCache.
(WebCore::WebGLRenderingContext::texSubImage2D): If we see an SVG image, render it first.
* html/canvas/WebGLRenderingContext.h: Renaming.

Change-Id: I601eff1f3a8c11fe2a62f8b5a8a914d6eadfead4
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>