Unskip two canvas tests that only fail on Lion

Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-06-19

* platform/mac/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<rdar://problem/14197983> Rename functions from Bug 117667 and add safeguards for !ENABLE(VIDEO) platforms (117765)
https://bugs.webkit.org/show_bug.cgi?id=117765

Patch by Ruth Fong <ruth_fong@apple.com>.
Reviewed by Brady Eidson.

* WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
(WKBundleHitTestResultGetMediaType): Updated to use mediaType().

* WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
(WebKit::InjectedBundleHitTestResult::mediaType): Updated.
Renamed getMediaType() to mediaType() and now handles !ENABLE(VIDEO) platforms.

* WebProcess/InjectedBundle/InjectedBundleHitTestResult.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Incomplete repaint of input elements in writing-mode overflow
https://bugs.webkit.org/show_bug.cgi?id=110246

Patch by Yuki Sekiguchi <yuki.sekiguchi@access-company.com> on 2013-06-19
Reviewed by Simon Fraser.

Source/WebCore:

We calculate repaint rect using unflipped rect.
However, RenderBox::applyCachedClipAndScrollOffsetForRepaint() which is called from repaint rect calculation
wants that its argument rect is flipped.
The reason is:
- paintRect.move(-scrolledContentOffset()); cannot scroll if the rect is unflipped.
- It cannot clip using intersect.
Passing unflipped rect to applyCachedClipAndScrollOffsetForRepaint() cause invalid clipping.
Therefore, this patch flipped the rect at the first part of the function and unflipped it at the last part of the function.

Scroll bar rect is absolute rect, so it is flipped rect.
RenderLayer::invalidateScrollbarRect() pass the rect to repaintRectangle() which expects an argument rect is unflipped.
This cause part of overlapping scroll bar doesn't fade out.
Therefore, this patch flipped the rect and pass it to repaintRectangle().

Tests: fast/repaint/horizontal-bt-overflow-child.html
       fast/repaint/horizontal-bt-overflow-parent.html
       fast/repaint/horizontal-bt-overflow-same.html
       fast/repaint/vertical-overflow-child.html
       fast/repaint/vertical-overflow-parent.html
       fast/repaint/vertical-overflow-same.html

* rendering/RenderBox.cpp:
(WebCore::RenderBox::applyCachedClipAndScrollOffsetForRepaint):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::invalidateScrollbarRect):

LayoutTests:

* fast/repaint/horizontal-bt-overflow-child-expected.txt: Added.
* fast/repaint/horizontal-bt-overflow-child.html: Added.
* fast/repaint/horizontal-bt-overflow-parent-expected.txt: Added.
* fast/repaint/horizontal-bt-overflow-parent.html: Added.
* fast/repaint/horizontal-bt-overflow-same-expected.txt: Added.
* fast/repaint/horizontal-bt-overflow-same.html: Added.
* fast/repaint/vertical-overflow-child-expected.txt: Added.
* fast/repaint/vertical-overflow-child.html: Added.
* fast/repaint/vertical-overflow-parent-expected.txt: Added.
* fast/repaint/vertical-overflow-parent.html: Added.
* fast/repaint/vertical-overflow-same-expected.txt: Added.
* fast/repaint/vertical-overflow-same.html: Added.

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