Wes Kocher
5afdefe075
Backed out changeset f179621a517b (bug 1147538) for osx reftest failures a=backout
2017-04-13 23:59:49 -07:00
David Anderson
16e78d9ec4
Accumulate event region items into painted layers. (bug 1147538, r=mstange)
...
If a painted layer would previously only contain an event regions item, we
would not associate that item with any cached layer. As a result we would
generate a new, empty, invisible painted layer each frame. This is disastrous
on large layer trees as it can cause many needless repositions. Instead, we
make sure to accumulate the invisible item.
2017-04-13 20:27:52 -07: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
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
Miko Mynttinen
b715bc1076
Bug 1343596 - Part 2: Refactor nsDisplayList sorting r=mattwoodrow
...
MozReview-Commit-ID: DlUSf0iQm06
--HG--
extra : rebase_source : 20c5b58756d694149622cc145cc1d0d94ebb2cfa
2017-03-07 11:30:12 +01:00
Miko Mynttinen
add639bc03
Bug 1343596 - Part 1: Remove trailing whitespace r=mattwoodrow
...
MozReview-Commit-ID: C3GgVaaou0j
--HG--
extra : rebase_source : 1ae121151cd4ea88ba614637295a19150d7dae38
2017-03-07 11:29:19 +01:00
Markus Stange
ce900f2971
Bug 1298218 - Apply the clip of a sticky item to the layer as a scrolled clip. r=mattwoodrow
...
MozReview-Commit-ID: JnHCj0oQjsM
--HG--
extra : rebase_source : 322b9d56c49e36c28de2f64d908365dad69da42e
2016-08-25 17:06:49 -04:00
Markus Stange
068d452b3e
Bug 1298218 - Save and restore the combined clip for the "top layer". r=tnikkel
...
MozReview-Commit-ID: IRfB85gVyWB
--HG--
extra : rebase_source : 15cfdd7f2f09e3a3d09887ef9858f1e28b90c94f
2017-01-27 17:33:53 +01:00
Markus Stange
6efd7c73b1
Bug 1298218 - Use DisplayItemClipChain for tracking clips on display items. r=mattwoodrow,tnikkel
...
This is the bulk of the changes.
- DisplayItemScrollClip is removed. Instead, we will have 1) ActiveScrolledRoot
and 2) DisplayItemClipChain.
- ActiveScrolledRoot points to a scroll frame and allows traversing up the
scroll frame chain.
- DisplayItemClipChain is a linked list of clips, each clip being associated
with the ActiveScrolledRoot that moves this clip.
- Each display item has an ActiveScrolledRoot and a clip chain.
- nsDisplayItem::GetClip returns the item of the clip chain that scrolls with
the item's ASR. The separation between "regular clip" and "scroll clips"
mostly goes away.
- Tracking clips in the display list builder's clip state happens very
similarly to how regular clips used to be tracked - there's a clip chain for
content descendants and a clip chain for containing block descendants. These
clip chains are intersected to create the combined clip chain.
- There are strict rules for the ASR of a container item: A container item's
ASR should be the innermost ASR which the item has finite clipped bounds with
respect to.
- At some point in the future, ASRs and AGRs should be reunified, but I haven't
done that yet, because I needed to limit the scope of the change.
MozReview-Commit-ID: KYEpWY7qgf2
--HG--
extra : rebase_source : c727f6300a35463750639e165bfa37374c06b851
2017-01-31 17:07:35 -05:00
Markus Stange
b9c74f8bdc
Bug 1298218 - Add DisplayItemClipChain. r=mattwoodrow,tnikkel
...
MozReview-Commit-ID: K9mg86VgK10
--HG--
extra : rebase_source : 3b234829ec7dbe0ad7dff8ca55f813b082b21b0c
2017-01-27 12:57:44 +01:00
Markus Stange
178d1b3e53
Bug 1298218 - Create ActiveScrolledRoot struct. r=mattwoodrow
...
MozReview-Commit-ID: Bcr801WbRmS
--HG--
extra : rebase_source : bf24b4d6391ad4a07160bd68ed586aed224bd971
2017-01-27 13:09:42 +01:00
Markus Stange
6e2cece750
Bug 1298218 - Add the ability to know whether a background image is fixed before creating the display item. r=mattwoodrow
...
With the ActiveScrolledRoot changes, we will need to set up different state on
the display list builder prior to creating the nsDisplayBackgroundImage item.
MozReview-Commit-ID: CgeffVPccfj
--HG--
extra : rebase_source : e2e1481a2e9df8becf56b969f151915694d62a8d
2016-08-19 19:36:57 -04:00
Botond Ballo
fe7fc8ea5b
Bug 1331693 - Do not attempt async scrollbar dragging for scroll info layers. r=tnikkel
...
MozReview-Commit-ID: 8QjqexfaKkY
--HG--
extra : rebase_source : 293d68db3cea84810679a59dcfa234103643d8bb
2017-01-18 18:45:43 -05:00
Ethan Lin
a461fb6e11
Bug 1325159 - Add nullptr check for GetTop(). r=mattwoodrow
...
--HG--
extra : rebase_source : d5e9de33c867d9afab9e2632fedd703d09e8b56e
2016-12-22 01:11:00 +01: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
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
4b1f9a6bc6
Bug 1321412 - Allow ShouldPrerenderTransformedContent() to override the dirty rect. r=mattwoodrow
...
MozReview-Commit-ID: 5EpiANOynwP
--HG--
extra : rebase_source : d2bd3668bbe12b3853327f2c41e6a77acf1bbadd
2016-11-23 16:50:47 -05:00
Botond Ballo
6dbe1b9895
Bug 1321412 - Change the return type of ShouldPrerenderTransformedContent() to an enum. r=mattwoodrow
...
MozReview-Commit-ID: EMTdW46D8cM
--HG--
extra : rebase_source : 1ecd8fd39a1d3bc74200dbe4f53dd78eda57987e
2016-11-23 12:58:59 -05:00
Botond Ballo
04f1eab3e6
Bug 1321412 - Rename nsDisplayTransform::mIsFullyVisible to mAllowAsyncAnimations. r=mattwoodrow
...
MozReview-Commit-ID: F7wwQnv5cz9
--HG--
extra : rebase_source : 870d018a761cf77a8ed0f698553774945ddce1c6
2016-11-23 12:49:35 -05:00
Brad Werth
5649cb192c
Bug 1319560 Part 1: Add a mHitTestShouldStopAtFirstOpaque flag to nsDisplayListBuilder. r=mattwoodrow
...
MozReview-Commit-ID: AuXcAUMhlJW
--HG--
extra : rebase_source : eedecd0278d3a59d1e90117c518be02380f18153
2016-11-28 12:46:56 -08:00
Matt Woodrow
ce997d1ff2
Bug 1319626 - Part 5: Minimize visible region for border layers. r=mstange
...
--HG--
extra : rebase_source : 49d82764cd1d2f4ef4cf44b705889754bb081f8b
2016-11-24 18:11:30 +13:00
Matt Woodrow
45cec2ab70
Bug 1319626 - Part 4: Build BorderLayers if enabled. r=mstange
...
--HG--
extra : rebase_source : ed44e14cf38347bf9a18e69cb981f1187775a641
2016-11-24 18:11:30 +13:00
Carsten "Tomcat" Book
00e25fe58c
Backed out changeset e6760c16df72 (bug 1319626)
2016-11-24 17:02:27 +01:00
Carsten "Tomcat" Book
fc781d5a09
Backed out changeset 5e4dbaca50ef (bug 1319626)
2016-11-24 17:02:24 +01:00
Matt Woodrow
5e1a7b14aa
Bug 1319626 - Part 5: Minimize visible region for border layers. r=mstange
2016-11-24 18:11:30 +13:00
Matt Woodrow
0a8102cacf
Bug 1319626 - Part 4: Build BorderLayers if enabled. r=mstange
2016-11-24 18:11:30 +13:00
Matt Woodrow
f23176620b
Bug 1318156 - Convert background colors into layers if we're forcing active layers. r=mstange
2016-11-24 18:11:29 +13: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