Граф коммитов

2677 Коммитов

Автор SHA1 Сообщение Дата
cku 5ee6e3966a 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

--HG--
extra : rebase_source : aacc88ac39551aeb5ffbb84a11580a0d2eec73cc
2016-11-24 00:08:13 +08:00
cku 6a4c5689f0 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

--HG--
extra : rebase_source : aa90599fc4955c0eb6e5d9d10c168b8643c32e03
2016-11-23 13:51:36 +08:00
Daniel Holbert 2254890482 Bug 1319428: Remove unused file svgBindings.xml. r=jwatt
(r=jwatt was granted on an earlier instance of this bug. Carrying forward.)

MozReview-Commit-ID: pix2vCqOcz
2016-11-22 13:21:35 -08:00
Ehsan Akhgari aca985efab Bug 1318805 - Move the code for the Web Painting module to layout/painting; r=mattwoodrow
This will help make it clearer that this code lives in a different
module for contributors.


--HG--
rename : layout/base/ActiveLayerTracker.cpp => layout/painting/ActiveLayerTracker.cpp
rename : layout/base/ActiveLayerTracker.h => layout/painting/ActiveLayerTracker.h
rename : layout/base/BorderCache.h => layout/painting/BorderCache.h
rename : layout/base/BorderConsts.h => layout/painting/BorderConsts.h
rename : layout/base/DashedCornerFinder.cpp => layout/painting/DashedCornerFinder.cpp
rename : layout/base/DashedCornerFinder.h => layout/painting/DashedCornerFinder.h
rename : layout/base/DisplayItemClip.cpp => layout/painting/DisplayItemClip.cpp
rename : layout/base/DisplayItemClip.h => layout/painting/DisplayItemClip.h
rename : layout/base/DisplayItemScrollClip.cpp => layout/painting/DisplayItemScrollClip.cpp
rename : layout/base/DisplayItemScrollClip.h => layout/painting/DisplayItemScrollClip.h
rename : layout/base/DisplayListClipState.cpp => layout/painting/DisplayListClipState.cpp
rename : layout/base/DisplayListClipState.h => layout/painting/DisplayListClipState.h
rename : layout/base/DottedCornerFinder.cpp => layout/painting/DottedCornerFinder.cpp
rename : layout/base/DottedCornerFinder.h => layout/painting/DottedCornerFinder.h
rename : layout/base/FrameLayerBuilder.cpp => layout/painting/FrameLayerBuilder.cpp
rename : layout/base/FrameLayerBuilder.h => layout/painting/FrameLayerBuilder.h
rename : layout/base/LayerState.h => layout/painting/LayerState.h
rename : layout/base/MaskLayerImageCache.cpp => layout/painting/MaskLayerImageCache.cpp
rename : layout/base/MaskLayerImageCache.h => layout/painting/MaskLayerImageCache.h
rename : layout/base/PaintTracker.cpp => layout/painting/PaintTracker.cpp
rename : layout/base/PaintTracker.h => layout/painting/PaintTracker.h
rename : layout/base/nsCSSRendering.cpp => layout/painting/nsCSSRendering.cpp
rename : layout/base/nsCSSRendering.h => layout/painting/nsCSSRendering.h
rename : layout/base/nsCSSRenderingBorders.cpp => layout/painting/nsCSSRenderingBorders.cpp
rename : layout/base/nsCSSRenderingBorders.h => layout/painting/nsCSSRenderingBorders.h
rename : layout/base/nsDisplayItemTypes.h => layout/painting/nsDisplayItemTypes.h
rename : layout/base/nsDisplayItemTypesList.h => layout/painting/nsDisplayItemTypesList.h
rename : layout/base/nsDisplayList.cpp => layout/painting/nsDisplayList.cpp
rename : layout/base/nsDisplayList.h => layout/painting/nsDisplayList.h
rename : layout/base/nsDisplayListInvalidation.cpp => layout/painting/nsDisplayListInvalidation.cpp
rename : layout/base/nsDisplayListInvalidation.h => layout/painting/nsDisplayListInvalidation.h
2016-11-21 20:01:15 -05:00
cku 03916132bb Bug 1314536 - Part 3. Correct comment and add a test case for it. r=mstange
At the caller side of nsSVGMaskFrame::GetMaskForMaskedFrame(nsSVGIntegrationUtils
& nsSVGUtils), we do skip masked frame painting when this function return value
other then DrawResult::SUCCESS. So there is no need to return an empty surface
anymore.

