Commit Graph

278 Commits

Author SHA1 Message Date
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
cku
3ca07e7125 Bug 1305636 - Part 2. Only apply opacity once in nsSVGUtils::PaintFrameWithEffects and nsSVGIntegrationUtils::PaintMaskAndClipPath. r=mstange.
MozReview-Commit-ID: 3eMlxEhNdCQ
2016-09-28 02:46:47 +08:00
cku
4975623013 Bug 1305636 - Part 1. Revert the first patch in bug 1304991. r=me
MozReview-Commit-ID: 8sDINWlgPqu
2016-09-28 22:52:05 +08:00
cku
beabf08dd1 Bug 1304991 - Part 1. Remove aOpacity parameter of GenerateMaskSurface. r=mstange
MozReview-Commit-ID: D4vTSGobSMg
2016-09-26 18:35:18 +08:00
cku
c3e19fa31e Bug 1304011 - Part 7. Fix several coding convention violations. r=mstange
MozReview-Commit-ID: BYhiQnlfR3a
2016-09-18 23:16:35 +08:00
cku
13c2673eb0 Bug 1304011 - Part 6. Handle nullptr returning from nsSVGClipPathFrame::GetClipMask. r=mstange
MozReview-Commit-ID: 2FBDE9fx1LT
2016-09-22 16:29:03 +08:00
cku
99e8c5db62 Bug 1304011 - Part 4. For css-mask, compute frame offset by the current frame. r=mstange
MozReview-Commit-ID: K6ZUoiA9jrC
2016-09-22 13:38:55 +08:00
cku
58804f98fd Bug 1304011 - Part 3. Add clip function in SetupContextMatrix, and give a frame to this function as the source of offset computing. r=mstange
MozReview-Commit-ID: 2ry6c1cECvb
2016-09-21 16:49:27 +08:00
cku
b483ed236e Bug 1304011 - Part 2. typedef nsSVGIntegrationUtils::PaintFramesParams to shorten code length. r=mstange
MozReview-Commit-ID: Iw7Khv8ee0r
2016-09-22 11:12:54 +08:00
Ethan Lin
2b6279c01f Bug 1275478 - Fix svg mask with D2D1 backend. r=mstange 2016-09-08 02:28:00 -04:00
cku
59e59aa41c Bug 1300401 - Part 2. Add more comments and assertions. r=mstange
MozReview-Commit-ID: HywA9IrGhk2
2016-09-05 12:46:56 +08:00
cku
b96e10be7f Bug 1300401 - Part 1. Handle opacity in nsDisplayFilter. r=mstange
MozReview-Commit-ID: D4JXkDm64fN
2016-09-05 11:47:18 +08:00
cku
862774e1e9 Bug 1295094 - Part 14. Skip any filter effect while generating glyph mask for bg-clip:text. r=jfkthame
MozReview-Commit-ID: CTzu7uhAaQM
2016-09-01 14:54:11 +08:00
cku
d02a0fab15 Bug 1295094 - Part 10. nsDisplayMask creation flow. r=mstange
MozReview-Commit-ID: Jk9B54WtThK
2016-08-16 13:56:11 +08:00
cku
f3e46e0943 Bug 1295094 - Part 8. Implement nsSVGIntegrationUtils::PaintMaskAndClipPath r=mstange
MozReview-Commit-ID: EbIUVDXuHa0
2016-08-16 01:07:57 +08:00
cku
84e8874fa2 Bug 1295094 - Part 7. Implement nsSVGIntegrationUtils::PaintFilter. r=mstange
MozReview-Commit-ID: DTcNsc2UNdu
2016-08-16 00:59:35 +08:00
cku
ac215a61ad Bug 1295094 - Part 6. Implement CreateBlendTarget and BlendToTarget. r=mstange
MozReview-Commit-ID: 3C3hlje0QEw
2016-08-16 01:28:07 +08:00