[SVGDom] Clipped clipPath support
authorFlorin Malita <fmalita@chromium.org>
Thu, 8 Dec 2016 21:04:24 +0000 (16:04 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 9 Dec 2016 16:06:25 +0000 (16:06 +0000)
commit7d529881c4dfc27782c0bced7c7e3a2788975083
treee25bd0d250fbf3c7aee8c50bcaaaeaa1c470f015
parent67702f6322b54470d11de8c66f09216db64f4274
[SVGDom] Clipped clipPath support

ClipPaths can be clipped too, e.g.:

  <clipPath id="clip1" clip-path="url(#clip2)">...</clipPath>

Since we're not really drawing clips but resolving their geometry,
asPath() needs to take composed clipping into account (and intersect as
needed).

R=reed@google.com,robertphillips@google.com,stephana@google.com

Change-Id: I25959e22fe50f72042147cfe6b416b6b9ac20cd4
Reviewed-on: https://skia-review.googlesource.com/5720
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
experimental/svg/model/SkSVGNode.cpp
experimental/svg/model/SkSVGRenderContext.cpp
experimental/svg/model/SkSVGRenderContext.h