Commit Graph

83 Commits

Author SHA1 Message Date
Sebastian Hengst
f3bf820bfd Backed out changeset 3d1ce85e6348 (bug 1088760) for bustage, at least on Android at layout/generic/nsPluginFrame.cpp:1612. r=backout 2017-06-13 00:30:03 +02:00
Alexis Beingessner
c75211cb95 Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
MozReview-Commit-ID: K1WUIOnvazF
2017-06-12 17:32:48 -04:00
Botond Ballo
539791ed1e Bug 1367488 - Pre-render offscreen portions of scrollbar thumbs inside an iframe. r=mstange
MozReview-Commit-ID: LCBHnFJdGtp

--HG--
extra : rebase_source : 1ab1d812674d321d76e634953284b3983774d798
2017-05-29 18:05:05 -04:00
Ethan Lin
6a1eda371b Bug 1367991 - follow-up: Fix the comment. r=me 2017-05-31 16:24:12 +08:00
Ethan Lin
8dcfe0291d Bug 1367991 - Check mask layer's draw result to make sure we will repaint it in the next transaction if the image is not ready. r=cjku 2017-05-31 14:38:25 +08:00
Jonathan Kew
a8f81efd8e Bug 1365982 - Attach frame properties to each frame instead of looking them up in a hashtable on the prescontext. r=mats
--HG--
rename : layout/base/FramePropertyTable.cpp => layout/base/FrameProperties.cpp
rename : layout/base/FramePropertyTable.h => layout/base/FrameProperties.h
2017-05-27 12:36:00 +01:00
Kartikaya Gupta
5320a75266 Merge m-c to graphics
MozReview-Commit-ID: Fq2lBUWyr0m
2017-05-19 13:19:35 -04:00
Ethan Lin
e853c9b0a6 Bug 1364830 - Fix background image layer's draw result and image flags. r=mattwoodrow 2017-05-16 10:44:49 +08:00
cku
4b27190a36 Bug 1351440 - Part 5. typedef DrawResult in nsDisplayItem to avoid the image:: qualification. r=jwatt
MozReview-Commit-ID: 1l8DUL1z6U2
2017-05-18 22:03:54 +02:00
cku
51288e6cfe Bug 1351440 - Part 3. Pass imgDrawingParams to nsSVGMaskFrame::GetMaskForMaskedFrame. r=jwatt
The reason of this change is the same as for Part 2, except this commit fixes
nsSVGMaskFrame::GetMaskForMaskedFrame rather than PaintSVG.

MozReview-Commit-ID: DS0eG6eKDgs
2017-05-18 22:03:45 +02:00
cku
d85d3ab378 Bug 1351440 - Part 2. Encapsulate DrawResult and imgIContainer::FLAG_* into imgDrawingParams, and pass it to PaintSVG. r=jwatt
The DrawResult return was not in fact anything to do with the success or
failure of that method, but was actually passing out a very specific piece of information
about the success or failure of any imagelib drawing that may not have occurred
under the various PaintSVG calls.

The signature of PaintSVG is changed from
  DrawResult PaintSVG(...., uint32 flags);
to
  void PaintSVG(...., imgDrawingParams& aPackage);

imgDrawingParams wraps DrawResult and imgIContainer::FLAG_* as a pack, pass through
PaintSVG to imagelib draw calls under beneath.

MozReview-Commit-ID: IOq2evUAOQF
2017-05-18 22:03:41 +02:00
Sebastian Hengst
41f1727bf4 Backed out changeset f3460d42d23c (bug 1351440) 2017-05-18 21:15:35 +02:00
Sebastian Hengst
635d32e534 Backed out changeset 3240cd94bf4b (bug 1351440) 2017-05-18 21:15:30 +02:00
Sebastian Hengst
68c0ba103f Backed out changeset 3ea48d348482 (bug 1351440) 2017-05-18 21:15:21 +02:00
Botond Ballo
6c0eea50b3 Bug 1349750 - Group scroll thumb-related information in Layer into a ScrollThumbData structure. r=kats
The patch also renames Layer::SetScrollbarData() to Layer::SetScrollThumbData()
for clarity.

MozReview-Commit-ID: DVwJ3DMl3Zs

--HG--
extra : rebase_source : 7b2bfccf1351c82bb16296635e69d5488c87a50f
2017-05-10 14:02:15 -04:00
cku
f8714ff527 Bug 1351440 - Part 5. typedef DrawResult in nsDisplayItem to avoid the image:: qualification. r=jwatt
MozReview-Commit-ID: 1l8DUL1z6U2

