Remove support for CFM plug-ins in WebKit1
https://bugs.webkit.org/show_bug.cgi?id=97822

Reviewed by Mark Rowe.

I'm pretty sure that CFM style plug-ins haven't been used for the last ten years or so,
so it's safe to remove them (especially since they're PPC only).

* Plugins/WebNetscapePluginPackage.h:
* Plugins/WebNetscapePluginPackage.mm:
(-[WebNetscapePluginPackage openResourceFile]):
(-[WebNetscapePluginPackage closeResourceFile:]):
(-[WebNetscapePluginPackage _initWithPath:]):
(-[WebNetscapePluginPackage _tryLoad]):
(-[WebNetscapePluginPackage _unloadWithShutdown:]):
* Plugins/WebPluginDatabase.mm:
(PluginPackageCandidates::PluginPackageCandidates):
(PluginPackageCandidates::update):
(PluginPackageCandidates::bestCandidate):
(PluginPackageCandidates):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac][DRT] Add support to allow non-array modifier arguments in keyDown()
https://bugs.webkit.org/show_bug.cgi?id=97805

Patch by Sudarsana Nagineni <sudarsana.nagineni@intel.com> on 2012-09-27
Reviewed by Alexey Proskuryakov.

Add support for handling a string as modifier argument to keyDown().
This support has already been added to other ports, so implementing
this on Mac too, to be consistent with the other ports.

* DumpRenderTree/mac/EventSendingController.mm:
(modifierFlags):
(buildModifierFlags):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix 32-bit build.

* Plugins/WebNetscapePluginPackage.mm:
(-[WebNetscapePluginPackage _initWithPath:]):
Add back the architecture check that i accidentally.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Perftest] PerfTestRunner exception when using nested git checkouts
https://bugs.webkit.org/show_bug.cgi?id=97796

Reviewed by Ryosuke Niwa.

In order to support separate Chromium vs. WebKit git trees, PerfTestsRunner needs to
instantiate per-repository SCM objects when collecting revision information.

* Scripts/webkitpy/performance_tests/perftestsrunner.py:
(PerfTestsRunner._generate_results_dict):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129804 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add webkit_unit_tests to the flakiness dashboard
https://bugs.webkit.org/show_bug.cgi?id=97814

Patch by Julie Parent <jparent@chromium.org> on 2012-09-27
Reviewed by Dirk Pranke.

webkit_unit_tests run on the same bots as test_shell_tests.

* TestResultServer/static-dashboards/builders.js:
(loadBuildersList):
* TestResultServer/static-dashboards/dashboard_base.js:
(currentBuilderGroupCategory):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IndexedDB: Optimize encodeString/decodeString
https://bugs.webkit.org/show_bug.cgi?id=97794

Reviewed by Tony Chang.

Optimize string encoding/decoding, which showed up as a CPU hot spot during profiling.
The backing store uses big-endian ordering of 16-bit code unit strings, so a memcopy
isn't sufficient, but the code used StringBuilder::append() character-by-character
and custom byte-swapping which was slow.

Ran a test w/ DumpRenderTree (to avoid multiprocess overhead) taking a 10k character string
and putting it 20k times and getting it 20k times. On my test box, mean time before the
patch was 8.2s, mean time after the patch was 4.6s.

Tested by Chromium's webkit_unit_tests --gtest_filter='IDBLevelDBCodingTest.*String*'

* Modules/indexeddb/IDBLevelDBCoding.cpp:
(WebCore::IDBLevelDBCoding::encodeString):
(WebCore::IDBLevelDBCoding::decodeString):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed Chromium debug build fix.

Two fixes makes one breakage

http://trac.webkit.org/changeset/129785
http://trac.webkit.org/changeset/129798

* bindings/v8/V8Binding.h:
(WebCore::toNativeArguments):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
requestAnimationFrame broken with subframes (DisplayRefreshMonitorManager::registerClient fails to register client)
https://bugs.webkit.org/show_bug.cgi?id=95360

Patch by Andrew Lo <anlo@rim.com> on 2012-09-27
Reviewed by Simon Fraser.

Source/WebCore:

DisplayRefreshMonitorManager::ensureMonitorForClient currently only adds the DisplayRefreshMonitorClient
to the appropriate DisplayRefreshMonitor when a new monitor is created.
It should also do so when it finds an existing monitor.

Test: fast/animation/request-animation-frame-iframe2.html

