Fix accidental missing line in r111793.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/base.js:
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/base_unittests.js:
Remove base.values. It was unused and duplicates the builtin Object.values.
* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui.js:
Accidentally deleted this line before committing r111793.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/Scripts/build-jsc doesn't work after WTF move
https://bugs.webkit.org/show_bug.cgi?id=81999

Reviewed by Eric Seidel.
        
For ports that require WTF and JSC to be built as two projects and where
the machinery to build both does not already exist, teach the tool to do
so for us.

* Scripts/build-jsc:
(buildMyProject):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fix for WebHistory is busted after changing time zone
https://bugs.webkit.org/show_bug.cgi?id=81849

Unreviewed build fix.

When generating warning for undefined message signature, rebuildHistoryByDayIfNeeded
fail to compile due to addItemToDateCaches: being undefined.

Move the definition to the right place in the file to use the private method. 

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-03-22

* History/WebHistory.mm:
(-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111798 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CMake] Unreviewed build fix after r111778.

.:

* Source/CMakeLists.txt: Build WTF/.

Source/JavaScriptCore:

* CMakeLists.txt: Move ${WTF_DIR} after ${JAVASCRIPTCORE_DIR} in
the include paths so that the right config.h is used.

Source/WebCore:

* CMakeLists.txt: Replace ${JAVASCRIPTCORE_DIR}/wtf includes with
${WTF_DIR}/wtf ones.

Source/WebKit:

* CMakeLists.txt: Replace ${JAVASCRIPTCORE_DIR}/wtf includes with
${WTF_DIR}/wtf ones.

Source/WebKit2:

* CMakeLists.txt: Replace ${JAVASCRIPTCORE_DIR}/wtf includes with
${WTF_DIR}/wtf ones.

Source/WTF:

* CMakeLists.txt: Added.
* wtf/CMakeLists.txt: Add ${CMAKE_BINARY_DIR} to the include paths
for cmakeconfig.h to be found.

Tools:

* DumpRenderTree/efl/CMakeLists.txt: Replace
${JAVASCRIPTCORE_DIR}/wtf with ${WTF_DIR}/wtf in the include
paths.
* DumpRenderTree/efl/LayoutTestControllerEfl.cpp: Use the right
wtf include.
* DumpRenderTree/efl/WorkQueueItemEfl.cpp: Ditto.
* WinCELauncher/CMakeLists.txt: Replace ${JAVASCRIPTCORE_DIR}/wtf
with ${WTF_DIR}/wtf in the include paths.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Windows build fix after r111778.

Source/JavaScriptCore:

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
Don't include and try to build files owned by WTF.
Also, let VS have its way with the vcproj in terms of file ordering.

Source/WTF:

* WTF.vcproj/WTF.vcproj:
DateMath.h and DateMath.cpp should be built by WTF, since they are part of WTF.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
QT 4.8 soft hyphen bug has no failing test case
https://bugs.webkit.org/show_bug.cgi?id=81964

Patch by Dave Tharp <dtharp@codeaurora.org> on 2012-03-22
Reviewed by Beth Dakin.

Adding test to expose soft hyphen problem in QT 4.8.0

* fast/text/soft-hyphen-5-expected.txt: Added.
* fast/text/soft-hyphen-5.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CMake] Fix build-jsc after r111778 and r111797.
https://bugs.webkit.org/show_bug.cgi?id=82001

Reviewed by Filip Pizlo.

Contrary to the comment in build-jsc, buildCMakeProjectOrExit()
does return if no error occurred, and build-jsc failed with
"building not defined for this platform".

* Scripts/build-jsc: Always exit after caling
buildCMakeProjectOrExit().
* Scripts/webkitdirs.pm:
(buildCMakeProjectOrExit): Return 0 if no error occurred.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Force update of nonFastScrollableRegion if target CCLayerImpl has been freshly created.
https://bugs.webkit.org/show_bug.cgi?id=81968

Reviewed by Adrienne Walker.

Source/WebCore:

Added unit test to existing tests for TreeSynchronizer.

When creating a new CCLayerImpl during tree synchronization, make sure we transfer the nonFastScrollableRegion as
the new CCLayerImpl will default to an empty region.

* platform/graphics/chromium/LayerChromium.h:
(WebCore::LayerChromium::nonFastScrollableRegion):
(WebCore::LayerChromium::setNonFastScrollableRegionChanged):
* platform/graphics/chromium/TreeSynchronizer.cpp:
(WebCore::TreeSynchronizer::reuseOrCreateCCLayerImpl):

Source/WebKit/chromium:

* tests/TreeSynchronizerTest.cpp:
(WebKitTests::expectTreesAreIdentical):
(WebKitTests::TEST):
(WebKitTests):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make svn-apply re-write JavaScriptCore/wtf to WTF/wtf
https://bugs.webkit.org/show_bug.cgi?id=81984

Reviewed by Adam Barth.

* Scripts/VCSUtils.pm:
(adjustPathForRecentRenamings):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111804 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Skip frames when checkerboarding an animation
https://bugs.webkit.org/show_bug.cgi?id=81716

Patch by Dana Jansens <danakj@chromium.org> on 2012-03-22
Reviewed by Adrienne Walker.

Source/WebCore:

This will stop drawing frames when prepareToDraw fails, if the draw is
not forced. The expected behaviour is outlined below by the unit tests.

When a draw fails, we:
1. Set m_needsRedraw to try again next vsync
2. Set m_needsCommit because we need more data from webkit to succeed
3. Set m_drawIfPossibleFailed. This allows us to try draw again within
the same vsync *if* a commit finishes during this time.

