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

118 Коммитов

Автор SHA1 Сообщение Дата
cku 06b5fc97f9 Bug 1329091 - Keep mask style value to determine whether cached mask layer is corrupt. r=mstange
MozReview-Commit-ID: J2CFFi5pN7H

--HG--
extra : rebase_source : 44f6568e986bee87582558791d29dd7c0d63b29b
2017-01-06 17:53:30 +08:00
Ting-Yu Lin 78cc3f541d Bug 1320014 Part 12 - Convert NS_SIDE_IS_VERTICAL to a constexpr function. r=mats
MozReview-Commit-ID: GFdigJKppuR

--HG--
extra : rebase_source : d3a66d22d99d2988d5c3c44bc1da51e30efa8d1a
2017-01-05 16:07:02 +08:00
Ting-Yu Lin 797609894a Bug 1320014 Part 7 - Convert half corner indices #define to an enum. r=mats
MozReview-Commit-ID: 8lNtjV14WTN

--HG--
extra : rebase_source : dbfa992a2ee3cab2f639fb5a68463a673410ade6
2017-01-05 11:31:38 +08:00
Ting-Yu Lin 2dada2d6e0 Bug 1320014 Part 6 - Remove #define NS_CORNER_[TOP_LEFT/TOP_RIGHT/BOTTOM_RIGHT/BOTTOM_LEFT] r=mats
MozReview-Commit-ID: ERAwdxKZPf7

--HG--
extra : rebase_source : 53eb8d15ecd0d9d8fd0c7b88872b210b54104725
2017-01-04 18:15:30 +08:00
Ting-Yu Lin 5c9728b639 Bug 1320014 Part 5 - Remove NS_FOR_CSS_CORNERS. r=mats
Remove NS_FOR_CSS_FULL_CORNERS implementation, and rename NS_FOR_CSS_CORNERS
to NS_FOR_CSS_FULL_CORNERS.

MozReview-Commit-ID: 2kmPUZDz3bj

--HG--
extra : rebase_source : a8374d10c9f398b0593d7338be210a1fde25bdc4
2017-01-04 17:52:43 +08:00
Ting-Yu Lin 7577c40539 Bug 1320014 Part 3 - Move Corner from namespace mozilla::css into mozilla. r=mats
For those cpp files, it's sufficient to use Corner to refer to
mozilla::Corner.

MozReview-Commit-ID: JmDEJ3gGm8K

--HG--
extra : rebase_source : 79d7fc74fdb827894dd9ea17d6bb382eb75e81e8
2017-01-04 17:18:49 +08:00
cku 8ed218233f Bug 1323912 - Part 5. Apply opacity in mask layer painting path. r=mstange
MozReview-Commit-ID: HX2Tcum2smO

--HG--
extra : rebase_source : 2c2f96aa28e21f79b5fafe12fac8daa3fe89eb21
2017-01-03 17:12:32 +08:00
cku 848df830c7 Bug 1323912 - Part 3. Pass opacity in gradient-mask painting path. r=mstange
MozReview-Commit-ID: E2RdOHGoia8

--HG--
extra : rebase_source : 388539f52a5f64bee0360ae67ec3891e2567d669
2017-01-04 01:05:05 +08:00
cku 09c56e6da6 Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.

MozReview-Commit-ID: EMkLnG3YXA1

--HG--
extra : rebase_source : b0a0aad1fec0c2765e96d23ed9b627345c793795
2017-01-03 13:53:22 +08:00
cku 7ffd5790e1 Bug 1323912 - Part 1. Rename PaintBackground to PaintStyleImageLayer. r=mstange
MozReview-Commit-ID: GWuII34t0j7