And add a test case to verify it.

MozReview-Commit-ID: DHl6krJ1ABF

--HG--
extra : rebase_source : 46d653d4e35833e3e816d252ce3f08d2d8190602
2016-11-18 22:06:51 +08:00
cku 31495768f7 Bug 1314536 - Part 2. Implement MixModeBlender to simplify nsSVGUtils::PaintFrameWithEffects. r=mstange
MozReview-Commit-ID: JBlj7nApsbT

--HG--
extra : rebase_source : 470a6759cbd1725111c66f69fb32eab1653ec52e
2016-11-16 12:16:20 +08:00
cku f1ae46cbdd 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

--HG--
extra : rebase_source : d25e8ab2bc0bc3efad78a04705c9aef40119f91f
2016-11-16 12:59:52 +08:00
Phil Ringnalda 7ab6adac90 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 5eb153c021 Bug 1314536 - Part 3. Correct comment and add a test case for it. r=mstange
At the caller side of nsSVGMaskFrame::GetMaskForMaskedFrame(nsSVGIntegrationUtils
& nsSVGUtils), we do skip masked frame painting when this function return value
other then DrawResult::SUCCESS. So there is no need to return an empty surface
anymore.

And add a test case to verify it.

MozReview-Commit-ID: DHl6krJ1ABF

--HG--
extra : rebase_source : a4e23896a84c5dd1b5df9c6e8505a2b32ee17b84
2016-11-18 22:06:51 +08:00
cku da105994e1 Bug 1314536 - Part 2. Implement MixModeBlender to simplify nsSVGUtils::PaintFrameWithEffects. r=mstange
MozReview-Commit-ID: JBlj7nApsbT

--HG--
extra : rebase_source : 4fec950a0469b92ac4bef0391a6d100497d3d24b
2016-11-16 12:16:20 +08:00
cku eee760be28 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

--HG--
extra : rebase_source : 129dc2d6abf5911ba42b459db20cfb54b83dfc0c
2016-11-16 12:59:52 +08:00
cku 67dee6966c Bug 1317636 - Part 6. Use PaintClipMask in nsSVGIntegrationUtils::PaintMask. r=mstange
MozReview-Commit-ID: 6CibljSTeNj

--HG--
extra : rebase_source : d37076092b8ead6349ec008d251909a73730db24
2016-11-16 19:04:59 +08:00
cku 64b11841c6 Bug 1317636 - Part 5. Fix identation. r=mstange
MozReview-Commit-ID: 84aJzl6LrDC

--HG--
extra : rebase_source : 10ce4c40b1346cbd7f66bc10556b7647141a44de
2016-11-17 15:15:43 +08:00
cku 2f769773d3 Bug 1317636 - Part 4. Use nsSVGUtils::DetermineMaskUsage. r=mstange
MozReview-Commit-ID: JUAof5JvU4j

--HG--
extra : rebase_source : 387567cd33837ab49f5002797bd329dda426d530
2016-11-17 15:11:34 +08:00
cku 6174d59e7e Bug 1317636 - Part 3. Implement ComposeExtraMask. r=mstange
CG is removed. By testing, D2D works fine with composing a mask by OP_IN mode.

MozReview-Commit-ID: Gs5rB6JachJ

--HG--
extra : rebase_source : 37cada77b33cd0f0265b0e1cb3e88ab8cc32e6e0
2016-11-17 12:42:14 +08:00
cku a4e8c8d584 Bug 1317636 - Part 2. Extract PaintFrameIntoMask from nsSVGClipPathFrame::PaintClipMask. r=mstange
MozReview-Commit-ID: LgrortpuwN5

--HG--
extra : rebase_source : 428c0de82eda1301f499a84e8d6f70e06a9541b2
2016-11-16 16:58:59 +08:00
cku e935229722 Bug 1317636 - Part 1. Implement nsSVGClipPathFrame::CreateClipMask and PaintClipMask. r=mstange
Simply split the code in nsSVGClipPathFrame::GetClipMask into two different
functions.

MozReview-Commit-ID: KMdVL3Wg8OC

--HG--
extra : rebase_source : 9a3e354378fe54bed26f8352450c423aa9b700b4
2016-11-17 14:50:35 +08:00
cku 92a1ecae0d Bug 1313898 - Part 2. Paint non-trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: HJUwhqsJ42M

