gecko-dev/layout
Kartikaya Gupta 78dba184db Bug 1461313 - Handle invalid clip-path URIs with WebRender. r=mstange
In the case of an invalid clip-path, the browser is supposed to discard the
mask entirely. In the non-webrender codepath this would happen
implicitly because the computed MaskUsage would have no flags set, and
so no actions would be taken on the gfxContext which contained the
display items rasterized so far. In the WebRender codepath, though, we
invoke the code on a A8 drawtarget that's zero-filled, so if PaintMask
fails to rasterize anything into it, it gets treated as a "mask everything
out" mask. Instead, this patch makes it so that we detect the scenario
where the computed MaskUsage is a no-op, and ensure that we don't apply
the mask in that case.

An alternative approach considered was to initialize the A8 drawtarget to
white instead of black but in cases where there is an actual mask, the
rest of the code assumes it is zero-filled and so that doesn't work.

MozReview-Commit-ID: Hw7nCiUXVJl

--HG--
extra : rebase_source : 241d550fa0ed1b3bd088c73d9565b166acbcece8
2018-07-05 08:05:34 -04:00
..
base Bug 1473376: Ensure hit test regions never grow excessively complex. r=kats 2018-07-04 18:52:10 +00:00
build Bug 1268889 - Implement Clear-Site-Data header - part 1, r=mayhemer 2018-06-20 11:57:49 -04:00
doc Bug 1407059 - GECKO_DISPLAY_REFLOW_PROCESSES=a/p/c enables reflow logging in chosen processes - r=dbaron 2018-05-08 12:42:16 +10:00
forms Bug 1467209 - Implement contain:size for HTMLButtonControlFrame. r=dholbert 2018-06-29 10:27:55 -07:00
generic Bug 1473651: Track animated image status for generated content and content: url(). r=tnikkel 2018-07-06 10:22:09 +00:00
inspector Bug 1472065 - Initialize mSheet and mParentRule in css::Rule's constructor. r=xidorn 2018-06-29 12:56:09 +10:00
ipc Bug 1467867 - Ensure we populate the event regions overrides properly. r=botond 2018-06-08 21:16:43 +00:00
mathml Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
media
painting Bug 1461313 - Handle invalid clip-path URIs with WebRender. r=mstange 2018-07-05 08:05:34 -04:00
printing Bug 1470930: Use enums for passing arguments for event dispatch. r=smaug 2018-06-26 18:22:06 +02:00
reftests Bug 1474093: Annotate reftest contain-size-inline-flex-001.html as slightly fuzzy on Windows WebRender. (test-manifest-only) 2018-07-07 09:32:54 -07:00
style Bug 1473856 - MediaQueryList could use ProbablyShortLivingWrapper + LastRelease, r=bz 2018-07-07 03:08:35 +03:00
svg Bug 1461313 - Handle invalid clip-path URIs with WebRender. r=mstange 2018-07-05 08:05:34 -04:00
tables Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj 2018-06-17 22:43:11 -07:00
tools Backed out changeset 9c75cab2e322 (bug 733530) for breaking artifact builds 2018-07-04 14:50:22 +03:00
xul Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-04 01:01:25 +03:00
moz.build