* platform/graphics/DisplayRefreshMonitor.cpp:
(WebCore::DisplayRefreshMonitor::addClient):
(WebCore::DisplayRefreshMonitorManager::ensureMonitorForClient):

LayoutTests:

Add a new test which does requestAnimationFrame in both a sub-frame and
main-frame, and checks that both were executed.

* fast/animation/request-animation-frame-iframe2-expected.txt: Added.
* fast/animation/request-animation-frame-iframe2.html: Added.
* fast/animation/script-tests/request-animation-frame-subframe.html:
    Remove element parameter from window.webkitRequestAnimationFrame.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
IndexedDB: Split up setVersion and deleteDatabase sequencing tests
https://bugs.webkit.org/show_bug.cgi?id=97482

Reviewed by Tony Chang.

Final chapter in the trilogy of webkit.org/b/97051 and webkit.org/b/97368 -
split up some complex multi-part tests so they are easier to understand and manage.
- Split open-close-setversion -> setversion-*
- Split factory-deletedatabase-interactions -> deletedatabase-*

* storage/indexeddb/deletedatabase-blocked-expected.txt: Added.
* storage/indexeddb/deletedatabase-blocked.html: Copied from LayoutTests/storage/indexeddb/factory-deletedatabase-interactions.html.
* storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange-expected.txt: Added.
* storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange.html: Copied from LayoutTests/storage/indexeddb/factory-deletedatabase-interactions.html.
* storage/indexeddb/deletedatabase-delayed-by-versionchange-expected.txt: Added.
* storage/indexeddb/deletedatabase-delayed-by-versionchange.html: Copied from LayoutTests/storage/indexeddb/factory-deletedatabase-interactions.html.
* storage/indexeddb/deletedatabase-not-blocked-expected.txt: Added.
* storage/indexeddb/deletedatabase-not-blocked.html: Copied from LayoutTests/storage/indexeddb/open-close-version.html.
* storage/indexeddb/factory-deletedatabase-interactions-expected.txt: Removed.
* storage/indexeddb/open-close-version-expected.txt: Removed.
* storage/indexeddb/resources/deletedatabase-blocked.js: Added.
* storage/indexeddb/resources/deletedatabase-delayed-by-open-and-versionchange.js: Added.
* storage/indexeddb/resources/deletedatabase-delayed-by-versionchange.js: Added.
* storage/indexeddb/resources/deletedatabase-not-blocked.js: Added.
* storage/indexeddb/resources/factory-deletedatabase-interactions.js: Removed.
* storage/indexeddb/resources/open-close-version.js: Removed.
* storage/indexeddb/resources/setversion-blocked-by-versionchange-close-in-blocked.js: Added.
* storage/indexeddb/resources/setversion-blocked-by-versionchange-close.js: Added.
* storage/indexeddb/resources/setversion-blocked.js: Added.
* storage/indexeddb/resources/setversion-blocks-open.js: Added.
* storage/indexeddb/resources/setversion-blocks-setversion.js: Added.
* storage/indexeddb/resources/setversion-not-blocked.js: Added.
* storage/indexeddb/setversion-blocked-by-versionchange-close-expected.txt: Added.
* storage/indexeddb/setversion-blocked-by-versionchange-close-in-blocked-expected.txt: Added.
* storage/indexeddb/setversion-blocked-by-versionchange-close-in-blocked.html: Copied from LayoutTests/storage/indexeddb/factory-deletedatabase-interactions.html.
* storage/indexeddb/setversion-blocked-by-versionchange-close.html: Renamed from LayoutTests/storage/indexeddb/factory-deletedatabase-interactions.html.
* storage/indexeddb/setversion-blocked-expected.txt: Added.
* storage/indexeddb/setversion-blocked.html: Copied from LayoutTests/storage/indexeddb/open-close-version.html.
* storage/indexeddb/setversion-blocks-open-expected.txt: Added.
* storage/indexeddb/setversion-blocks-open.html: Copied from LayoutTests/storage/indexeddb/open-close-version.html.
* storage/indexeddb/setversion-blocks-setversion-expected.txt: Added.
* storage/indexeddb/setversion-blocks-setversion.html: Copied from LayoutTests/storage/indexeddb/open-close-version.html.
* storage/indexeddb/setversion-not-blocked-expected.txt: Added.
* storage/indexeddb/setversion-not-blocked.html: Renamed from LayoutTests/storage/indexeddb/open-close-version.html.


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