Unreviewed test system fix.

* TestExpectations: I mistakenly checked in the region-webvtt tests as enabled. This feature is not
ready to be turned on for all platforms yet.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165898 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (OS X 10.9.2): PageVisibilityStateWithWindowChanges.WebKit2 API test fails
https://bugs.webkit.org/show_bug.cgi?id=130463

* TestWebKitAPI/Tests/mac/PageVisibilityStateWithWindowChanges.mm: Disable the test.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165899 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add new functionality that will be required by the history item decoding
https://bugs.webkit.org/show_bug.cgi?id=130433

Reviewed by Sam Weinig.

Source/WebCore:

* platform/KeyedCoding.h:
(WebCore::KeyedDecoder::decodeConditionalObject):

Source/WebKit2:

* Shared/cf/KeyedDecoder.cpp:
(WebKit::KeyedDecoder::decodeUInt32):
(WebKit::KeyedDecoder::decodeInt32):
(WebKit::KeyedDecoder::decodeFloat):
* Shared/cf/KeyedDecoder.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Update type of local vars to match the type of String length.
<https://webkit.org/b/130077>

Reviewed by Geoffrey Garen.

* runtime/JSStringJoiner.cpp:
(JSC::JSStringJoiner::join):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165902 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2 View Gestures: Swipe gesture can track vertical movement instead of horizontal movement
https://bugs.webkit.org/show_bug.cgi?id=130441
<rdar://problem/16337279>

Reviewed by Simon Fraser.

* UIProcess/mac/ViewGestureControllerMac.mm:
(WebKit::scrollEventCanBecomeSwipe):
Factor logic that determines if a scroll event can become a swipe
out into scrollEventCanBecomeSwipe.
Use <= instead of < when comparing the axes, because we don't want
to start a swipe on a completely diagonal scroll either (because AppKit
can start tracking a vertical swipe in that case).

(WebKit::ViewGestureController::handleScrollWheelEvent):
(WebKit::ViewGestureController::wheelEventWasNotHandledByWebCore):
Make use of scrollEventCanBecomeSwipe.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix cue rendering test and include support for left/right alignment
https://bugs.webkit.org/show_bug.cgi?id=130406

Reviewed by Eric Carlson.

Merged from Blink (patch by vcarbune@chromium.org):
https://chromium.googlesource.com/chromium/blink/+/e695703cb603421c741e59a557a7989113c13b94
http://crbug.com/25155003

Source/WebCore: 

No new tests. Covered by media/track/track-cue-rendering-snap-to-lines-not-set.html.

* html/track/VTTCue.cpp:
(WebCore::leftKeyword): Added.
(WebCore::rightKeyword): Added.
(WebCore::VTTCueBox::applyCSSProperties): Added.
(WebCore::VTTCue::VTTCue):
(WebCore::VTTCue::align): Handle left/right alignment.
(WebCore::VTTCue::setAlign): Ditto.
(WebCore::VTTCue::calculateDisplayParameters): Refactored and revised for left/right tokens.
(WebCore::VTTCue::setCueSettings): Ditto.
(WebCore::VTTCue::getCSSAlignment): Added.
(WebCore::VTTCue::getCSSWritingMode): Added.
* html/track/VTTCue.h:

LayoutTests: 

* media/track/captions-webvtt/captions-snap-to-lines-not-set.vtt: Revised for left/right alignment tags.
* media/track/track-cue-rendering-snap-to-lines-not-set-expected.txt: Ditto.
* media/track/track-cue-rendering-snap-to-lines-not-set.html: Ditto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@165905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Small cleanup of empty string
https://bugs.webkit.org/show_bug.cgi?id=130438

Reviewed by Anders Carlson.

The empty string is weird becuase it is used as the impl for an AtomicString, but isAtomic()
returns false.
Also, we set a valid pointer for the characters pointer due to an old PCRE bug; remove this.
Also, we currently only create one 'static' string, the empty string. Adding more might break
assumtions, inhibit the constructor from being used to create other static strings for now.

* wtf/text/AtomicString.h:
(WTF::AtomicString::add):
    - update assert.
* wtf/text/StringImpl.h:
(WTF::StringImpl::StringImpl):
    - Merge ConstructStaticString constructors, only allow the empty static string to be constructed.
* wtf/text/StringStatics.cpp:
(WTF::StringImpl::empty):
    - ConstructStaticString -> ConstructEmptyString, remove arguments, DEPRECATED_DEFINE_STATIC_LOCAL -> NeverDestroyed.



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