--HG--
extra : rebase_source : 4b08672f76c57562b9ab46d6605611d99aa64cf0
2017-01-03 11:57:13 +08:00
Phil Ringnalda d105fd40fd Merge m-c to autoland 2017-01-04 19:01:49 -08:00
Iris Hsiao 53e5ead7ef Backed out changeset a44640701558 (bug 1323912) 2017-01-04 21:47:16 -05:00
Iris Hsiao c8e876e89c Backed out changeset c868ab532766 (bug 1323912) 2017-01-04 21:47:12 -05:00
Iris Hsiao f3fabb8956 Backed out changeset 71c136b30a4d (bug 1323912) 2017-01-04 21:47:08 -05:00
Iris Hsiao d569188dd7 Backed out changeset b3ad53915c5e (bug 1323912) 2017-01-04 21:47:01 -05:00
Mats Palmgren 51a67d7f24 Bug 1328095 - [writing-mode] Make JoinBoxesForVerticalSlice use logical coordinates (and rename it JoinBoxesForBlockAxisSlice accordingly). r=jfkthame 2017-01-04 21:35:19 +01:00
cku 8c03e0e5d4 Bug 1323912 - Part 5. Apply opacity in mask layer painting path. r=mstange
MozReview-Commit-ID: HX2Tcum2smO

--HG--
extra : rebase_source : 8a28c67b898efbea304d71709c0fd13e25632032
2017-01-03 17:12:32 +08:00
cku c834e9f24d Bug 1323912 - Part 3. Pass opacity in gradient-mask painting path. r=mstange
MozReview-Commit-ID: E2RdOHGoia8

--HG--
extra : rebase_source : 5242b694dc33121fc10fa1933a8168f0aa444723
2017-01-04 01:05:05 +08:00
cku adab9bea9f Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.

MozReview-Commit-ID: EMkLnG3YXA1

--HG--
extra : rebase_source : 080a843b34cc1ca27831310d474243b4066f59f2
2017-01-03 13:53:22 +08:00
cku e36c492419 Bug 1323912 - Part 1. Rename PaintBackground to PaintStyleImageLayer. r=mstange
MozReview-Commit-ID: GWuII34t0j7

--HG--
extra : rebase_source : f74e9d242e2ef505790575cd12e0a58cc07ec44f
2017-01-03 11:57:13 +08:00
Xidorn Quan 97d13f46a3 Bug 1303241 part 2 - Make GetVisitedDependentColor use style structs directly. r=dbaron
I think there are three advantages of this change:
1. removes some dependencies from layout / painting code to pre-computed
   value stuff in the style system;
2. makes it easier to audit usage of specific fields in style structs
   (which is probably a side effect of the first one);
3. potentially improves performance since it doesn't go through the
   unnecessary general logic in ExtractComputedValue.

Also, combined with the part before, we get a unified list for visited-
dependent properties so that we can ensure the assertion here and the
style difference calc code are consistent.

MozReview-Commit-ID: 5B9aN7CfRgI

--HG--
extra : rebase_source : ac80eaea2474b9ec4b47b1cc9a5bdd2e61f6ec4d
2016-12-31 00:57:37 +11:00
Daniel Holbert ae86e90d47 Bug 1326579: Add some needed includes in layout/painting, to preemptively fix unified bustage. r=xidorn
MozReview-Commit-ID: G8Ax9cVtOFP

--HG--
extra : rebase_source : 43e1d274e169bb8139d3ac867791aa638a2ea33f
2016-12-31 16:35:41 -08:00
Xidorn Quan c26fcf05e4 Bug 1326209 part 2 - Change background-color to use complex color. r=dholbert
MozReview-Commit-ID: 1n3TC3CVY7U

--HG--
extra : rebase_source : 6b402a2493f58d114a9898a4d556587fdc98a9ee
2016-12-30 02:03:29 +11:00
Xidorn Quan 70cf8ed908 Bug 1326209 part 1 - Make nsCSSRendering::DrawTableBorderSegment take nscolor for background color. r=dholbert
MozReview-Commit-ID: sSPtxzIf9H

--HG--
extra : rebase_source : 7d0f60f14f63ddba840037e12637ab9b56b6a6fe
2016-12-30 01:58:13 +11:00
cku e216b26686 Bug 1325550 - Rollback change and temporary disbale paint clip-path onto mask layer. r=me
MozReview-Commit-ID: IpBdekfj2iL