--HG--
extra : rebase_source : 503b69a17e69b24c88830ae866c6d8aecc7baeb2
2016-11-04 14:48:11 +08:00
cku efbebcc1a8 Bug 1250490 - Part 5. Use CreateBlendTarget/BlendToTarget. r=mstange
MozReview-Commit-ID: ERSXrcOW9PQ

--HG--
extra : rebase_source : 04f18848f51612e7d84570d026607e83aebf2366
2016-11-03 12:38:36 +08:00
cku dcbcec68cf Bug 1250490 - Part 4. Bring back CreateBlendTarget/BlendToTarget. r=mstange
MozReview-Commit-ID: DMSm5d2SI3j

--HG--
extra : rebase_source : a8108cd3088a5f530bded2e20c408f3b4787d658
2016-11-03 12:17:20 +08:00
cku 626b83ae89 Bug 1250490 - Part 3. Use DetermineMaskUsage in nsSVGUtils::PaintFrameWithEffects. r=mstange
MozReview-Commit-ID: 3CxHG0oB6f9

--HG--
extra : rebase_source : e13291f0c5277c1a10723be7a4665cf40b576947
2016-11-03 11:58:15 +08:00
cku 282a24594a Bug 1250490 - Part 2. Remove DetermineMaskUsage and ComputeOpacity from nsSVGIntegrationUtils. r=mstange
MozReview-Commit-ID: 4gHW7PyMNhd

--HG--
extra : rebase_source : 68507df64232ebef68535e85cc9934833a428456
2016-11-03 11:16:46 +08:00
cku 511431abbf Bug 1250490 - Part 1. Move DetermineMaskUsage and ComputeOpacity to nsSVGUtils. r=mstange
MozReview-Commit-ID: K06trG9nuvU

--HG--
extra : rebase_source : ad7651daa0752ba6c128853de19e758694705793
2016-11-03 11:08:06 +08:00
cku 8147e6d4e1 Bug 1314001 - Part 2. Draw mask by single opaque green. r=mstange
MozReview-Commit-ID: 12S5vBGYRpb

--HG--
extra : rebase_source : ef9bfa3251610732a0a6d2becb0e07737a40ac12
2016-11-04 12:25:33 +08:00
cku bb74527cff Bug 1234485 - Part 12. Extract PaintMaskSurface from GenerateMaskSurface. r=mstange
MozReview-Commit-ID: Bg4Kt6yCtNe

--HG--
extra : rebase_source : e13ce7753bede0e9edc58f8406c60d4120fbd329
2016-11-02 15:10:46 +08:00
cku 4d9495cf77 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

--HG--
extra : rebase_source : 4a258b7332ba7a7edbffdc13c7f4b065fbe5eaa4
2016-10-19 17:31:36 +08:00
cku 999ca66251 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

--HG--
extra : rebase_source : 993ae4bbe31c2c21704813c318f5328719194930
2016-10-30 21:41:06 +08:00
cku 882c5bf086 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

--HG--
extra : rebase_source : 8a8c4da05acf5aa1cf13eb7366116944df9c8409
2016-10-19 13:38:35 +08:00
Wes Kocher 008fdd9329 Merge inbound to central, a=merge 2016-11-08 13:58:20 -08:00
cku 2fbd5c11c2 Bug 1258751 - followup: remove out-of-date comment. r=me DONTBUILD
MozReview-Commit-ID: 8M8yHsDc1Lg

--HG--
extra : rebase_source : 3f0d695e8307bb735d2026470dcec90c9887ec1a
2016-11-07 17:09:57 +08:00
Kartikaya Gupta 57f37706cc Bug 1315477 - Add a AsBasicLayerManager() function and use instead of static_casts. r=mattwoodrow
MozReview-Commit-ID: DV6XZBEXw85

