Improve behavior of position:sticky on zoomed pages
https://bugs.webkit.org/show_bug.cgi?id=134535
<rdar://problem/12898829>

Reviewed by Dean Jackson.

Despite r138036, position:sticky still had incorrect behavior in zoomed pages.

Fix by removing the scaling of the rect from viewportConstrainedVisibleContentRect(),
since all the other math happens in unscaled coordinates.

* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::constrainingRectForStickyPosition):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170690 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix this test; it was waiting about 32 years for the end of an animation.
What we really care about is the start of the animation.

* compositing/animation/keyframe-order.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Handle invalid data more gracefully.

Reviewed by Anders Carlsson.

* UIProcess/mac/LegacySessionStateCoding.cpp:
(WebKit::decodeFormData):
(WebKit::decodeBackForwardTreeNode):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make LogsPageMessagesToSystemConsoleEnabled a global debug preference
https://bugs.webkit.org/show_bug.cgi?id=134534

Reviewed by Joseph Pecoraro.

* Shared/WebPreferencesDefinitions.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170693 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebVTT percentage value can be a float
https://bugs.webkit.org/show_bug.cgi?id=134511

Reviewed by Brent Fulgham.


Source/WebCore: 
No new tests, existing tests modified.

* html/track/TextTrackCueGeneric.cpp:
(WebCore::TextTrackCueGeneric::setLine): int -> double.
(WebCore::TextTrackCueGeneric::setPosition): Ditto.
* html/track/TextTrackCueGeneric.h:

* html/track/VTTCue.cpp:
(WebCore::VTTCue::setLine): Ditto.
(WebCore::VTTCue::setPosition):  Ditto.
(WebCore::VTTCue::setCueSettings): Support floating point values for line, position, and size.
(WebCore::scanPercentage): Deleted.
* html/track/VTTCue.h:

* html/track/VTTScanner.cpp:
(WebCore::VTTScanner::scanFloat): Support negative values.
* html/track/VTTScanner.h:

* html/track/WebVTTParser.cpp: Include parseFloatPercentageValue in non-WEBVTT_REGIONS builds.
* html/track/WebVTTParser.h:

* platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp:
(WebCore::InbandTextTrackPrivateAVF::processCueAttributes): Drive by change to take a cue
    reference rather than a pointer.
(WebCore::InbandTextTrackPrivateAVF::processAttributedStrings): Ditto.
(WebCore::InbandTextTrackPrivateAVF::removeCompletedCues): Loop over all cues, don't LOG that
    we are asking the client to delete the cue because the client will have already deleted
    it when status when to GenericCueData::Complete.
* platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h:

LayoutTests: 
* media/track/captions-webvtt/tc015-positioning-ltr.vtt:
* media/track/captions-webvtt/tc015-positioning.vtt:
* media/track/captions-webvtt/tc017-line-position.vtt:
* media/track/captions-webvtt/tc018-align-text-line-position.vtt:
* media/track/captions-webvtt/tc019-cue-size.vtt:
* media/track/track-webvtt-tc015-positioning-expected.txt:
* media/track/track-webvtt-tc015-positioning.html:
* media/track/track-webvtt-tc017-line-position-expected.txt:
* media/track/track-webvtt-tc017-line-position.html:
* media/track/track-webvtt-tc018-align-text-line-position-expected.txt:
* media/track/track-webvtt-tc018-align-text-line-position.html:
* media/video-test.js:
(testCues):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@170694 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix build break on EFL and GTK ports since r170683
https://bugs.webkit.org/show_bug.cgi?id=134536

Unreviewed, build fix.


Source/WebKit2:
* CMakeLists.txt:

Tools:
* TestWebKitAPI/Tests/WebKit2/RestoreSessionStateContainingFormData.cpp:


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