Chromium Code Reviews
DescriptionUse Blink's computed filterPrimitiveSubregion() as CropRect.
For filters which affect transparent black, we were falling back to Skia's clip rect to know which pixels to fill. This works for SVG, where we set the clip rect to the filter region. However, this is not possible for CSS filters on HTML content, where there may be multiple reference filters with different filter regions, so we don't actually set a clip rect at all.
The easiest fix is to set the crop rect unconditionally for all filters with a non-empty filter primitive subregion (aka all reference filters), which is what we do here. This also gets us closer to being able to removing the individual crop edges from Skia. This has minor pixel diffs in the affected tests.
BUG=599933
Committed: https://crrev.com/0abb8cd84553174c24442b173f63110198145e81
Cr-Commit-Position: refs/heads/master@{#385031}
Patch Set 1 #Patch Set 2 : Update to ToT #Patch Set 3 : Update to ToT; simplify; add test suppressions #Patch Set 4 : Mark more tests for rebaseline #
Depends on Patchset: Messages
Total messages: 22 (12 generated)
|
|||||||||||||||||||||||||||||||||||||