--HG--
extra : rebase_source : 67a5655b166c80e37ac2aef49683bb4a37b13518
2017-05-10 03:03:03 +08:00
cku
0fcc7571b7 Bug 1351440 - Part 3. Pass imgDrawingParams to nsSVGMaskFrame::GetMaskForMaskedFrame. r=jwatt
The reason of this change is the same as for Part 2, except this commit fixes
nsSVGMaskFrame::GetMaskForMaskedFrame rather than PaintSVG.

MozReview-Commit-ID: DS0eG6eKDgs

--HG--
extra : rebase_source : 696bf495edc98a390f49ff0638165724521460b1
extra : source : 95f38c2c8b57134504e7fbe03d1637866e3e65ba
2017-05-08 21:27:20 +08:00
cku
eaa4406688 Bug 1351440 - Part 2. Encapsulate DrawResult and imgIContainer::FLAG_* into imgDrawingParams, and pass it to PaintSVG. r=jwatt
The DrawResult return was not in fact anything to do with the success or
failure of that method, but was actually passing out a very specific piece of information
about the success or failure of any imagelib drawing that may not have occurred
under the various PaintSVG calls.

The signature of PaintSVG is changed from
  DrawResult PaintSVG(...., uint32 flags);
to
  void PaintSVG(...., imgDrawingParams& aPackage);

imgDrawingParams wraps DrawResult and imgIContainer::FLAG_* as a pack, pass through
PaintSVG to imagelib draw calls under beneath.

MozReview-Commit-ID: IOq2evUAOQF

--HG--
extra : rebase_source : 66c9a9e391c2f9e142575f42fd47b37334ec5752
extra : source : 97a08873177c0f18edffdb1b5589c77843a50553
2017-05-05 17:19:43 +08:00
Morris Tseng
4f5067b088 Bug 1363483 - Add nsDisplayTableBackgroundColor to avoid display item collision when processing background color of table. r=mattwoodrow
MozReview-Commit-ID: JlYqyRGvtq3

--HG--
extra : rebase_source : b3a0c19fb6b6e7e2bbab6e9dd87d100890c626eb
2017-05-10 14:22:10 +08:00
Kartikaya Gupta
5d5cdc518c Merge m-c to graphics
MozReview-Commit-ID: 2cIoGVmLEuA
2017-05-08 10:50:52 -04:00
Kartikaya Gupta
eac87bc2bf Merge m-c to graphics
MozReview-Commit-ID: 9HO5vhW5fyh
2017-05-04 09:05:26 -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
Kartikaya Gupta
9c0fee2d43 Bug 1360246 - Propagate the StackingContextHelper through CreateWebRenderCommands. r=nical
This is needed for the next patch, because the bullet frame WR rendering
code will need a StackingContextHelper to pass to the PushGlyphs call.
It also helps with some of the later patches in this series, when we get
rid of the RelativeToParent calls.

