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

10 Коммитов

Автор SHA1 Сообщение Дата
Ryan Hunt c013220860 Bug 1382128 part 5 - Remove WrGradientStop and WrGradientExtendMode. r=kats
MozReview-Commit-ID: 47Rb5jUpCFX

--HG--
extra : rebase_source : 6b4d3e6193b08bc978751921d12a0bb37a60c927
2017-07-19 01:47:07 -04:00
Ryan Hunt 3f3cb0a954 Bug 1382128 part 1 - Use a namespace in webrender_bindings. r=kats
MozReview-Commit-ID: 3JTMa9Ix5S7

--HG--
extra : rebase_source : 0bea14d9e395cab260d2db5135b1f64e9f82b2e2
2017-06-27 19:20:36 -04:00
Kartikaya Gupta 0ec3e2d4dd Bug 1360246 - Propagate the StackingContextHelper to the rest of the displaylist-building code. r=nical
This propagates the StackingContextHelper to the rest of the code that
builds WR display items, because we will need it in future patches to
stop using RelativeToParent.

MozReview-Commit-ID: 3PlQrJRhH36
2017-05-03 08:48:08 -04:00
Ryan Hunt 4a34413551 Bug 1355570 - Simplify nsCSSRenderingGradients r=mattwoodrow
In nsCSSRenderingGradients the logic for handling many error conditions
and normalizing the gradient stops is shared between the paint path and
the WebRender path. WebRender now normalizes gradients and handles any
error conditions that it needs to. There are some conditions that are not
problems for it, like repeating radial gradients with stops below zero.

This commit undoes the work done in bug 1341101 to share this logic. Some
conditions were moved around in bug 1341101 to make things simpler, and
that has been undone. Now the paint path is identical to how it was
originally.

There is one exception, which is ResolveMidpoints which is kept between
both code paths. This should be safe.

MozReview-Commit-ID: LMhMNXNquXM

--HG--
extra : rebase_source : 2d389f76134671b6caa44a3b7370b1c786576bdc
extra : histedit_source : caf5d3a456cbb9987970783969d0eb2a424e7eca
2017-04-11 14:30:13 -04:00
Morris Tseng 5cb5800c6b Bug 1347469 - Add support for gradient border. r=mattwoodrow
MozReview-Commit-ID: 7RfVsPFWhlo
2017-04-10 17:27:30 +08:00
Markus Stange 079ae63547 Bug 1352234 - Make nsImageRenderer.cpp and nsCSSRenderingGradients.h compile independent of build unification. r=rhunt
A few includes and namespace annotations are missing. And
nsImageRenderer.cpp is calling two functions that are static functions in
nsCSSRendering.cpp.

MozReview-Commit-ID: BLVPwpKB7On

--HG--
extra : rebase_source : d6111d093de47b88b5beba6478de4b6ed75b2a52
2017-03-30 17:50:47 -04:00
Ryan Hunt 56219a24fd Bug 1341101 part 4 - Specify a nsRenderingContext for nsCSSRendering::PaintStyleImageLayer r=mattwoodrow
MozReview-Commit-ID: 5TX6IXLSC8r

--HG--
extra : rebase_source : fef1d37208dc29f8df67388fe5c335a9c013daef
2017-03-15 00:25:09 -04:00
Ryan Hunt cfc9025674 Bug 1341101 part 3 - Support building WR gradients in nsCSSGradientRenderer r=mattwoodrow
MozReview-Commit-ID: HLSmseHj5Si

--HG--
extra : rebase_source : b8e39ba51c6ab28a2c9ed7b694e5098e50bf022c
2017-03-15 03:20:02 -04:00
Ryan Hunt 6e1c6e32b8 Bug 1341101 part 2 - Create a nsCSSGradientRenderer for collecting gradient parameters r=mattwoodrow
Refactor the existing PaintGradient method into a nsCSSGradientRenderer class. The purpose
of this is to separate the calculation of gradient parameters from the painting of the
gradients. This should help us to share code between WebRender and our existing
painting code. It does not change how we render gradients currently.

MozReview-Commit-ID: 4P8vPqK4V8g

--HG--
extra : rebase_source : 031cd8d15148153b0af23fa9ff0abbf037d028db
2017-03-15 03:14:17 -04:00
Ryan Hunt db5037c2f6 Bug 1341101 part 1 - Move nsCSSRendering::PaintGradient into its own file r=jrmuizel
MozReview-Commit-ID: 1DyZ8TpcA3m

--HG--
rename : layout/painting/nsCSSRendering.cpp => layout/painting/nsCSSRenderingGradients.cpp
extra : rebase_source : e328771c2e4c19e23e720683b983cfb22d2cf9f8
2017-03-14 01:05:41 -05:00