--HG--
extra : rebase_source : b82f2ea2d073292c2a9514ba8a4c2d0c8397d90a
2016-11-07 11:38:45 -05:00
Mats Palmgren a6089b50fc Bug 1300369 part 9 - Add a ComputeSizeFlags param to nsFrame::ComputeSizeWithIntrinsicDimensions (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
Mats Palmgren ddb49488f0 Bug 1300369 part 8 - Move nsLayoutUtils::ComputeSizeWithIntrinsicDimensions to a nsFrame method (idempotent patch). r=dholbert 2016-11-05 02:57:06 +01:00
cku 37219ffb9a Bug 1313570 - Change the parameter of ValidateSVGFrame. r=mstange
MozReview-Commit-ID: Brym9cbGRw8

--HG--
extra : rebase_source : 27e6795ed6b00377aa07124fea41c6db9e075d1f
2016-10-28 13:04:17 +08:00
cku 708f22a29a Bug 1305253 - Part 2. Replace gfxContext::Save/Restore by gfxContext::PopClip. r=mstange
MozReview-Commit-ID: SPfZpRsBlo

--HG--
extra : rebase_source : 1d029c6ecee5c8c83c17a42b053eb80d4b89605f
2016-10-28 18:32:01 +08:00
cku 9d24e031f3 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

--HG--
extra : rebase_source : 88e89526f4b57bcbb0a1db585884d578682d118c
2016-10-28 23:56:07 +08:00
Jeremy Chen aee90be343 Bug 1286468 followup - Fix naming issues.
MozReview-Commit-ID: C2PDA4R5k5F
2016-10-24 15:01:25 +08:00
Jeremy Chen 349eabf2f7 Bug 1286468 - Rename line related functions in nsBlockFrame. r=TYLin
1. Rename these functions to agree with Mozilla coding style.
2. Use singular naming instead of plural naming since each of these functions
returns an iterator pointing to a singular line.
3. Rename line() and rline() to BeginLineFrom() and RBeginLineFrom(), which
shall improve the readability.

MozReview-Commit-ID: txZjVnv9Yb

--HG--
extra : rebase_source : b4dae99ab7bf751bd9974616f8f8e6dfe6248fc2
2016-10-22 19:41:05 +08:00
Jeremy Chen a670e3349a Bug 1286468 - Rename line related typedefs in nsBlockFrame. r=TYLin
MozReview-Commit-ID: Cz9R3D4NzMc

--HG--
extra : rebase_source : 19da1e2a58abedf61fddd9c8e314830cf81a4602
2016-10-22 19:41:04 +08:00
Phil Ringnalda 7fd865b93f Merge autoland to m-c, a=merge
MozReview-Commit-ID: 3nuTAHtJkkD
2016-10-19 18:25:54 -07:00
Mason Chang cd84eadb22 Bug 1258751: Delete the CoreGraphics backend. r=mstange 2016-10-18 23:22:44 -04:00
Markus Stange 0853911668 Bug 1307740 - Properly handle filter input tainting with CSS filters and multiple filters. r=jwatt
MozReview-Commit-ID: HwOJ8SFhkUq

--HG--
extra : rebase_source : d3c4e8568513a0bf08d308f9f88232b19442ebd2
2016-10-19 11:32:02 -04:00
cku 07f31bbe99 Bug 1299715 - Part 7. Correct clip region for mask surface. r=mstange
MozReview-Commit-ID: 1MZA9uxO9Oi

--HG--
extra : rebase_source : cb23768fb82339b4641602ac90194d009446e1d2
2016-10-07 14:46:41 +08:00
cku 0d557e384c Bug 1299715 - Part 6. Move ComputeMaskGeometry from nsSVGIntegrationUtils to nsDisplayMask. r=mstange
MozReview-Commit-ID: 4uLfaGDXGyE

--HG--
extra : rebase_source : f6a72f1067d32287e68b3cc7a84dd5a0c8384e1a
2016-10-11 13:12:00 +08:00
cku 837190aa4f Bug 1299715 - Part 5. Correct clip region for opacity surface. r=mstange
MozReview-Commit-ID: 1wiQKsHKJsg

--HG--
extra : rebase_source : 47b58288cdde10d9fae42bec33082ea90604957b
2016-10-07 12:42:35 +08:00
cku 84d4f4c4c5 Bug 1299715 - Part 4. Correct clip region for clip-path mask surface. r=mstange
MozReview-Commit-ID: IOFOyS18yRm

--HG--
extra : rebase_source : e322b19333b6b97f879ed2e668faeffc6a1cc87c
2016-10-06 14:55:55 +08:00
Sebastian Hengst 22483d098a Backed out changeset fa72646efc0a (bug 1299715) 2016-10-12 18:02:18 +02:00
Sebastian Hengst ead934e26a Backed out changeset c53086907356 (bug 1299715) 2016-10-12 18:02:18 +02:00
Sebastian Hengst f984f3a888 Backed out changeset b91db6687d19 (bug 1299715) 2016-10-12 18:02:18 +02:00
Sebastian Hengst e1301411c3 Backed out changeset 4f0b13e4444a (bug 1299715) 2016-10-12 18:02:18 +02:00