Roll-on in-band captions are displayed bottom-to-top rather than top-to-bottom.
https://bugs.webkit.org/show_bug.cgi?id=117811

Reviewed by Eric Carlson.

When comparing Generic cues, we should check that their type is Generic, not WebVTT.

* html/track/TextTrackCueGeneric.cpp:
(WebCore::TextTrackCueGeneric::isOrderedBefore):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Improper deallocation of JSManagedValue causes crashes during autorelease pool draining
https://bugs.webkit.org/show_bug.cgi?id=117840

Reviewed by Geoffrey Garen.

Improperly managing a JSManagedValue can cause a crash when the JSC::Weak inside the 
JSManagedValue is destroyed upon deallocation. We would rather have improperly maintained 
JSManagedValues cause memory leaks than take down the whole app. 

The fix is to use the callback to the JSC::Weak on the destruction of the VM so that we 
can safely null it out. This will prevent ~Weak from crashing.

* API/JSManagedValue.mm:
(-[JSManagedValue JSC::JSC::]):
(JSManagedValueHandleOwner::finalize):
* API/tests/testapi.mm: Added a test that crashed prior to this fix due to a leaked 
managed reference. Also fixed a small style nit I noticed in another test.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151786 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make Windows makefile copy build output to a different folder.
<rdar://problem/14219184>.

* WTF.vcxproj/WTF.make:
* JavaScriptCore.vcxproj/JavaScriptCore.make:
* WebCore.vcxproj/WebCore.make:
* WebKit.vcxproj/WebKit.make:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r151451): Text not vertically centered correctly on icloud.com
https://bugs.webkit.org/show_bug.cgi?id=117744

Reviewed by David Hyatt.

Source/WebCore:

The positioned height and width computation adds in the element's border and padding so
don't add it to the intrinsic height and preferred widths of text controls that are
absolutely positioned.

Test: fast/replaced/height-of-positioned-text-control.html

* rendering/RenderTextControl.cpp:
(WebCore::RenderTextControl::computeLogicalHeight):
(WebCore::RenderTextControl::computePreferredLogicalWidths):

LayoutTests:

* fast/forms/onselect-textfield-expected.txt:
* fast/replaced/height-of-positioned-text-control-expected.html: Added.
* fast/replaced/height-of-positioned-text-control.html: Added.
* fast/replaced/width-and-height-of-positioned-replaced-elements-expected.txt:
* platform/mac/fast/forms/input-appearance-preventDefault-expected.png:
* platform/mac/fast/forms/input-appearance-preventDefault-expected.txt:
* platform/mac/fast/replaced/width-and-height-of-positioned-replaced-elements-expected.png: Added.
* platform/mac/fast/replaced/width-and-height-of-positioned-replaced-elements-expected.txt:
* platform/qt/fast/forms/input-appearance-preventDefault-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151788 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][WK2] REGRESSION(r151737): fast/replaced/width100percent-image.html fails
https://bugs.webkit.org/show_bug.cgi?id=117824

Unreviewed, rebaselining.

* platform/qt-5.0-wk2/TestExpectations:
* platform/qt-5.0-wk2/fast/replaced/width100percent-image-expected.png:
* platform/qt-5.0-wk2/fast/replaced/width100percent-image-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Mark compositing/repaint/positioned-movement.html as flaky on Mountain Lion Debug

Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-06-20

* platform/mac-wk2/TestExpectations:
The test fails regularly in Debug on Mountain Lion.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] remove bashism from configure
https://bugs.webkit.org/show_bug.cgi?id=117796

Reviewed by Gustavo Noronha Silva.

* Source/autotools/FindDependencies.m4: Perform string appending by redeclaring the base string to the value
of the base string followed by the string that's being appended. This replaces the use of the '+=' operator
that works under bash but is not supported by other shells.


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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151792 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        [Mac] Downloaded file name encoding is incorrect when download link opens in a new window
        https://bugs.webkit.org/show_bug.cgi?id=117818
        <rdar://problem/14212635>

        Reviewed by Brady Eidson.

        No tests added. The machinery we have for logging downloaded file name is very
        far from being able to work in a secondary window.

        * loader/FrameLoader.cpp: (WebCore::FrameLoader::addExtraFieldsToRequest):
        Made a targeted fix - don't update encoding fallback array if we already have one,
        there is no chance for it to be more correct. In this case, it's incorrect because
        it comes from a new blank window, instead of original referer.
        We have a lot of code in addExtraFieldsToRequest() to struggle with this, and we have
        a FIXME to try not calling it from policy delegate.



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