MozReview-Commit-ID: Is0aciHhy2N
2017-05-03 08:48:07 -04:00
Ethan Lin
a9bbf03464 Bug 1360127 - If the background image doesn't have a image container, we shouldn't create a layer for it. r=mchang 2017-05-03 18:27:10 +08:00
Ethan Lin
e7c48eaf73 Bug 1357003 - Keep original layer state for basic layer manager when enabling advanced layer. r=mattwoodrow
--HG--
extra : rebase_source : 75540e18973d788e4e076aa3bdfa8a26036b2269
2017-04-21 23:11:38 +08:00
David Anderson
a8433cef6b Collect diagnostics on paint times for the compositor overlay. (bug 1352151 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : f30dc11079add3f1019777b1c85cc5c5a5f0596b
2017-04-10 19:44:45 -07:00
Jamie Nicol
17d4964c7c Bug 1358185 - Force FixedPosition display items to be active. r=mstange
Fixed backgrounds were not being clipped correctly when rendered using
inactive layers.

MozReview-Commit-ID: 3v8tajr3MoB

--HG--
extra : rebase_source : 25329cb9efb998c64924916d4ea496a439688c8d
2017-05-03 16:49:43 +01:00
peter chang
82b62cfc18 Bug 1344079 - Convert ColumnRule to WebRenderDisplayItemLayer, r=mattwoodrow
MozReview-Commit-ID: AmAVYi4P7nl

--HG--
extra : rebase_source : a2c7196cca088ed44e3c1dadd7ba599348ffbd29
2017-03-24 17:35:35 +08:00
Kartikaya Gupta
868642f10c Merge m-c to graphics
MozReview-Commit-ID: KJoBJaTnxoC
2017-04-02 22:46:53 -04:00
Eric Rahm
861a58d5a4 Bug 1351904 - Switch layout over to ArenaAllocator. r=xidorn
This switches over layout's usage of PLArena to ArenaAllocator. This allows
us to build more files in unified sources and gets rid of various CONST masks.

MozReview-Commit-ID: Aaf3Dl2kaoz
2017-03-31 14:06:33 -07:00
Jamie Nicol
3661bae08d Bug 1339575 - Add pref to create color layers for nsDisplaySolidColor. r=mstange
Switched off for now as it causes reftest failures.

MozReview-Commit-ID: EzU8fhncppS
2017-03-13 16:02:09 +00:00
Ryan Hunt
c34aafb126 Bug 1341101 part 6 - Build WR gradients for nsDisplayBackgroundImage when supported r=jrmuizel
MozReview-Commit-ID: 3VKLZQZWyrG

--HG--
extra : rebase_source : c4dcfcff043b0f1b83a274e63a1aae32890bc968
2017-03-15 02:51:16 -04:00
Mason Chang
3b2070933d Bug 1350182 - Enable button border display items by default. r=ethlin 2017-03-27 13:09:55 -07:00
Kartikaya Gupta
0485af4853 Merge m-c to graphics
MozReview-Commit-ID: 5m04vXUTlsy
2017-03-17 11:03:02 -04:00
Ethan Lin
f892202a33 Bug 1346702 - Part1. Create border renderer in nsDisplayBorder::GetLayerState. r=mchang 2017-03-15 14:37:50 +08:00
Ryan Hunt
158ae4fb8e Bug 1346982 - Only build WebRender DisplayItems for BoxShadowOuter when supported r=mchang
--HG--
extra : amend_source : 13aeb58dfe5456684c0aa5960ec36a340613207c
2017-03-13 18:57:34 -04:00
Mason Chang
516a3654f4 Bug 1346451 - Delete WebRenderBorderLayer. r=ethlin 2017-03-11 10:04:26 -08:00
Morris Tseng
fcc1cbacec Bug 1341156 - Add border image support. r=mattwoodrow
MozReview-Commit-ID: 146FCaqEoi1
2017-03-13 11:46:04 +08:00
Mason Chang
2289ed06ba Bug 1343979 - Add webrender support for ButtonBorderBackground. r=ethlin 2017-03-08 08:31:46 -08:00
Jeff Muizelaar
900393a0dc Bug 1344396. Build the display lists directly. r=kats
This is a largely uninteresting patch that just uses the DisplayListBuilder
directly. A wonderful cleanup patch will come after this. One of the more
interesting pieces is the use of PushBuiltDisplayList. This is needed for
handling empty transactions. See https://github.com/servo/webrender/pull/934
for more info.
2017-03-06 23:16:30 -05:00
Jeff Muizelaar
033a5b26a9 Bug 1343770. Separate out Parent commands from Child commands. r=kats
This basically just splits the enum in two and does the necessary plumbing. The
worst part is that now DisplayItemLayers need to have two arrays of commands.
Fortunately, this will be going away in the future.

This makes it so we don't send the child side commands to the parent.
2017-03-02 16:33:25 -05:00
Mason Chang
f2f85a8adb Bug 1342281 - Convert inset box shadows to a WR display item. r=lsalzman 2017-02-23 20:01:58 -08:00
Carsten "Tomcat" Book
afda854868 Merge mozilla-central to mozilla-inbound 2017-02-23 15:28:43 +01:00
Ethan Lin
d52379d334 Bug 1340082 - Convert nsDisplayOutline to WebRenderDisplayItemLayer. r=mattwoodrow
--HG--
extra : rebase_source : 171473c12467e70726ff57f6597cd9b9281a647c
2017-02-23 17:34:14 +08:00
Mason Chang
0b59f5711a Bug 1339661 - Create box shadow outer webrender display item. r=jmuizelaar 2017-02-16 10:23:22 -08:00
Mason Chang
ef3d9a921c Bug 1337130 - Create a DisplayItemLayer type. r=mattwoodrow 2017-02-14 13:49:27 -08:00
Botond Ballo
0a1ee23556 Bug 1328065 - Record the target scroll id of scrollbar containers in the layer tree. r=mstange
MozReview-Commit-ID: DoyM64JJ4N8

--HG--
extra : rebase_source : 4c31d9ce488670bb2aab32fcba8e53bba8eaa7cf
2017-02-15 17:40:03 -05:00
Ethan Lin
a1f4b8b3cd Bug 1337681 - Part1. Support border radius for BorderLayer. r=mattwoodrow 2017-02-09 17:22:17 +08:00
Ethan Lin
896d26ef75 Bug 1337291 - Part1. Pass the border style to BorderLayer. r=mattwoodrow
MozReview-Commit-ID: 59rB9sDilYW
2017-02-08 23:20:29 -05:00
Thinker K.F. Li
70bcac7cb4 Bug 1342009 - Provide a shortcut in BuildDisplayListForChild. r=mattwoodrow 2017-05-04 02:06:00 +08:00