Unit test: CCSchedulerTest.RequestRedrawInsideFailedDraw
           CCSchedulerTest.RequestCommitInsideFailedDraw
           CCSchedulerTest.NoBeginFrameWhenDrawFails
           CCSchedulerStateMachineTest.TestFailedDrawSetsNeedsCommitAndDoesNotDrawAgain
           CCSchedulerStateMachineTest.TestSetNeedsRedrawDuringFailedDrawDoesNotRemoveNeedsRedraw
           CCSchedulerStateMachineTest.TestCommitAfterFailedDrawAllowsDrawInSameFrame
           CCSchedulerStateMachineTest.TestCommitAfterFailedAndSuccessfulDrawDoesNotAllowDrawInSameFrame
           CCSchedulerStateMachineTest.TestFailedDrawIsRetriedNextVSync

* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
(WebCore::CCLayerTreeHostImpl::prepareToDraw):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
(CCLayerTreeHostImpl):
* platform/graphics/chromium/cc/CCScheduler.cpp:
(WebCore::CCScheduler::processScheduledActions):
* platform/graphics/chromium/cc/CCScheduler.h:
(CCSchedulerClient):
* platform/graphics/chromium/cc/CCSchedulerStateMachine.cpp:
(WebCore::CCSchedulerStateMachine::CCSchedulerStateMachine):
(WebCore::CCSchedulerStateMachine::nextAction):
(WebCore::CCSchedulerStateMachine::updateState):
(WebCore::CCSchedulerStateMachine::didDrawIfPossibleCompleted):
(WebCore):
* platform/graphics/chromium/cc/CCSchedulerStateMachine.h:
(CCSchedulerStateMachine):
* platform/graphics/chromium/cc/CCThreadProxy.cpp:
(WebCore::CCThreadProxy::scheduledActionDrawAndSwapInternal):
(WebCore):
(WebCore::CCThreadProxy::scheduledActionDrawAndSwapIfPossible):
(WebCore::CCThreadProxy::scheduledActionDrawAndSwapForced):
* platform/graphics/chromium/cc/CCThreadProxy.h:
(CCThreadProxy):

Source/WebKit/chromium:

* tests/CCLayerTreeHostImplTest.cpp:
(WebKitTests::TEST_F):
* tests/CCSchedulerStateMachineTest.cpp:
(WebCore::TEST):
(WebCore):
* tests/CCSchedulerTest.cpp:
(WebKitTests::FakeCCSchedulerClient::reset):
(WebKitTests::FakeCCSchedulerClient::numDraws):
(WebKitTests::FakeCCSchedulerClient::scheduledActionDrawAndSwapIfPossible):
(FakeCCSchedulerClient):
(WebKitTests::FakeCCSchedulerClient::scheduledActionDrawAndSwapForced):
(WebKitTests::FakeCCSchedulerClient::setDrawSuccess):
(WebKitTests::TEST):
(WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::SchedulerClientThatSetNeedsDrawInsideDraw):
(WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionDrawAndSwapIfPossible):
(WebKitTests::SchedulerClientThatSetNeedsDrawInsideDraw::scheduledActionDrawAndSwapForced):
(SchedulerClientThatSetNeedsDrawInsideDraw):
(WebKitTests):
(WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::SchedulerClientThatSetNeedsCommitInsideDraw):
(WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionDrawAndSwapIfPossible):
(WebKitTests::SchedulerClientThatSetNeedsCommitInsideDraw::scheduledActionDrawAndSwapForced):
(SchedulerClientThatSetNeedsCommitInsideDraw):
* tests/CCSchedulerTestCommon.h:
(FakeCCFrameRateController):
(WebKitTests::FakeCCFrameRateController::FakeCCFrameRateController):
(WebKitTests::FakeCCFrameRateController::numFramesPending):
(WebKitTests):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Halt in progress flings on receipt of key events
https://bugs.webkit.org/show_bug.cgi?id=81988

Patch by Robert Kroeger <rjkroege@chromium.org> on 2012-03-22
Reviewed by Adrienne Walker.

* src/WebCompositorInputHandlerImpl.cpp:
(WebKit::WebCompositorInputHandlerImpl::handleInputEventInternal):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::keyEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Incorrect assert on animating opacity for a surface
https://bugs.webkit.org/show_bug.cgi?id=81994

Patch by Dana Jansens <danakj@chromium.org> on 2012-03-22
Reviewed by Adrienne Walker.

Draw opacity and animation state match on the surface itself. A
surface with animating opacity always has an owning layer without
animation, as the surface does the animation for it.

* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::paintLayerContents):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@111807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
XSS Auditor bypass via script tag src=data:, URLS.
https://bugs.webkit.org/show_bug.cgi?id=81948

Reviewed by Adam Barth.

Source/WebCore:

This change fixes an XSSAuditor bypass wherby a script with a data: URL src
attribute could evade detection by using characters from the page to create
a snippet for matching not found in the URL's reflected vector.  This change
terminates the snippet for matching earlier in these cases.

Test: http/tests/security/xssAuditor/script-tag-with-source-data-url2.html

* html/parser/XSSAuditor.cpp:
(WebCore::XSSAuditor::decodedSnippetForAttribute):

LayoutTests:

Add a test that data: URLs can't bypass xssauditor with trailing comments.

* http/tests/security/xssAuditor/script-tag-with-source-data-url2-expected.txt: Added.
* http/tests/security/xssAuditor/script-tag-with-source-data-url2.html: Added.


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