--HG--
extra : rebase_source : 421633d90c0db6b27f4d4029bbcec8a887c08342
2016-12-29 03:27:45 +08:00
Ethan Lin 0b1384e9e5 Bug 1322079 - Set CreateBorderLayer to pure virtual function and let nsDisplayBorder return LAYER_ACTIVE. r=mattwoodrow
MozReview-Commit-ID: 6zGq7ymIkO0
2016-12-27 11:40:40 +08:00
Phil Ringnalda b94a0cbd73 Merge m-i to m-c, a=merge 2016-12-24 16:51:17 -08:00
Wes Kocher e28b562783 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 3HW7YWDqTBQ
2016-12-23 14:40:42 -08:00
cku 9cd00cb9cb Bug 1325550 - Add default layer state value as a parameter of RequiredLayerStateForChildren. r=mstange
MozReview-Commit-ID: CXCaGjLF6kL

--HG--
extra : rebase_source : 9935eb7352c3dedcec57fce100b85e34e6166043
2016-12-23 09:08:31 +08:00
Hiroyuki Ikezoe 01f0291ee5 Bug 1311620 - Part 3: Incorporate null_t in Animatable. r=birtles
We couldn't tell the difference between a null StyleAnimationValue and
transform:none on the compositor. This was not a problem before, since we didn't
need the null StyleAnimationValue on the compositor, because the null
StyleAnimationValue have to be passed with composite:add flag, and in the case of
composite:add we just used the underlying value, i.e. we didn't use the null
value at all.
But for normal additive animations, we have to check the null StyleAnimationValue
to tell whether we are processing a missing keyframe or not.
So in this patch, Animatable can be null_t to represent the null
StyleAnimationValue, and as a result of this change, we can drop
BaseAnimationStyle.

MozReview-Commit-ID: Au41ujHgPpU

--HG--
extra : rebase_source : 71eafcf729e278d2576b9a66bb194c2a7b972f1c
2016-12-24 17:27:18 +09:00
cku df51b78be9 Bug 1313276 - Part 2. Add comment for bug 1323912. r=mstange
MozReview-Commit-ID: CetQxWIr1sq

--HG--
extra : rebase_source : c5941bdbd076197b13f2474160b67b9923048974
extra : source : d306c622c34e8290dc22212928eed6e817f0c182
2016-12-16 12:52:21 +08:00
cku bedd21d45a Bug 1313276 - Part 1. Draw clip-path-basic-shape onto mask layer. r=mstange
MozReview-Commit-ID: ICZiy84AFfi

--HG--
extra : rebase_source : 6a181c3d76d525b35bf3eae07c8f40cb9e1f2d95
extra : source : 9fe78d3eab3725c5838acf705843694c69197e05
2016-12-16 10:56:07 +08:00
Sebastian Hengst 8b13894203 Backed out changeset d539253e91ae (bug 1313276) for failing own test paint-on-maskLayer-1c.html on Android debug. r=backout 2016-12-22 20:16:20 +01:00
Sebastian Hengst dc41e31e4c Backed out changeset d90a8fc45b74 (bug 1313276) 2016-12-22 20:15:40 +01:00
cku 8abbd30968 Bug 1313276 - Part 2. Add comment for bug 1323912. r=mstange
MozReview-Commit-ID: CetQxWIr1sq

--HG--
extra : rebase_source : 64d7bde4138773f7923166db7120fe4683d357bc
extra : source : d306c622c34e8290dc22212928eed6e817f0c182
2016-12-16 12:52:21 +08:00
cku f2114f97f8 Bug 1313276 - Part 1. Draw clip-path-basic-shape onto mask layer. r=mstange
MozReview-Commit-ID: ICZiy84AFfi

--HG--
extra : rebase_source : 9862f64480946e08edaa9157f26f7e82fc8ea5a8
extra : source : 9fe78d3eab3725c5838acf705843694c69197e05
2016-12-16 10:56:07 +08:00
Timothy Nikkel 937a0a32fb Bug 1325297. Use the return value of StartDecoding to determine if an image finished decoding during painting. r=aosmond
This saves us from having to do another paint for an image that is already decoded.
2016-12-19 19:01:53 -06:00
cku 2e82af6e3a Bug 1311270 - Part 8. Add assertion for margin-box.
MozReview-Commit-ID: FEkEf3ps83k

