[SVG] Subpixel rendering: Mask with transformed text does not render.
https://bugs.webkit.org/show_bug.cgi?id=133626
<rdar://problem/17123070>

Reviewed by Simon Fraser.

Replace IntRect::infiniteRect() with Layout::infiniteRect(). A transformed IntRect::infiniteRect()
overflows and produces invalid repaint rect. -also remove IntRect::infiniteRect() as no one calls
it anymore.

Source/WebCore:
Tests: svg/masking/mask-transformed-text-missing-expected.svg
       svg/masking/mask-transformed-text-missing.svg

* platform/graphics/IntRect.h:
(WebCore::IntRect::infiniteRect): Deleted.
* rendering/svg/SVGRenderingContext.cpp:
(WebCore::SVGRenderingContext::renderSubtreeToImageBuffer):

LayoutTests:
* svg/masking/mask-transformed-text-missing-expected.svg: Added.
* svg/masking/mask-transformed-text-missing.svg: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@169689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Gaps below and to the right of the video controls on devour.com
https://bugs.webkit.org/show_bug.cgi?id=133607

Reviewed by Simon Fraser.

Non-toplevel compositing layers are device pixel aligned. In order to render the content
to the same position as if the layer was not aligned, the graphics layer needs to be translated.
CALayer::bounds is set to compensate for the shifted layer. However, we should not change the layer's
size as that stretches the content and results in overlaps/gaps/extra fuzziness.

Source/WebCore:
Test: compositing/contents-scale/hidpi-compositing-layer-positioned-on-scaled-context.html

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::updateGeometry):
(WebCore::GraphicsLayerCA::computePixelAlignment): remove old epsilon adjustment code.
* platform/graphics/ca/GraphicsLayerCA.h:

LayoutTests:
* compositing/contents-scale/hidpi-compositing-layer-positioned-on-scaled-context-expected.html: Added.
* compositing/contents-scale/hidpi-compositing-layer-positioned-on-scaled-context.html: Added.


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