[EFL][AC] Build fix after r131933
https://bugs.webkit.org/show_bug.cgi?id=99901

Patch by Yael Aharon <yael.aharon@intel.com> on 2012-10-20
Reviewed by Kentaro Hara.

Add ArrayBoundsClamper.cpp to WebCore/CMakeLists.txt.

No new tests.

* CMakeLists.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Unskip the tests about regressions after r130699.
https://bugs.webkit.org/show_bug.cgi?id=99910

Unreviewed EFL gardening.

Unskip the test cases about regressions after r130699
fast/css/import-style-update.html
fast/events/attribute-listener-cloned-from-frameless-doc-context-2.html
fast/events/attribute-listener-cloned-from-frameless-doc-context.html
fast/events/attribute-listener-extracted-from-frameless-doc-context-2.html
fast/events/attribute-listener-extracted-from-frameless-doc-context.html
fast/html/link-rel-stylesheet.html
fast/loader/data-url-encoding-html.html
fast/loader/data-url-encoding-svg.html
fast/spatial-navigation/snav-iframe-nested.html

It seems to be passing consistently now.

Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-10-20

* platform/efl/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Cleanup: Move stacktrace tests to a subdirectory.
https://bugs.webkit.org/show_bug.cgi?id=99857

Reviewed by Pavel Feldman.

I plan on adding more than a few tests checking that stacktraces are
associated with console logs. This patch simply moves the four existing
tests into a subdirectory so that I don't spam http/tests/inspector with
stacktrace tests.

* http/tests/inspector/stacktraces/csp-injected-content-warning-contains-stacktrace-expected.txt: Renamed from LayoutTests/http/tests/inspector/csp-injected-content-warning-contains-stacktrace-expected.txt.
* http/tests/inspector/stacktraces/csp-injected-content-warning-contains-stacktrace.html: Renamed from LayoutTests/http/tests/inspector/csp-injected-content-warning-contains-stacktrace.html.
* http/tests/inspector/stacktraces/csp-inline-warning-contains-stacktrace-expected.txt: Renamed from LayoutTests/http/tests/inspector/csp-inline-warning-contains-stacktrace-expected.txt.
* http/tests/inspector/stacktraces/csp-inline-warning-contains-stacktrace.html: Renamed from LayoutTests/http/tests/inspector/csp-inline-warning-contains-stacktrace.html.
* http/tests/inspector/stacktraces/csp-setInterval-warning-contains-stacktrace-expected.txt: Renamed from LayoutTests/http/tests/inspector/csp-setInterval-warning-contains-stacktrace-expected.txt.
* http/tests/inspector/stacktraces/csp-setInterval-warning-contains-stacktrace.html: Renamed from LayoutTests/http/tests/inspector/csp-setInterval-warning-contains-stacktrace.html.
* http/tests/inspector/stacktraces/csp-setTimeout-warning-contains-stacktrace-expected.txt: Renamed from LayoutTests/http/tests/inspector/csp-setTimeout-warning-contains-stacktrace-expected.txt.
* http/tests/inspector/stacktraces/csp-setTimeout-warning-contains-stacktrace.html: Renamed from LayoutTests/http/tests/inspector/csp-setTimeout-warning-contains-stacktrace.html.
* http/tests/inspector/stacktraces/resources/csp-inline-test.js: Renamed from LayoutTests/http/tests/inspector/resources/csp-inline-test.js.
(thisTest):
* http/tests/inspector/stacktraces/resources/stacktrace-test.js: Renamed from LayoutTests/http/tests/inspector/resources/csp-test.js.
(test.addMessage):
(test):
* platform/chromium/http/tests/inspector/stacktraces/csp-injected-content-warning-contains-stacktrace-expected.txt: Renamed from LayoutTests/platform/chromium/http/tests/inspector/csp-injected-content-warning-contains-stacktrace-expected.txt.
* platform/chromium/http/tests/inspector/stacktraces/csp-inline-warning-contains-stacktrace-expected.txt: Renamed from LayoutTests/platform/chromium/http/tests/inspector/csp-inline-warning-contains-stacktrace-expected.txt.
* platform/chromium/http/tests/inspector/stacktraces/csp-setInterval-warning-contains-stacktrace-expected.txt: Renamed from LayoutTests/platform/chromium/http/tests/inspector/csp-setInterval-warning-contains-stacktrace-expected.txt.
* platform/chromium/http/tests/inspector/stacktraces/csp-setTimeout-warning-contains-stacktrace-expected.txt: Renamed from LayoutTests/platform/chromium/http/tests/inspector/csp-setTimeout-warning-contains-stacktrace-expected.txt.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Fix compile warning.

