Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #2556 - glennw:remove-text-shadow3, r=Gankro
Unify text-shadows with the blur filter. This removes any special code for text shadows. A text shadow is now simply a Picture with text runs and/or line decorations that has a blur filter applied to it. This is possible due to the recent work related to removing the line decoration and cached text run primitives. This greatly simplifies the shadow code, and a lot of the functionality of the text shadows (e.g. fast path shadows) just fall out of the existing Picture functionality for blur filters. Next step is to expand the primitive types that can run through the shadow paths, which will then allow us to unify the drop-shadow filter to be a simple shadow + blur filter. NOTE: The PictureKind enum now has only a single kind (Image). I could have removed that in this PR, and added the fields to Picture directly. However, that will result in a lot of indentation changes. So I'll do that as a follow up PR to make this one easier to review. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2556) <!-- Reviewable:end -->
- Loading branch information