Adding a .ycm_extra_conf file for webkitGtk
https://bugs.webkit.org/show_bug.cgi?id=119618

Patch by Martin Robinson  <mrobinson@igalia.com> and Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk> on 2013-12-11
Reviewed by Gustavo Noronha Silva.

Added a YouCompleteMe flag discovery script for Vim and the GTK+ port. The script
read the GTK+ build files to determine dynamically what flags to compile a source
file with. This allows Vim to provide auto-complete for C++/C language. See
https://github.com/Valloric/YouCompleteMe for how to use this file.

.:

* .gitignore: Ignore the YCM symlinks in the tree.

Tools:

* gtk/common.py:
(get_build_path): Added a fatal argument to build_path to avoid crashing YCM on failure.
* gtk/ycm_extra_conf.py: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160531 268f45cc-cd09-0410-ab3c-d52691b4dbfc
GTK buildfix after r160504.

Patch by Dániel Bátyai <Batyai.Daniel@stud.u-szeged.hu> on 2013-12-13
Reviewed by Csaba Osztrogonác.

* UIProcess/API/gtk/WebKitWebContext.cpp:
(webkit_web_context_prefetch_dns):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed GTK build fix after r160509.

* GNUmakefile.list.am: MessageSender.(cpp|h) files were moved to Platform/IPC.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCrypto wrapKey operation doesn't check key usage
https://bugs.webkit.org/show_bug.cgi?id=125675

Reviewed by Darin Adler.

Source/WebCore: 

Tests: crypto/subtle/unwrapKey-check-usage.html
       crypto/subtle/wrapKey-check-usage.html

* bindings/js/JSSubtleCryptoCustom.cpp: (WebCore::JSSubtleCrypto::wrapKey):
Added accidentally omitted code. Other operations are fine.

LayoutTests: 

* crypto/subtle/unwrapKey-check-usage-expected.txt: Added.
* crypto/subtle/unwrapKey-check-usage.html: Added.
* crypto/subtle/wrapKey-check-usage-expected.txt: Added.
* crypto/subtle/wrapKey-check-usage.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix a couple stray uses of RefPtr that should release
https://bugs.webkit.org/show_bug.cgi?id=125679

Reviewed by Andreas Kling.

* css/CSSParser.cpp:
(WebCore::CSSParser::parseFilter): Add calls to release, in
one case rearranging the order of operations slightly so we
don't release the pointer before using it.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Eliminate awkward virtualComputedStyle construction
https://bugs.webkit.org/show_bug.cgi?id=125681

Reviewed by Andreas Kling.

* dom/Element.cpp:
(WebCore::Element::computedStyle): Tweak coding style a bit.

* dom/Element.h: Marked computedStyle virtual and got rid of virtualComputedStyle.
This fixes a bug that we would not call SVGElement::computedStyle if we called
it through an Element pointer or reference. Not sure how to get test coverage for this.

* dom/Node.cpp:
(WebCore::Node::computedStyle): Use a loop instead of recursive virtual calls.

* dom/Node.h: Made computedStyle virtual and got rid of virtualComputedStyle.

* svg/SVGElement.cpp:
(WebCore::SVGElement::computedStyle): Tweak coding style a bit.

* svg/SVGElement.h: Made computedStyle virtual (and FINAL) and got rid fo
virtualComputedStyle.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Further GTK WK2 build fixes after r160504.

* UIProcess/API/gtk/WebKitWebView.cpp:
(webkit_web_view_get_snapshot):
* WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
(didInitiateLoadForResource):
(willSendRequestForFrame):
(didReceiveResponseForResource):
(didReceiveContentLengthForResource):
(didFinishLoadForResource):
(didFailLoadForResource):
(webkitWebPageDidReceiveMessage):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Remove the -Wno-c++11-extensions compiler option for Clang builds
https://bugs.webkit.org/show_bug.cgi?id=125639

Reviewed by Anders Carlsson.

* Source/autotools/SetupCompilerFlags.m4: The -Wno-c++11-extensions compiler option was in use
when building with Clang. It is now removed as the C++11 standard is enabled throughout the project.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
StyleResolver::adjustRenderStyle() should take RenderStyle references.
<https://webkit.org/b/125623>

This function doesn't handle null styles being passed, so prevent
it at compile time.

Reviewed by Anders Carlsson.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Add a unit tests to WebKit2 to test node names
https://bugs.webkit.org/show_bug.cgi?id=125686

Reviewed by Gustavo Noronha Silva.

* UIProcess/API/gtk/tests/DOMNodeTest.cpp:
(WebKitDOMNodeTest::testTagNames):
(WebKitDOMNodeTest::runTest):
(registerTests):
* UIProcess/API/gtk/tests/TestDOMNode.cpp:
(testWebKitDOMNodeTagNames):
(beforeAll):

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