Unreviewed gardening. A couple of media-query tests rely on 3d transforms,
so skip them along with the 3d transforms tests.

* platform/gtk/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157125 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Mac] Unskip editing/spelling/spelling-changed-text.html
https://bugs.webkit.org/show_bug.cgi?id=122502

Unreviewed gardening.


* platform/mac/TestExpectations:
spelling-changed.html is passing after r156901.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157126 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Simplify the loop in EventRetargeter::calculateEventPath
https://bugs.webkit.org/show_bug.cgi?id=122500

Reviewed by Antti Koivisto.

Replaced the convoluted loop by two nested loops to make semantics clear.

* dom/EventRetargeter.cpp:
(WebCore::EventRetargeter::calculateEventPath):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening, these tests had a couple pixels shift at some point,
needing a new baseline.

* platform/gtk/fast/hidpi/clip-text-in-hidpi-expected.txt:
* platform/gtk/fast/hidpi/image-set-background-dynamic-expected.txt:
* platform/gtk/fast/hidpi/image-set-border-image-dynamic-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157128 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSSRegions] Regions with overflow: hidden should paint over positioned sibling
https://bugs.webkit.org/show_bug.cgi?id=122389

Reviewed by Alexandru Chiculita.

Source/WebCore:

As a follow-up from https://bugs.webkit.org/show_bug.cgi?id=122321, a region should not
be a normal flow layer when it has overflow clip. Change existing test by adding overflow:hidden
to the region element.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::shouldBeNormalFlowOnly):

LayoutTests:

Add overflow: hidden to the region to test that it does not move to the normal flow layers.

* fast/regions/layers/region-normalflow-stacking-context.html:


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

* platform/gtk/TestExpectations: fast/backgrounds/background-opaque-images-over-color.html
failing.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix ruby LoadError when running run-javascriptcore-tests.
https://bugs.webkit.org/show_bug.cgi?id=122519.

Reviewed by Mark Hahnenberg.

The scripts needed to explicitly require 'rubygems' for older versions of ruby
(versions before 1.9).

* Scripts/jsc-stress-test-helpers/profiler-test-helper:
* Scripts/run-jsc-stress-tests:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[MediaStream] Fix segfault in initializeMockSources()
https://bugs.webkit.org/show_bug.cgi?id=122517

Reviewed by Darin Adler.

Calling release() and a member function on the same RefPtr
as arguments to a function can lead to segfaults if the release
call is evaluated first.

* platform/mock/MockMediaStreamCenter.cpp:
(WebCore::initializeMockSources):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157132 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Video -> pixel buffer output should not manage color spaces
https://bugs.webkit.org/show_bug.cgi?id=122486

Reviewed by Tim Horton.

Source/WebCore:

On Mac, when we draw a video into a canvas or WebGL, the
output of the video should not be color managed. Instead, leave it
as DeviceRGB so that it matches other colors in those elements.
We'll hopefully solve this properly soon - making everything sRGB.

Test: media/video-canvas-drawing-output.html

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::createImageForTimeInRect): Pass on
a CGImageRef via CGImageCreateCopyWithColorSpace rather than the raw data.
(WebCore::MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput): Tell CoreImage
to allocate a pixel buffer that is unmanaged.

LayoutTests:

* media/video-canvas-drawing-output-expected.txt: Added.
* media/video-canvas-drawing-output.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157133 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Skip a new WebGL test along with the others.

* platform/gtk/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157134 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[MathML] Use of floating point floor/ceil on LayoutUnits seems wrong
https://bugs.webkit.org/show_bug.cgi?id=122367

Reviewed by Darin Adler.

* rendering/mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::paintCharacter): Use member methods to compute
correct floor/ceil values for LayoutUnits.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157135 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename EventDispatchMediator::dispatchEvent to mediateAndDispatchEvent
https://bugs.webkit.org/show_bug.cgi?id=122522

Reviewed by Darin Adler.

Renamed EventDispatchMediator::dispatchEvent to EventDispatchMediator::mediateAndDispatchEvent
to make the future refactoring easier.

* Modules/indieui/UIRequestEvent.cpp:
(WebCore::UIRequestEventDispatchMediator::mediateAndDispatchEvent):
* Modules/indieui/UIRequestEvent.h:
* dom/EventDispatchMediator.cpp:
(WebCore::EventDispatchMediator::mediateAndDispatchEvent):
* dom/EventDispatchMediator.h:
* dom/EventDispatcher.cpp:
(WebCore::EventDispatcher::dispatchEvent):
* dom/FocusEvent.cpp:
(WebCore::FocusEventDispatchMediator::mediateAndDispatchEvent):
(WebCore::BlurEventDispatchMediator::mediateAndDispatchEvent):
(WebCore::FocusInEventDispatchMediator::mediateAndDispatchEvent):
(WebCore::FocusOutEventDispatchMediator::mediateAndDispatchEvent):
* dom/FocusEvent.h:
* dom/GestureEvent.cpp:
(WebCore::GestureEventDispatchMediator::mediateAndDispatchEvent):
* dom/GestureEvent.h:
* dom/KeyboardEvent.cpp:
(WebCore::KeyboardEventDispatchMediator::mediateAndDispatchEvent):
* dom/KeyboardEvent.h:
* dom/MouseEvent.cpp:
(WebCore::MouseEventDispatchMediator::mediateAndDispatchEvent):
* dom/MouseEvent.h:
* dom/TouchEvent.cpp:
(WebCore::TouchEventDispatchMediator::mediateAndDispatchEvent):
* dom/TouchEvent.h:
* dom/WheelEvent.cpp:
(WebCore::WheelEventDispatchMediator::mediateAndDispatchEvent):
* dom/WheelEvent.h:


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