12018-05-20 Dirk Schulze <krit@webkit.org>
2
3 -webkit-clip-path wrong offset for clipPath references
4 https://bugs.webkit.org/show_bug.cgi?id=129246
5
6 Reviewed by NOBODY (OOPS!).
7
8 Compute the correct offset for reference clip-paths by reusing
9 some of the logic from basic shapes.
10 Makes reference based clip-path interoperable and follows the
11 spec.
12
13 Test: css3/masking/clip-path-reference-2.html
14
15 * rendering/RenderLayer.cpp:
16 (WebCore::computeReferenceBox):
17 (WebCore::RenderLayer::computeClipPath const):
18 (WebCore::RenderLayer::setupClipPath):
19