Commit Graph

294 Commits

Author SHA1 Message Date
Wes Kocher
3c975ba005 Backed out 5 changesets (bug 1318266) for clipboard leaks a=backout
Backed out changeset a6d9ee58afd9 (bug 1318266)
Backed out changeset 47b22189955a (bug 1318266)
Backed out changeset 936cc01602c4 (bug 1318266)
Backed out changeset 95d7547ad1c3 (bug 1318266)
Backed out changeset a4c80aed15d8 (bug 1318266)
2016-12-20 11:30:26 -08:00
cku
b3e92cef27 Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N
2016-11-04 15:33:38 +08:00
Iris Hsiao
e3a6b8d415 Backed out changeset b3eaebda3d9d (bug 1318266) 2016-12-19 16:17:22 +08:00
cku
d4145b64dc Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N
2016-11-04 15:33:38 +08:00
cku
dd6d368ab7 Bug 1318418 - Eliminate one extra copy in nsSVGIntegrationUtils::PaintMask when we have both mask and clip-path. r=mstange
MozReview-Commit-ID: LlF3ZKi356S
2016-12-15 14:17:50 +08:00
Ryan VanderMeulen
c036055ed6 Backed out 2 changesets (bug 1318266) for breaking tab drawing when a LWT is applied.
Backed out changeset 00bb4e2f5a3c (bug 1318266)
Backed out changeset 55790893cab4 (bug 1318266)
2016-12-17 21:59:10 -05:00
Ryan VanderMeulen
9ab73c0352 Backed out 2 changesets (bug 1313276)
Backed out changeset e505479a60e5 (bug 1313276)
Backed out changeset efb9edd878f0 (bug 1313276)
2016-12-17 21:58:03 -05:00
Ryan VanderMeulen
af1445f044 Backed out changeset 03090e5ca9b9 (bug 1318418) 2016-12-17 21:57:26 -05:00
cku
ee9d5181fc Bug 1318418 - Eliminate one extra copy in nsSVGIntegrationUtils::PaintMask when we have both mask and clip-path. r=mstange
MozReview-Commit-ID: LlF3ZKi356S
2016-12-15 14:17:50 +08:00
cku
f74bcfefb5 Bug 1313276 - Part 2. Add comment for bug 1323912. r=mstange
MozReview-Commit-ID: CetQxWIr1sq
2016-12-16 12:52:21 +08:00
cku
a266cb8505 Bug 1313276 - Part 1. Draw clip-path-basic-shape onto mask layer. r=mstange
MozReview-Commit-ID: ICZiy84AFfi
2016-12-16 10:56:07 +08:00
cku
40f83909bd Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N
2016-11-04 15:33:38 +08:00
cku
bfd404e0c2 Bug 1323157 - Rename HasNoFilterOrHasValidFilter as HasNoOrValidFilter. r=longsonr+218550
MozReview-Commit-ID: GQzPf9Qy8LJ
2016-12-13 19:40:27 +08:00
cku
7b6575cf4d Bug 1322330 - Part 2. Implement EffectProperties::HasInvalidClipPath. r=longsonr+218550
MozReview-Commit-ID: F3m4UZ0ET9x
2016-12-06 21:28:47 -10:00
cku
a95dfdb52d Bug 1320364 - Correct NS_ASSERTION failure condition in GetPreEffectsVisualOverflowRect. r=heycam
MozReview-Commit-ID: 4675cFLehK4
2016-11-28 16:26:34 +08:00
cku
fee606b297 Bug 1319667 - (follow-up) Remove incorrect assertion. r=me
If the size of mask is empty, we wil hit this assertion, which is wrong.

MozReview-Commit-ID: LgulkGPsjyH
2016-12-01 17:13:18 +08:00
cku
37bcfa046c Bug 1319667 - Part 2. Move DrawResult from function parameter of PaintClipMask to the return value. r=mstange
Enlight by "Bug 1314536 - Part 1"

MozReview-Commit-ID: Iogdh7LWsWa
2016-11-24 00:08:13 +08:00
cku
444d9f810f Bug 1319667 - Part 1. Allow mask longhands apply to SVG elements. r=mstange
Originally, we use the follwoing statement to determine whether generate mask
for an SVG element:
aUsage.shouldGenerateMaskLayer =
  maskFrames.Length() == 1 && maskFrames[0];

