Add layout tests for test cases in Bug 5206
<http://webkit.org/b/5206>

Reviewed by Eric Seidel.

These issues were likely fixed in r89257 for Bug 62613.

* fast/js/parse-error-external-script-in-eval-expected.txt: Added.
* fast/js/parse-error-external-script-in-eval.html: Added.
* fast/js/parse-error-external-script-in-new-Function-expected.txt: Added.
Note that the line number in this result is relative to the line
number of the second argument to the new Function() method.
* fast/js/parse-error-external-script-in-new-Function.html: Added.
* fast/js/resources/parse-error-external-script-in-eval.js: Added.
* fast/js/resources/parse-error-external-script-in-new-Function.js: Added.

* platform/chromium/fast/js/parse-error-external-script-in-eval-expected.txt: Added.
* platform/chromium/fast/js/parse-error-external-script-in-new-Function-expected.txt: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] Unreviewed buildfix after r149741.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::setClosedCaptionsVisible):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
BUILD FIX (r149579): Use Vector::appendVector() instead of Vector::append()

* DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
(concatenateAttributeAndValue): Switch to appendVector().

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove chromium test results added in r149743

* platform/chromium/fast/js/parse-error-external-script-in-eval-expected.txt: Removed.
* platform/chromium/fast/js/parse-error-external-script-in-new-Function-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove ThreadingNone.cpp

Rubber-stamped by Beth Dakin.

ThreadingNone.cpp is empty and not used anywhere.

* wtf/ThreadingNone.cpp: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove BinarySemaphoreWin.cpp.

Rubber-stamped by Beth Dakin.

BinarySemaphoreWin has been moved to WTF, but the original was never removed.

* Platform/CoreIPC/win/BinarySemaphoreWin.cpp: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Prevent crash when track is deleted during video element deletion.
https://bugs.webkit.org/show_bug.cgi?id=106183

Reviewed by Dean Jackson.

Source/WebCore:

Test: media/track/track-remove-crash.html

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::removedFrom): Set m_inActiveDocument to false so we
    do not process text track cues or dispatch related events.

LayoutTests:

* media/track/track-remove-crash-expected.txt: Added.
* media/track/track-remove-crash.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Add my apple.com e-mail address to contributors.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        <rdar://problem/13776220> 13A451: PluginProcess(2225) deny file-read-data ~/Library/InputManagers
        <rdar://problem/13642510> PluginProcess logs sandbox violations initializing TextServices

        Reviewed by Anders Carlsson.

        * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb: Allow more
        TextServices and NSInputManager directories.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Configure buildbot for 32bit builder.
https://bugs.webkit.org/show_bug.cgi?id=115769
        
Reviewed by Ryosuke Niwa.

* BuildSlaveSupport/build.webkit.org-config/config.json:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed.  Fix duplicate builddir.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION(r149700): fast/css-generated-content/close-quote-negative-depth.html
https://bugs.webkit.org/show_bug.cgi?id=115776

Reviewed by Anders Carlsson.

Source/WebCore:

I changed depth to more closely match what is in the CSS3 specification.
There may be a more optimal way to make it work, but this seems the most straightforward.

* rendering/RenderQuote.cpp:
(WebCore::RenderQuote::RenderQuote): Initialize m_depth to -1 because that depth
is consistent with the empty string that is the initial value of the text. The
real depth will be calculated when the node is attached.
(WebCore::RenderQuote::originalText): Removed the "depth - 1" logic that
used to be done for close quotes. Instead, the updateDepth function now correctly
subtracts one for the close quote itself, not just afterward. Also added an early
exit when the depth is negative; these changes together fix the bug.
(WebCore::RenderQuote::attachQuote): Added a call to updateDepth even for the render
quote head, we now need that to set the depth either to 0 or to -1.
(WebCore::RenderQuote::detachQuote): Removed code to set m_depth to 0;  if we are not
resetting the text then m_depth should be left matching the text, otherwise updateDepth
might not do its job correctly if the quote is later re-attached. What matters is that
m_depth and the text are in sync.
(WebCore::RenderQuote::updateDepth): Changed updating logic in two ways. First,
compute the depth in a local variable rather than computing it in a data member
after first saving off the old value of the data member. That's clearer style.
Second, add the code to change negative depths to zero when propagating to the
next quote in the chain, which matches how the standard is written, and decrement
the depth of the close quote itself, not the quote after the close quote.

LayoutTests:

* TestExpectations: Expect success again on this test.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149754 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. AppleWin VS2010 build fix.

* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening, mac port.
These tests should use testRunner, not layoutTestController.

