[Chromium] IndexedDB: WebKit API plumbing to pass abort reason code/message to script
https://bugs.webkit.org/show_bug.cgi?id=99193

Reviewed by Adam Barth.

Add database error (code, message) to payload for back-end to front-end abort call,
so that scripts can determine why the abort occurred - e.g. ConstraintError during
indexing. This API change allows the Chromium plumbing to land; the real implementation
is in http://webkit.org/b/99097 and will land later.

* public/WebIDBTransactionCallbacks.h:
(WebKit):
(WebIDBTransactionCallbacks):
(WebKit::WebIDBTransactionCallbacks::onAbort):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add LSKD support to MediaPlayerPrivateAVFoundation.
https://bugs.webkit.org/show_bug.cgi?id=98090

Reviewed by Anders Carlsson.

Add support for LSKD key system to MediaPlayerPrivateAVFoundation.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
(MediaPlayerPrivateAVFoundationObjC): Add m_loaderDelegate, m_keyURIToRequestMap, and m_sessionToRequestMap.
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(globalLoaderDelegateQueue): Static accessor for the dispatch queue to use for the loader delegate.
(WebCore::MediaPlayerPrivateAVFoundationObjC::MediaPlayerPrivateAVFoundationObjC):
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Add the loader delegate to the AVURLAsset.
(WebCore::keySystemIsSupported): Convenience function; checks that the key system matches "com.apple.lskd"
(WebCore::MediaPlayerPrivateAVFoundationObjC::extendedSupportsType): Check the key system matches.
(WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource): Fire a needkey event with an initData containing
    the key URI.
(WebCore::extractKeyURIKeyIdAndCertificateFromInitData): Extract the keyURI, keyID, and the app certificate from the initData.
(WebCore::MediaPlayerPrivateAVFoundationObjC::generateKeyRequest): Generate a streaming key request from AVFoundation and
    fire a keymessage event.
(WebCore::MediaPlayerPrivateAVFoundationObjC::addKey): Pass to AVFoundation through the AVAssetResourceLoader.
(WebCore::MediaPlayerPrivateAVFoundationObjC::cancelKeyRequest): Release the loader delegate.
(-[WebCoreAVFLoaderDelegate initWithCallback:]): Simple constructor.
(-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]): Pass to the MediaPlayerPrivateAVFoundationObjC.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131220 268f45cc-cd09-0410-ab3c-d52691b4dbfc
https://bugs.webkit.org/show_bug.cgi?id=99204
ScrollingStateNodes should keep track of their IDs

Reviewed by Simon Fraser.

There is a HashMap in ScrollingCoordinatorMac that maps 
ScrollingNodeIDs to ScrollingStateNodes. The nodes themselves should 
keep track of this id. Then the id can be used to make sure 
ScrollingStateNodes remove themselves from the HashMap when they are 
destroyed, and it will also be useful for associating 
ScrollingStateNodes with ScrollingTreeNodes over on the scrolling 
thread.
  
This patch only has the ScrollingStateNodes cache the id. I will 
actually make use of the id in follow-up patches.

* page/scrolling/ScrollingStateNode.cpp:
(WebCore::ScrollingStateNode::ScrollingStateNode):
* page/scrolling/ScrollingStateNode.h:
(ScrollingStateNode):
(WebCore::ScrollingStateNode::scrollingNodeID):
* page/scrolling/ScrollingStateScrollingNode.cpp:
(WebCore::ScrollingStateScrollingNode::create):
(WebCore::ScrollingStateScrollingNode::ScrollingStateScrollingNode):
* page/scrolling/ScrollingStateScrollingNode.h:
(ScrollingStateScrollingNode):
* page/scrolling/mac/ScrollingCoordinatorMac.mm:
(WebCore::ScrollingCoordinatorMac::attachToStateTree):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131221 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed chromium rebaseline for r131216.

* fast/box-sizing/box-sizing-expected.txt: Replaced.
* fast/repaint/repaint-during-scroll-with-zoom-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/repaint/repaint-during-scroll-with-zoom-expected.txt: Removed.
* platform/chromium-mac-snowleopard/fast/writing-mode/fieldsets-expected.png:
* platform/chromium-mac/compositing/shadows/shadow-drawing-expected.txt:
* platform/chromium-mac/fast/block/positioning/replaced-inside-fixed-top-bottom-expected.png:
* platform/chromium-mac/fast/box-sizing/box-sizing-expected.txt:
* platform/chromium-mac/fast/repaint/repaint-during-scroll-with-zoom-expected.txt:
* platform/chromium-mac/fast/writing-mode/fieldsets-expected.png:
* platform/chromium-mac/fast/writing-mode/fieldsets-expected.txt:
* platform/chromium-mac/media/media-document-audio-repaint-expected.txt:
* platform/chromium-win-xp/fast/repaint/repaint-during-scroll-with-zoom-expected.txt: Removed.
* platform/efl/fast/box-sizing/box-sizing-expected.txt: Removed.
* platform/efl/fast/repaint/repaint-during-scroll-with-zoom-expected.txt: Removed.
* platform/gtk/fast/box-sizing/box-sizing-expected.txt: Removed.
* platform/gtk/fast/repaint/repaint-during-scroll-with-zoom-expected.txt: Removed.
* platform/win-future/fast/box-sizing: Added.
* platform/win-future/fast/box-sizing/box-sizing-expected.txt: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Remove used frameForEnteredContext API
https://bugs.webkit.org/show_bug.cgi?id=99201

Reviewed by Eric Seidel.

No one in Chromium-land understands the difference between
frameForEnteredContext and frameForCurrentContext. Rather than give
folks a confusing choice, let's just expose the one we most often want
to use.

I've already removed all callers of frameForEnteredContext downstream.

* public/WebFrame.h:
* src/WebFrameImpl.cpp:
(WebKit):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131223 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move QDataStream functions into HistoryItemQt.cpp
https://bugs.webkit.org/show_bug.cgi?id=99203

Reviewed by Andreas Kling.

It seems like the QDataStream stream operators are only used from HistoryItemQt.cpp
inside WebCore, so move them there. If in the future they are required elsewhere, they should
be moved into a separate header instead of polluting headers unnecessarily.

Source/WebCore:

* history/qt/HistoryItemQt.cpp:
(operator<<):
(operator>>):
* platform/FractionalLayoutUnit.h:
* platform/graphics/IntPoint.h:

Source/WTF:

* wtf/Vector.h:
* wtf/qt/StringQt.cpp:
* wtf/text/WTFString.h:

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