maskFrames[0] is not null only if that mask resource is an SVG-mask. That means
we will not generate mask for image mask to any SVG one.

MozReview-Commit-ID: 4QiifC6J0UR
2016-11-23 13:51:36 +08:00
cku
047250c6be Bug 1314536 - Part 1. Implement/use nsSVGMaskFrame::MaskParams and add a test case for nested mask-mode usage in SVG mask. r=mstange
MozReview-Commit-ID: SkU6F5fJ9b
2016-11-16 12:59:52 +08:00
Phil Ringnalda
3dd4ea0f5b Backed out 3 changesets (bug 1314536) for Android "'Pair' does not name a type" build bustage
Backed out changeset 16632b726b19 (bug 1314536)
Backed out changeset 2effc920decf (bug 1314536)
Backed out changeset b0aa89236bb2 (bug 1314536)
2016-11-18 18:48:49 -08:00
cku
7b54d251fd Bug 1314536 - Part 1. Implement/use nsSVGMaskFrame::MaskParams and add a test case for nested mask-mode usage in SVG mask. r=mstange
MozReview-Commit-ID: SkU6F5fJ9b
2016-11-16 12:59:52 +08:00
cku
ebb1662579 Bug 1317636 - Part 6. Use PaintClipMask in nsSVGIntegrationUtils::PaintMask. r=mstange
MozReview-Commit-ID: 6CibljSTeNj
2016-11-16 19:04:59 +08:00
cku
1ea7465e78 Bug 1313898 - Part 2. Paint non-trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: HJUwhqsJ42M
2016-11-04 14:48:11 +08:00
cku
5e971c6bca Bug 1250490 - Part 2. Remove DetermineMaskUsage and ComputeOpacity from nsSVGIntegrationUtils. r=mstange
MozReview-Commit-ID: 4gHW7PyMNhd
2016-11-03 11:16:46 +08:00
cku
a3b7658300 Bug 1314001 - Part 2. Draw mask by single opaque green. r=mstange
MozReview-Commit-ID: 12S5vBGYRpb
2016-11-04 12:25:33 +08:00
cku
9e1bf14967 Bug 1234485 - Part 12. Extract PaintMaskSurface from GenerateMaskSurface. r=mstange
MozReview-Commit-ID: Bg4Kt6yCtNe
2016-11-02 15:10:46 +08:00
cku
5207aa9bca Bug 1234485 - Part 3. Implement nsSVGIntegrationUtils::PaintMask. r=mstange
Unlike nsSVGIntegrationUtils::PaintMaskAndClipPath, which paints masked content
onto aParam.ctx, nsSVGIntegrationUtils::PaintMask paints only mask, no content,
onto aParams.ctx.

MozReview-Commit-ID: BaRbtHpoHzj
2016-10-19 17:31:36 +08:00
cku
748698fd13 Bug 1234485 - Part 2. Implement nsSVGIntegrationUtils::IsMaskResourceReady. r=mstange
We need this new function to determine whether paint mask onto mask layer.
MozReview-Commit-ID: IeEamPi9S8v
2016-10-30 21:41:06 +08:00
cku
145a719569 Bug 1234485 - Part 1. Extract DetermineMaskUsage from PaintMaskAndClipPath. r=mstange
Two reasons that we should do this:
1. Make PaintMaskAndClipPath even simpler.
2. We need this new function to determine LayerState of a nsDisplayMask later.

MozReview-Commit-ID: 2ga0VFOs6u3
2016-10-19 13:38:35 +08:00
Wes Kocher
1aa5b280a6 Merge inbound to central, a=merge 2016-11-08 13:58:20 -08:00
cku
db609b1ee1 Bug 1258751 - followup: remove out-of-date comment. r=me DONTBUILD
MozReview-Commit-ID: 8M8yHsDc1Lg
2016-11-07 17:09:57 +08:00
Kartikaya Gupta
37638cacbd Bug 1315477 - Add a AsBasicLayerManager() function and use instead of static_casts. r=mattwoodrow
MozReview-Commit-ID: DV6XZBEXw85
2016-11-07 11:38:45 -05:00
cku
fbb35f4d9f Bug 1313570 - Change the parameter of ValidateSVGFrame. r=mstange
MozReview-Commit-ID: Brym9cbGRw8
2016-10-28 13:04:17 +08:00
cku
e39fbbc8cf Bug 1305253 - Part 2. Replace gfxContext::Save/Restore by gfxContext::PopClip. r=mstange
MozReview-Commit-ID: SPfZpRsBlo
2016-10-28 18:32:01 +08:00
cku
28ba1f5487 Bug 1305253 - Part 1. Use nsCSSClipPathInstance::ApplyBasicShapeClip when clip-path type is basic-shape or geometry-box. r=mstange
Before this patch, shouldApplyBasicShape will be set as true when the url of a
clip-path is not resolvable, for example:
  clip-path: url("#non-exist-id");