* UIProcess/API/gtk/tests/GNUmakefile.am: Pass sourcedir to
glib-compile-resource when generating dependencies too.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed rebaseline after http://trac.webkit.org/changeset/131974.

* platform/chromium-linux-x86/svg/transforms/text-with-pattern-inside-transformed-html-expected.png: Removed.
* platform/chromium-linux-x86/svg/transforms/text-with-pattern-with-svg-transform-expected.png: Removed.
* platform/chromium-linux/svg/W3C-SVG-1.1/pservers-grad-06-b-expected.png:
* platform/chromium-mac-lion/svg/W3C-SVG-1.1/pservers-grad-06-b-expected.png: Added.
* platform/chromium-mac-lion/svg/custom/js-late-pattern-creation-expected.png: Added.
* platform/chromium-mac-lion/svg/custom/pattern-scaling-expected.png: Added.
* platform/chromium-mac-lion/svg/custom/pattern-with-transformation-expected.png: Added.
* platform/chromium-mac-lion/svg/transforms/text-with-pattern-inside-transformed-html-expected.png: Added.
* platform/chromium-mac-lion/svg/transforms/text-with-pattern-with-svg-transform-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/custom/pattern-scaling-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/custom/pattern-with-transformation-expected.png:
* platform/chromium-mac-snowleopard/svg/transforms/text-with-pattern-inside-transformed-html-expected.png:
* platform/chromium-mac-snowleopard/svg/transforms/text-with-pattern-with-svg-transform-expected.png: Removed.
* platform/chromium-mac/svg/custom/pattern-scaling-expected.png: Added.
* platform/chromium-mac/svg/custom/pattern-skew-transformed-expected.png:
* platform/chromium-win-xp/svg/W3C-SVG-1.1/pservers-grad-06-b-expected.png: Added.
* platform/chromium-win-xp/svg/custom/js-late-pattern-creation-expected.png: Added.
* platform/chromium-win-xp/svg/custom/pattern-scaling-expected.png: Added.
* platform/chromium-win-xp/svg/custom/pattern-with-transformation-expected.png: Added.
* platform/chromium-win-xp/svg/transforms/text-with-pattern-inside-transformed-html-expected.png:
* platform/chromium-win-xp/svg/transforms/text-with-pattern-with-svg-transform-expected.png:
* platform/chromium/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Add missing expectations for some tests in svg/custom.

* platform/efl/svg/custom/js-late-pattern-creation-expected.png: Added.
* platform/efl/svg/custom/js-late-pattern-creation-expected.txt: Added.
* platform/efl/svg/custom/pattern-skew-transformed-expected.png: Added.
* platform/efl/svg/custom/pattern-with-transformation-expected.png: Added.
* platform/efl/svg/custom/pattern-with-transformation-expected.txt: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LLInt backends of non-ARM RISC platforms should be able to share code with the existing ARMv7 backend
https://bugs.webkit.org/show_bug.cgi?id=99745

Reviewed by Geoffrey Garen.

This moves all of the things in armv7.rb that I thought are generally useful out
into risc.rb. It also separates some phases (branch ops is separated into one
phase that does sensible things, and another that does things that are painfully
ARM-specific), and removes ARM assumptions from others by using a callback to
drive exactly what lowering must happen. The goal here is to minimize the future
maintenance burden of LLInt by ensuring that the various platforms share as much
lowering code as possible.

* offlineasm/armv7.rb:
* offlineasm/risc.rb: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove ::encode template specializations and just use overloads
https://bugs.webkit.org/show_bug.cgi?id=99865

Reviewed by Andreas Kling.

Get rid of the various encode functions and just use overloading instead.