--HG--
extra : rebase_source : b1c1deb914ba23f74953670e8e79cc0d3ba635c4
2016-11-30 15:51:05 +08:00
cku ad2eb9a55d Bug 1311270 - Part 7. Rename local variable in GetImageLayerClip and ComputeImageLayerPositioningArea.
GetImageLayerClip and ComputeImageLayerPositioningArea are used by both
background and mask layer. Rename local variables to reveal this fact.

MozReview-Commit-ID: FjScl95eWJg

--HG--
extra : rebase_source : cad013dabea9af3f5636f894f867ff913d004cce
2016-11-24 17:23:01 +08:00
cku cf0d863191 Bug 1311270 - Part 6. Handle mask-origin.
MozReview-Commit-ID: EGuK4TIy7wp

--HG--
extra : rebase_source : d9925011bd36dc82dccdb9ffb8fdcb7c085ccc33
2016-11-24 02:52:44 +08:00
cku 786cafedab Bug 1311270 - Part 5. Handle rendering of mask-clip:fill-box/stroke-box/view-box.
MozReview-Commit-ID: JhInquHEgmy

--HG--
extra : rebase_source : bfd590b7897c7b1eebda7b642afcdd0bddb3faea
2016-11-23 18:23:32 +08:00
cku 8ac56b97a3 Bug 1311270 - Part 4. Handle rendering of mask-clip:no-clip.
MozReview-Commit-ID: 42n7ywfrc3P

--HG--
extra : rebase_source : 74732dd4185f554e226c712738592448df215798
2016-11-23 02:36:04 +08:00
cku 286c728e90 Bug 1311270 - Part 3. Replace {bg|mask}-origin/{bg|mask}-clip constants by StyleGeometryBox.
MozReview-Commit-ID: DYokhDa9fFQ

--HG--
extra : rebase_source : a187c3f9519efb8b031913ce0dbf643c05232fa2
2016-11-22 15:30:01 +08:00
Ethan Lin 21706065db Bug 1303623 - Part4. Rendering changes. r=heycam
MozReview-Commit-ID: AXKoabclfz9

--HG--
extra : rebase_source : f4d9d5c7f18fdc40bd87f661b0e0a15e02a0d084
2016-10-19 15:49:57 +08:00
cku 18f92dfc31 Bug 1320032 - Early return if the size of mask surface will be empty. r=mstange
MozReview-Commit-ID: Bd0ddkyNCMr

--HG--
extra : rebase_source : 4c706e57c8c60d4beeabf7e03418aa513d897336
2016-12-17 11:06:44 +08:00
cku cf1f6e24c1 Bug 1318266 - Part 4. Update mask transform. r=mstange
Test scenario:
1. Hide menu bar
2. Press alt key to make menu bar appear.
3. Without this patch, the poistion of clip-path mask on the tab is not correct.

That is because we do not update mask transform of cached mask.
MozReview-Commit-ID: HPFYPYv7ubB

--HG--
extra : rebase_source : 6584e86a46faaadb9fccbd9fed79da2c58f65a00
2016-12-19 22:33:36 +08:00
cku 074884f649 Bug 1318266 - Part 3. Create css mask layer even if there are clips on the layer. r=mstange
MozReview-Commit-ID: 2T1GHOR4PZw

--HG--
extra : rebase_source : e7b0aa87cef8a5d0ae0d285832e099afda667ac5
2016-12-19 18:07:39 +08:00
cku a17ed4fff3 Bug 1318266 - Part 2. Remove unnecessary nsDisplayScrollInfoLayer. r=mstange
After bug 1234485 land, we may create a layer for nsDisplayMask. When we do so,
there is no need of nsDisplayScrollInfoLayer.

MozReview-Commit-ID: KmFYhGKwq92

--HG--
extra : rebase_source : 413628762e2f2c9a951d5c32cd48fbebc750238e
2016-12-15 22:20:33 +08:00
cku b8109179f1 Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N

--HG--
extra : rebase_source : 3e090928ccc9ac58533162634f1269f76aba9131
2016-11-04 15:33:38 +08:00
Wes Kocher aaaaf4e40c 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