So we call nsCSSClipPathInstance::ApplyBasicShapeClip and early return even if
the clip-path's type is StyleShapeSourceType::URL. This patch aims to correct
this wrong behavior: nsCSSClipPathInstance::ApplyBasicShapeClip shoud be used
only when the type of clip-path is StyleShapeSourceType::Shape or
StyleShapeSourceType::Box.

MozReview-Commit-ID: 1ON4dEY9pva
2016-10-28 23:56:07 +08:00
Mason Chang
f88b60fb0f Bug 1258751: Delete the CoreGraphics backend. r=mstange 2016-10-18 23:22:44 -04:00
cku
ad174aba27 Bug 1299715 - Part 7. Correct clip region for mask surface. r=mstange
MozReview-Commit-ID: 1MZA9uxO9Oi
2016-10-07 14:46:41 +08:00
cku
0b07780bb6 Bug 1299715 - Part 6. Move ComputeMaskGeometry from nsSVGIntegrationUtils to nsDisplayMask. r=mstange
MozReview-Commit-ID: 4uLfaGDXGyE
2016-10-11 13:12:00 +08:00
cku
8854be9578 Bug 1299715 - Part 5. Correct clip region for opacity surface. r=mstange
MozReview-Commit-ID: 1wiQKsHKJsg
2016-10-07 12:42:35 +08:00
cku
4376675aec Bug 1299715 - Part 4. Correct clip region for clip-path mask surface. r=mstange
MozReview-Commit-ID: IOFOyS18yRm
2016-10-06 14:55:55 +08:00
Sebastian Hengst
c15d73e3ba Backed out changeset fa72646efc0a (bug 1299715) 2016-10-12 18:02:18 +02:00
Sebastian Hengst
46750edbf2 Backed out changeset c53086907356 (bug 1299715) 2016-10-12 18:02:18 +02:00
Sebastian Hengst
a54a7280b3 Backed out changeset b91db6687d19 (bug 1299715) 2016-10-12 18:02:18 +02:00
Sebastian Hengst
13451b401d Backed out changeset 4f0b13e4444a (bug 1299715) 2016-10-12 18:02:18 +02:00
cku
68e1989a93 Bug 1299715 - Part 7. Correct clip region for mask surface. r=mstange
MozReview-Commit-ID: 1MZA9uxO9Oi
2016-10-07 14:46:41 +08:00
cku
09a645ffa7 Bug 1299715 - Part 6. Move ComputeMaskGeometry from nsSVGIntegrationUtils to nsDisplayMask. r=mstange
MozReview-Commit-ID: 4uLfaGDXGyE
2016-10-11 13:12:00 +08:00
cku
226e135193 Bug 1299715 - Part 5. Correct clip region for opacity surface. r=mstange
MozReview-Commit-ID: 1wiQKsHKJsg
2016-10-07 12:42:35 +08:00
cku
23b5e575b1 Bug 1299715 - Part 4. Correct clip region for clip-path mask surface. r=mstange
MozReview-Commit-ID: IOFOyS18yRm
2016-10-06 14:55:55 +08:00
Markus Stange
99c6271650 Bug 1305259 - Use PushGroupAndCopyBackground for the masked group so that we can have subpixel AA inside the mask / clip-path. r=cjku, r=Bas
MozReview-Commit-ID: 3J9ncPn9sij
2016-09-30 21:22:30 -04:00
cku
238b4ec29d Bug 1279409 - Part 1. Remove mix-blend-mode handling code in nsSVGIntegrationUtils.
MozReview-Commit-ID: DRxYU80ClwU
2016-09-29 11:07:51 +08:00