* Platform/CoreIPC/ArgumentCoders.cpp:
(CoreIPC::::encode):
* Platform/CoreIPC/ArgumentCoders.h:
* Platform/CoreIPC/ArgumentEncoder.cpp:
(CoreIPC::ArgumentEncoder::encodeVariableLengthByteArray):
(CoreIPC::ArgumentEncoder::encode):
* Platform/CoreIPC/ArgumentEncoder.h:
(ArgumentEncoder):
(CoreIPC::ArgumentEncoder::encodeEnum):
* Platform/CoreIPC/win/ConnectionWin.cpp:
(CoreIPC::Connection::sendOutgoingMessage):
* Platform/mac/SharedMemoryMac.cpp:
(WebKit::SharedMemory::Handle::encode):
* Platform/win/SharedMemoryWin.cpp:
(WebKit::SharedMemory::Handle::encode):
* Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
(CoreIPC::::encode):
* Shared/DictionaryPopupInfo.cpp:
(WebKit::DictionaryPopupInfo::encode):
* Shared/Plugins/NPIdentifierData.cpp:
(WebKit::NPIdentifierData::encode):
(WebKit::NPIdentifierData::decode):
* Shared/UserMessageCoders.h:
(WebKit::UserMessageEncoder::baseEncode):
* Shared/WebCoreArgumentCoders.cpp:
(CoreIPC::::encode):
* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::encode):
* Shared/cf/ArgumentCodersCF.cpp:
(CoreIPC::encode):
* Shared/mac/ArgumentCodersMac.mm:
(CoreIPC::encode):
* Shared/mac/KeychainAttribute.cpp:
(CoreIPC::encode):
* Shared/mac/PlatformCertificateInfo.mm:
(WebKit::PlatformCertificateInfo::encode):
* Shared/mac/SandboxExtensionMac.mm:
(WebKit::SandboxExtension::HandleArray::encode):
* Shared/mac/SecItemRequestData.cpp:
(WebKit::SecItemRequestData::encode):
* Shared/mac/SecItemResponseData.cpp:
(WebKit::SecItemResponseData::encode):
* Shared/mac/SecKeychainItemRequestData.cpp:
(WebKit::SecKeychainItemRequestData::encode):
* Shared/mac/SecKeychainItemResponseData.cpp:
(WebKit::SecKeychainItemResponseData::encode):
* Shared/qt/ArgumentCodersQt.cpp:
(CoreIPC::::encode):
* Shared/qt/QtNetworkReplyData.cpp:
(WebKit::QtNetworkReplyData::encode):
* Shared/soup/PlatformCertificateInfo.cpp:
(WebKit::PlatformCertificateInfo::encode):
* Shared/win/LayerTreeContextWin.cpp:
(WebKit::LayerTreeContext::encode):
* Shared/win/PlatformCertificateInfo.cpp:
(WebKit::PlatformCertificateInfo::encode):
* Shared/win/WindowGeometry.cpp:
(WebKit::WindowGeometry::encode):
* WebProcess/WebPage/EncoderAdapter.cpp:
(WebKit::EncoderAdapter::encodeBool):
(WebKit::EncoderAdapter::encodeUInt16):
(WebKit::EncoderAdapter::encodeUInt32):
(WebKit::EncoderAdapter::encodeUInt64):
(WebKit::EncoderAdapter::encodeInt32):
(WebKit::EncoderAdapter::encodeInt64):
(WebKit::EncoderAdapter::encodeFloat):
(WebKit::EncoderAdapter::encodeDouble):
(WebKit::EncoderAdapter::encodeString):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL][DRT] Implement tracking and painting repaint rectangles.
https://bugs.webkit.org/show_bug.cgi?id=99838

Reviewed by Gyuyoung Kim.

Source/WebKit/efl: 

Add the required DumpRenderTreeSupport plumbing functions to
interact with FrameView and track/obtain repaint rectangles for
DumpRenderTree.

* WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
(DumpRenderTreeSupportEfl::setSelectTrailingWhitespaceEnabled):
(DumpRenderTreeSupportEfl::setTracksRepaints):
(DumpRenderTreeSupportEfl::resetTrackedRepaints):
(DumpRenderTreeSupportEfl::isTrackingRepaints):
(DumpRenderTreeSupportEfl::trackedRepaintRects):
* WebCoreSupport/DumpRenderTreeSupportEfl.h:

Tools: 

Implement displayWebView() and start tracking/painting the repaint
rectangles for the repaint tests that rely on it.

* DumpRenderTree/efl/DumpRenderTree.cpp:
(displayWebView):
* DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
(DumpRenderTreeChrome::resetDefaultsToConsistentValues):
* DumpRenderTree/efl/PixelDumpSupportEfl.cpp:
(createBitmapContextFromWebView):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] m_mainFrame should be null checked before use in WebPagePrivate destructor
https://bugs.webkit.org/show_bug.cgi?id=99916

Patch by Andrew Lo <anlo@rim.com> on 2012-10-20
Reviewed by George Staikos.
Internally reviewed by Arvid Nilsson.

Internal PR228029
Add null checks for m_mainFrame for things that happen during
WebPage destruction.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::setVisible):
(BlackBerry::WebKit::WebPagePrivate::setCompositorDrawsRootLayer):

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