MediaStream API: Make PeerConnection00's API fully compliant with the draft
https://bugs.webkit.org/show_bug.cgi?id=85491

Reviewed by Adam Barth.

Source/Platform:

* chromium/public/WebPeerConnection00HandlerClient.h:

Source/WebCore:

Mainly making the relevant API's use objects (aka Dictionaries) instead of the temporary strings,
but also making a few API's exception aware and changing the name of a flag.

Test: fast/mediastream/peerconnection-iceoptions.html

* Modules/mediastream/PeerConnection00.cpp:
(WebCore::PeerConnection00::createMediaHints):
(WebCore::PeerConnection00::createOffer):
(WebCore):
(WebCore::PeerConnection00::createAnswer):
(WebCore::PeerConnection00::createIceOptions):
(WebCore::PeerConnection00::createDefaultIceOptions):
(WebCore::PeerConnection00::startIce):
(WebCore::PeerConnection00::addStream):
(WebCore::PeerConnection00::changeReadyState):
* Modules/mediastream/PeerConnection00.h:
(WebCore):
(PeerConnection00):
* Modules/mediastream/PeerConnection00.idl:
* platform/mediastream/chromium/PeerConnection00HandlerInternal.cpp:
(WebCore::PeerConnection00HandlerInternal::startIce):

Source/WebKit/chromium:

* src/AssertMatchingEnums.cpp:

LayoutTests:

* fast/mediastream/peerconnection-Attributes-expected.txt:
* fast/mediastream/peerconnection-iceoptions-expected.txt: Added.
* fast/mediastream/peerconnection-iceoptions.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, build fix.
Move Chromium-specific test into platform/chromium.

* platform/chromium/inspector/styles/device-metrics-fit-window-expected.txt: Renamed from LayoutTests/inspector/styles/device-metrics-fit-window-expected.txt.
* platform/chromium/inspector/styles/device-metrics-fit-window.html: Renamed from LayoutTests/inspector/styles/device-metrics-fit-window.html.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116128 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fix bit packing in FillLayer on Windows
https://bugs.webkit.org/show_bug.cgi?id=85636

Reviewed by Ryosuke Niwa.

Use unsigned for all bit packed types. I manually verified that
the current uses of these member variables always assign true or false.

No new tests, adding a compile assert to verify bit packing.

* rendering/style/FillLayer.cpp:
(SameSizeAsFillLayer): Added compile assert.
(WebCore):
(WebCore::FillLayer::FillLayer): Reorder m_sizeLength so bit packed fields are adjacent.
(WebCore::FillLayer::operator=): Ditto.
* rendering/style/FillLayer.h:
(FillLayer): Convert bools to unsigned to match other bit packed fields.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116129 268f45cc-cd09-0410-ab3c-d52691b4dbfc
TiledCoreAnimationDrawingArea should handle visibility changes
https://bugs.webkit.org/show_bug.cgi?id=85645
<rdar://problem/11247192>

Reviewed by Oliver Hunt.

Replicate the visibility handling logic from DrawingAreaImpl and LayerTreeHostCAMac.

* UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
(TiledCoreAnimationDrawingAreaProxy):
* UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
(WebKit::TiledCoreAnimationDrawingAreaProxy::visibilityDidChange):
(WebKit):
* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
(TiledCoreAnimationDrawingArea):
* WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
(WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
(WebKit::TiledCoreAnimationDrawingArea::suspendPainting):
(WebKit):
(WebKit::TiledCoreAnimationDrawingArea::resumePainting):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove file that was deleted in http://trac.webkit.org/changeset/116085/.
For some reason, this was breaking the chromium build (probably a gyp bug
since chromium shouldn't be pulling in this file).

* WebCore.gypi:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CSP: Eval isn't blocked in about:blank subframes
https://bugs.webkit.org/show_bug.cgi?id=85553

Reviewed by Eric Seidel.

This patch fixes a race condition in this test.  We need to wait for
the load event to ensure that the iframe has finished loading.

* http/tests/security/contentSecurityPolicy/eval-blocked-in-about-blank-iframe.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116132 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening, marking a test added in r116127 as failing.

* platform/gtk/test_expectations.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116133 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt][NRWT] Run each DRT in it's own xvfb
https://bugs.webkit.org/show_bug.cgi?id=77335

Patch by Kristóf Kosztyó <kkristof@inf.u-szeged.hu> on 2012-05-04
Reviewed by Dirk Pranke.

* Scripts/webkitpy/layout_tests/port/gtk.py:
(GtkPort._driver_class):
* Scripts/webkitpy/layout_tests/port/qt.py:
(QtPort._driver_class):
* Scripts/webkitpy/layout_tests/port/xvfbdriver.py: Added.
(XvfbDriver):
(XvfbDriver._start):
(XvfbDriver._start.x_filter):
(XvfbDriver.stop):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116134 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix the GTK+ debug build after the r116114.

* WebCoreSupport/EditorClientGtk.cpp:
(WebKit::EditorClient::handleInputMethodKeyboardEvent): Update an
assertion to reflect a real method name in PlatformKeyboardEvent
and remove an unnecessary call to preventDefault() which triggered
an assertion failure higher in the call stack.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116135 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Mark tests as flaky timeouts on chromium Mac 10.6
https://bugs.webkit.org/show_bug.cgi?id=83076

Unreviewed, expectations change.

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116136 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix path to external JS file that was not updated when the file
was moved in http://trac.webkit.org/changeset/116128/.

* platform/chromium/inspector/styles/device-metrics-fit-window.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116137 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Mark a few more tests as flaky across all macs.

Unreviewed, expectations change.

fast/loader/javascript-url-in-embed.html = TEXT PASS (Release only)
http/tests/security/sandboxed-iframe-modify-self.html = TEXT PASS
media/video-poster-blocked-by-willsendrequest.html = TEXT PASS
userscripts/user-style-all-frames.html = TEXT PASS

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116138 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Mark editing tests as slow.
https://bugs.webkit.org/show_bug.cgi?id=85649

Unreviewed, expectations change.

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Revert compositor layer scrolling
https://bugs.webkit.org/show_bug.cgi?id=85644

Patch by Sami Kyostila <skyostil@chromium.org> on 2012-05-04
Reviewed by Steve Block.

Source/WebCore:

This patch reverts the following commits because they were found to
trigger crashes. See discussion at http://code.google.com/p/chromium/issues/detail?id=124393.

    [chromium] Allow scrolling non-root layers in the compositor thread
    http://trac.webkit.org/changeset/114651

    [chromium] Don't crash when scrolling empty layer tree
    http://trac.webkit.org/changeset/114761

    [chromium] Don't keep pointers to released layer tree
    http://trac.webkit.org/changeset/115080

* platform/graphics/chromium/ContentLayerChromium.cpp:
* platform/graphics/chromium/ContentLayerChromium.h:
(ContentLayerChromium):
* platform/graphics/chromium/GraphicsLayerChromium.h:
(GraphicsLayerChromium):
* platform/graphics/chromium/LayerChromium.cpp:
(WebCore::LayerChromium::pushPropertiesTo):
* platform/graphics/chromium/LayerChromium.h:
(LayerChromium):
* platform/graphics/chromium/cc/CCLayerImpl.cpp:
* platform/graphics/chromium/cc/CCLayerImpl.h:
* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::applyScrollAndScale):
* platform/graphics/chromium/cc/CCLayerTreeHostCommon.h:
(CCLayerTreeHostCommon):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::CCLayerTreeHostImpl):
(WebCore::CCLayerTreeHostImpl::startPageScaleAnimation):
(WebCore::CCLayerTreeHostImpl::calculateRenderSurfaceLayerList):
(WebCore::CCLayerTreeHostImpl::contentSize):
(WebCore::CCLayerTreeHostImpl::prepareToDraw):
(WebCore::findScrollLayer):
(WebCore::CCLayerTreeHostImpl::setRootLayer):
(WebCore::CCLayerTreeHostImpl::setPageScaleFactorAndLimits):
(WebCore):
(WebCore::CCLayerTreeHostImpl::adjustScrollsForPageScaleChange):
(WebCore::CCLayerTreeHostImpl::setPageScaleDelta):
(WebCore::CCLayerTreeHostImpl::applyPageScaleDeltaToScrollLayer):
(WebCore::CCLayerTreeHostImpl::updateMaxScrollPosition):
(WebCore::CCLayerTreeHostImpl::scrollBegin):
(WebCore::CCLayerTreeHostImpl::scrollBy):
(WebCore::CCLayerTreeHostImpl::scrollEnd):
(WebCore::CCLayerTreeHostImpl::pinchGestureUpdate):
(WebCore::CCLayerTreeHostImpl::computePinchZoomDeltas):
(WebCore::CCLayerTreeHostImpl::makeScrollAndScaleSet):
(WebCore::CCLayerTreeHostImpl::processScrollDeltas):
(WebCore::CCLayerTreeHostImpl::animatePageScale):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
(WebCore::CCLayerTreeHostImpl::releaseRootLayer):
(WebCore::CCLayerTreeHostImpl::scrollLayer):
(CCLayerTreeHostImpl):

Source/WebKit/chromium:

* src/WebContentLayerImpl.cpp:
* src/WebContentLayerImpl.h:
(WebContentLayerImpl):
* tests/CCLayerTreeHostCommonTest.cpp:
* tests/CCLayerTreeHostImplTest.cpp:
(WebKitTests::TEST_F):
* tests/CCLayerTreeHostTest.cpp:
(WTF::MockContentLayerDelegate::paintContents):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r116009): image no longer visible on fast/block/float/float-not-removed-from-next-sibling4.html
https://bugs.webkit.org/show_bug.cgi?id=85651

