Remove unused code from PODArena
https://bugs.webkit.org/show_bug.cgi?id=116990

Reviewed by Sam Weinig.

PODArena is only used as a base class of PODFreeListArena so remove unused member functions and make all
members protected to make it impossible to use it without subclassing.

PODArena is a risky class to use since it doesn't return memory to the system unless the arena object is destroyed.
This was the reason why PODFreeListArea was added. An upcoming patch will merge PODArena with PODFreeListArena and
this is a small step towards that goal.

* platform/PODArena.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
media/video-pause-immediately.html test failing on some platforms.
https://bugs.webkit.org/show_bug.cgi?id=116985

video-pause-immediately.html will fail on some platforms if the <video> element issues a
timeupdate event at currentTime=0. Fix the test by only removing the timeupdate listener
inside the currentTime>0 conditional.

Reviewed by Eric Carlson.

* media/video-pause-immediately.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] Scrubbing long movie files results in timeline snapping back to 0 during scrub.
https://bugs.webkit.org/show_bug.cgi?id=116986

Reviewed by Eric Carlson.

Source/WebCore:

Keep a count of the number of in-flight seek requests, and only issue a timeupdate
(which triggers a "seeked" event) when the final seek completes.

Test: media/video-seek-multiple.html

* platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
(WebCore::MediaPlayerPrivateAVFoundation::seek):
(WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
* platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
(MediaPlayerPrivateAVFoundation):

LayoutTests:

* media/video-seek-multiple-expected.txt: Added.
* media/video-seek-multiple.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Windows] Be consistent with allocation/deallocation behavior
https://bugs.webkit.org/show_bug.cgi?id=116998

Reviewed by Anders Carlsson.

* WebPreferences.cpp:
(WebPreferences::setStringValue): Switch from using _wcsdup and
CFStringCreateWithCharactersNoCopy to just use the standard
CFStringCreateWithCharacters call.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move some PODArena members to PODFreeListArena
https://bugs.webkit.org/show_bug.cgi?id=116993

Reviewed by Sam Weinig.

This is more work towards merging the two classes.

* platform/PODArena.h:
(PODArena):
* platform/PODFreeListArena.h:
(PODFreeListArena):
(WebCore::PODFreeListArena::PODFreeListArena):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Merge PODArea::Chunk into PODFreeListArena::FreeListChunk
https://bugs.webkit.org/show_bug.cgi?id=117000

Reviewed by Oliver Hunt.

* platform/PODArena.h:
(WebCore::PODArena::roundUp):
* platform/PODFreeListArena.h:
(PODFreeListArena):
(WebCore::PODFreeListArena::FreeListChunk::FreeListChunk):
(FreeListChunk):
(WebCore::PODFreeListArena::FreeListChunk::~FreeListChunk):
(WebCore::PODFreeListArena::FreeListChunk::allocate):

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