Commit Graph

97 Commits

Author SHA1 Message Date
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
cku
60798112c4 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 : ec5aa4a05578a53a9961b86c8804ba53f810c4c4
2016-12-19 22:33:36 +08:00
cku
33bfa082b6 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 : 931852196d34f110a098ad5529972984dc8af317
2016-12-19 18:07:39 +08:00
cku
a3e3912bbb 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 : 1b42b1435b8ff8515d8919b6789d479a2467f749
2016-12-15 22:20:33 +08:00
cku
baf48e8a2b Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N

--HG--
extra : rebase_source : b8e0c64cf251f09139cbd12c5e391daf4d0c949c
2016-11-04 15:33:38 +08:00
Iris Hsiao
e566e8864d Backed out changeset b3eaebda3d9d (bug 1318266) 2016-12-19 16:17:22 +08:00
Iris Hsiao
904ee878ab Backed out changeset 9e9d4b22a77f (bug 1318266) for developer's request 2016-12-19 16:17:18 +08:00
cku
6717cd9c10 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 : 0d9280e1affb12db1fcd77b202376acd0c6920f9
2016-12-15 22:20:33 +08:00
cku
5ba953493d Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N

--HG--
extra : rebase_source : 82443b6ac28d1afe93c376485368edbd141fa1d4
2016-11-04 15:33:38 +08:00
Robert Longson
1bae76206e Bug 1239100 - Implement SVGGeometryElement interface. r=cam r=peterv
--HG--
rename : dom/svg/nsSVGPathGeometryElement.cpp => dom/svg/SVGGeometryElement.cpp
rename : dom/svg/nsSVGPathGeometryElement.h => dom/svg/SVGGeometryElement.h
rename : dom/svg/nsSVGPolyElement.cpp => dom/svg/SVGPolyElement.cpp
rename : dom/svg/nsSVGPolyElement.h => dom/svg/SVGPolyElement.h
rename : layout/svg/nsSVGPathGeometryFrame.cpp => layout/svg/SVGGeometryFrame.cpp
rename : layout/svg/nsSVGPathGeometryFrame.h => layout/svg/SVGGeometryFrame.h
2016-12-18 11:11:47 +00:00
Sebastian Hengst
cdeb642a1b Backed out changeset 0b44e8715bf5 (bug 1239100) for build bustage (SVGGeometryElement.webidl missing). r=backout
--HG--
rename : dom/svg/SVGGeometryElement.cpp => dom/svg/nsSVGPathGeometryElement.cpp
rename : dom/svg/SVGGeometryElement.h => dom/svg/nsSVGPathGeometryElement.h
rename : dom/svg/SVGPolyElement.cpp => dom/svg/nsSVGPolyElement.cpp
rename : dom/svg/SVGPolyElement.h => dom/svg/nsSVGPolyElement.h
rename : layout/svg/SVGGeometryFrame.cpp => layout/svg/nsSVGPathGeometryFrame.cpp
rename : layout/svg/SVGGeometryFrame.h => layout/svg/nsSVGPathGeometryFrame.h
2016-12-18 11:42:51 +01:00
Robert Longson
783bfbb1e4 Bug 1239100 - Implement SVGGeometryElement interface. r=cam r=peterv
--HG--
rename : dom/svg/nsSVGPathGeometryElement.cpp => dom/svg/SVGGeometryElement.cpp
rename : dom/svg/nsSVGPathGeometryElement.h => dom/svg/SVGGeometryElement.h
rename : dom/svg/nsSVGPolyElement.cpp => dom/svg/SVGPolyElement.cpp
rename : dom/svg/nsSVGPolyElement.h => dom/svg/SVGPolyElement.h
rename : layout/svg/nsSVGPathGeometryFrame.cpp => layout/svg/SVGGeometryFrame.cpp
rename : layout/svg/nsSVGPathGeometryFrame.h => layout/svg/SVGGeometryFrame.h
2016-12-18 09:54:02 +00:00
Ryan VanderMeulen
f31546de18 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
ae624d4fc9 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
cku
bbb9cdf946 Bug 1313276 - Part 2. Add comment for bug 1323912. r=mstange
MozReview-Commit-ID: CetQxWIr1sq

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

--HG--
extra : rebase_source : 7ef14c85f8a93a952ac8d8a9bb2652b97b489dfd
2016-12-16 10:56:07 +08:00
cku
c56a44a456 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 : b8247ca3b15aa483f73be38b55b77c3bfd6478e5
2016-12-15 22:20:33 +08:00
cku
7cb6b79be7 Bug 1318266 - Part 1. Paint trivial clip-path onto mask layer. r=mstange
MozReview-Commit-ID: G2ghy7qGf5N

--HG--
extra : rebase_source : 064baa7d4815b7ddbccdc4c625156ec485418bb2
2016-11-04 15:33:38 +08:00
cku
e50551a66d Bug 1323157 - Rename HasNoFilterOrHasValidFilter as HasNoOrValidFilter. r=longsonr+218550
MozReview-Commit-ID: GQzPf9Qy8LJ

--HG--
extra : rebase_source : d03d5609a8ed2eddaf596a019775a35bfd7d2f24
2016-12-13 19:40:27 +08:00
Botond Ballo
6579cf5fe9 Bug 1321412 - If the animated content is already fully rendered, enable async animation regardless of size. r=mattwoodrow
MozReview-Commit-ID: OePAkUqp2Q

--HG--
extra : rebase_source : af5869826b827c1482e97c97a4204597f2c95f47
2016-12-08 19:44:19 -05:00
Botond Ballo
2e3caa982c Bug 1321412 - Add support for partial prerendering to ShouldPrerenderTransformedContent(). r=mattwoodrow
This is behind a pref and not enabled by default yet.

MozReview-Commit-ID: HKbP02PkdI9

--HG--
extra : rebase_source : 3f724f12d467dfb6e3ac1c44841e8e452a7d4b7e
2016-12-14 14:31:20 -05:00
Botond Ballo
d806f521fb Bug 1321412 - Allow controlling the size of the prerendered area via prefs. r=birtles,flod,mattwoodrow
Note that the default values of the prefs are chosen so as to preserve
existing behaviour.

The patch also updates a user-visible warning message, which was
already out of date as of bug 1274991.

MozReview-Commit-ID: AqBBoIucShT

--HG--
extra : rebase_source : 010aa55255d49e4875cb6870f309649a9ca762d5
2016-12-09 20:23:42 -05:00