Check in failing results for platform/mac/.

* platform/mac/fast/block/float/float-not-removed-from-next-sibling4-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116143 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Rendering bmp file as text file when Content-Type:image/x-ms-bmp from apache web server.
https://bugs.webkit.org/show_bug.cgi?id=85036

Reviewed by Antonio Gomes.

Source/WebCore:

Move getNormalizedMIMEType from WebKit into MIMETypeRegistry. This way we support uncommon mime types like image/pjpeg
and image/x-ms-bmp out of the box since we map to the more common image/jpeg and image/bmp respectively.

* platform/MIMETypeRegistry.cpp:
(WebCore::initializeSupportedImageMIMETypes):
(WebCore::MIMETypeRegistry::isSupportedImageMIMEType):
(WebCore::MIMETypeRegistry::isSupportedImageResourceMIMEType):
(WebCore):
(WebCore::mimeTypeAssociationMap):
(WebCore::MIMETypeRegistry::getNormalizedMIMEType):
* platform/MIMETypeRegistry.h:
(MIMETypeRegistry):

Source/WebKit/blackberry:

Move getNormalizedMIMEType into WebCore::MIMETypeRegistry.

* Api/WebSettings.cpp:
(WebKit):
(BlackBerry::WebKit::WebSettings::isSupportedObjectMIMEType):
* Api/WebSettings.h:
* WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
(WebCore::FrameLoaderClientBlackBerry::createPlugin):
(WebCore::FrameLoaderClientBlackBerry::canShowMIMEType):
(WebCore::FrameLoaderClientBlackBerry::objectContentType):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[GTK] DRT needs an implementation of LayoutTestController::setDefersLoading and ::goBack
https://bugs.webkit.org/show_bug.cgi?id=85134

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-05-04
Reviewed by Martin Robinson.

Source/WebKit/gtk:

Add support for setDefersLoading in DumpRenderTreeSupportGtk.

* WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
(DumpRenderTreeSupportGtk::setDefersLoading):
* WebCoreSupport/DumpRenderTreeSupportGtk.h:
(DumpRenderTreeSupportGtk):

Tools:

Add missing implementation setDefersLoading and goBack to GTK's
LayoutTestController so that the test case rely on these methods
can be enabled.

* DumpRenderTree/gtk/DumpRenderTree.cpp:
(resetDefaultsToConsistentValues):
* DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
(LayoutTestController::goBack):
(LayoutTestController::setDefersLoading):

LayoutTests:

Unskip loader/navigation-while-deferring-loads.html and disable
loader/load-defer-resume-crash.html as it triggers an assertion
failure.

* platform/gtk/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116146 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Layout Test media/track/track-cues-pause-on-exit.html is flaky on chromium debug builds
https://bugs.webkit.org/show_bug.cgi?id=80067

Patch by Victor Carbune <vcarbune@adobe.com> on 2012-05-04
Reviewed by Eric Carlson.

Trying a different approach, blocking on waitForEvent for the video element.

* media/track/track-cues-pause-on-exit-expected.txt: Updated.
* media/track/track-cues-pause-on-exit.html: Changed to use
waitForEvent and listen to exit events right after.
* media/video-test.js: Updated waitForEvent to enable listening for
events on other elements as well.
(waitForEvent._eventCallback):
(waitForEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rebaseline some SVG Snow Leopard results
https://bugs.webkit.org/show_bug.cgi?id=85637

Reviewed by Nikolas Zimmermann.

Remove batik expected pngs for Snow Leopard since the generic mac ones match.
Fix types-dom-01-b-expected.txt to expect RenderSVGEllipse.

* platform/mac-snowleopard/svg/W3C-SVG-1.1-SE/types-dom-01-b-expected.txt:
* platform/mac-snowleopard/svg/batik/filters/feTile-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/filters/filterRegions-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/masking/maskRegions-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/paints/gradientLimit-expected.png:
* platform/mac-snowleopard/svg/batik/paints/patternPreserveAspectRatioA-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/paints/patternRegionA-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/paints/patternRegions-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/paints/patternRegions-positioned-objects-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/longTextOnPath-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/smallFonts-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textAnchor-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textAnchor2-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textAnchor3-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textDecoration-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textDecoration2-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textEffect-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textEffect2-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textEffect3-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textFeatures-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textGlyphOrientationHorizontal-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textLayout-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textLayout2-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textLength-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textOnPath-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textOnPath2-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textOnPath3-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textOnPathSpaces-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textPCDATA-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textPosition-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textPosition2-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textProperties-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textProperties2-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/textStyles-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/verticalText-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/verticalTextOnPath-expected.png: Removed.
* platform/mac-snowleopard/svg/batik/text/xmlSpace-expected.png: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Suppress more Chromium Mac SL timeouts ...
https://bugs.webkit.org/show_bug.cgi?id=83076

Unreviewed, expectations change.

* platform/chromium/test_expectations.txt:

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