* fast/js/parse-error-external-script-in-eval.html:
* fast/js/parse-error-external-script-in-new-Function.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
new-run-webkit-websocketserver doesn't work after Chromium removal
https://bugs.webkit.org/show_bug.cgi?id=115816

Reviewed by Joseph Pecoraro.

Fix the bug by instantiating the correct port object.

* Scripts/new-run-webkit-websocketserver:
(main):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add layout test that lists all global constructors
https://bugs.webkit.org/show_bug.cgi?id=115724

Reviewed by Ryosuke Niwa.

Update fast/js/global-constructors-attributes.html so that it lists all
global constructors instead of just a few.

* fast/js/global-constructors-attributes-expected.txt:
* fast/js/script-tests/global-constructors-attributes.js:
(classNameForObject):
(constructorPropertiesOnWindow):
* platform/efl/fast/js/global-constructors-attributes-expected.txt: Added.
* platform/gtk/fast/js/global-constructors-attributes-expected.txt: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] Plumb the Automake build system for the Battery Status API feature
https://bugs.webkit.org/show_bug.cgi?id=115718

Reviewed by Martin Robinson.

.: 

* Source/autotools/FindDependencies.m4: Check for the upower-glib dependency if the feature is enabled.
* Source/autotools/PrintBuildConfiguration.m4: Print out the feature status.
* Source/autotools/ReadCommandLineArguments.m4: Check for the --enable-battery-status option. The deafult,
when the option is not given, is to disable the feature.
* Source/autotools/SetupWebKitFeatures.m4: Treat the ENABLE_BATTERY_STATUS define as configurable.
* Source/autotools/symbols.filter: Export a couple of symbols that are used in the WebCore internals library.

Source/WebCore: 

No new tests - no new functionality. The feature is not enabled yet, though all the relevant tests
pass when it is.

* GNUmakefile.am: Add the Modules/battery directory to the list of search paths for header inclusions.
Include the same directory under the IDL_PATH variable so the IDL files it contains are processed.
List these IDL files using a wildcard under the EXTRA_DIST list.
* GNUmakefile.list.am: Add the build targets for the module source files, IDLs and resulting JS bindings.
* bindings/gobject/GNUmakefile.am: Add the build targets for the GObject DOM bindings.

Tools: 

* Scripts/webkitdirs.pm:
(buildAutotoolsProject): List battery-status as a configurable feature, meaning its value will be adjusted
through the --(enable|disable)-battery-status flag passed to configure.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove RetainPtr::adoptNS and RetainPtr::adoptCF
https://bugs.webkit.org/show_bug.cgi?id=115817

Reviewed by Jessie Berlin.

These functions are now unused so remove them. The preferred way to create a RetainPtr with an
adopted reference is to use the adoptNS/adoptCF free functions.

Rewrite the move assignment operators to just call CFRelease explicitly.

* wtf/RetainPtr.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Coalesce WKView visibleRect changes
https://bugs.webkit.org/show_bug.cgi?id=115792
<rdar://problem/13776842>

Reviewed by Simon Fraser.

The system can call renewGState much more often than we actually want
to update the WebProcess' notion of the exposed rect. Most importantly,
within an autolayout pass it is called many times, and often sees
[WKView visibleRect] be an intermediate value which will never be
flushed to the screen. We only care about the final value, so we should
wait until AppKit has finished - with a zero-delay timer - to inform the
WebProcess of exposed rect changes.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::WebPageProxy):
Add exposedRectChangedTimer.
(WebKit::WebPageProxy::close):
Cancel exposedRectChangedTimer when tearing down the WebPageProxy.
* UIProcess/WebPageProxy.h:
(WebPageProxy):
Add exposedRectChangedTimerFired, the timer itself, and two rects:
the most recent exposed rect from the WKView, and the last one we actually
sent across to the WebProcess.
* UIProcess/mac/WebPageProxyMac.mm:
(WebKit::WebPageProxy::viewExposedRectChanged):
Instead of immediately sending exposed rect changes to the WebProcess,
start a zero-delay timer to do so.
(WebKit::WebPageProxy::exposedRectChangedTimerFired):
Once the zero-delay timer fires, send the new exposed rect to the WebProcess.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Safari unexpectedly quits with invalid message from the web process with message ID 0x323002f (WebPageProxy.DecidePolicyForNavigationAction)
https://bugs.webkit.org/show_bug.cgi?id=115814
<rdar://problem/12331258>

Reviewed by Andreas Kling.

To ensure that any asynchronous messages are delivered to the UI process before
synchronous messages (except when doing so would lead to a deadlock), Call
setOnlySendMessagesAsDispatchWhenWaitingForSyncReplyWhenProcessingSuchAMessage on the UI process connections.

* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeConnection):

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