Commit Graph

848 Commits

Author SHA1 Message Date
Markus Stange
974b17b639 Bug 1148855 - Mark some ContainerState methods as const. r=roc 2015-03-25 18:08:56 -04:00
Nicolas Silva
13344864c0 Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc 2015-03-29 16:59:08 +02:00
Tom Tromey
840a9ca9bc Bug 1144820 - Use rvalue reference in AddProfileTimelineMarker. r=smaug 2015-03-27 08:41:00 -04:00
Kearwood (Kip) Gilbert
c4ece0cbcf Bug 1035611 - Part 1: Updated Matrix4x4::ProjectRectBounds to properly handle infinite values when untransformed rects cross the w=0 plane. r=mattwoodrow
- Added specialized rect clipping functionality to Matrix4x4::ProjectRectBounds
  so we don't have to return infinite values when rects cross the w=0 plane
  in homogenous coordinate space.
- Updated callsites of ProjectRectBounds to pass a clipping rect that is
  appropriate for the units that are returned.
2015-03-13 16:42:00 -04:00
Kushan Joshi
183deadbee Bug 1101627 - Add touch action regions. r=kats 2015-03-24 09:13:24 -04:00
Ehsan Akhgari
ea41d8de48 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Markus Stange
b22143048d Bug 1144307 - Destroy scroll info layer items when we're done with them. r=tn 2015-03-17 22:04:33 -04:00
Markus Stange
86517737b7 Bug 1141595 - Make scroll info display item hoisting work after bug 913443. r=tn 2015-03-16 18:37:04 -04:00
Markus Stange
513142d08e Bug 1141089 - Add some release assertions to gather more data. r=roc 2015-03-16 16:04:00 -04:00
Botond Ballo
c2cac95e8c Bug 1139675 - Simplify the APIs for getting and setting the pres shell resolution. r=mstange,mattwoodrow 2015-03-06 18:07:59 -05:00
Jeff Muizelaar
2611102d5c Bug 1143789. Remove unnecessary cast to BasicLayerManager. r=mstange 2015-03-16 14:19:32 -04:00
Markus Stange
29b8c8daad Bug 1142211 - Add layerization testing mechanisms to reftest. r=roc
This adds support for class="reftest-opaque-layer" and for
reftest-assigned-layer="some-layer-name" to the reftest harness.

From reftest/README.txt:

Opaque Layer Tests: class="reftest-opaque-layer"
================================================

If an element should be assigned to a PaintedLayer that's opaque, set the class
"reftest-opaque-layer" on it. This checks whether the layer is opaque during
the last paint of the test, and it works whether your test is an invalidation
test or not. In order to pass the test, the element has to have a primary
frame, and that frame's display items must all be assigned to a single painted
layer and no other layers, so it can't be used on elements that create stacking
contexts (active or inactive).

Layerization Tests: reftest-assigned-layer="layer-name"
=======================================================

If two elements should be assigned to the same PaintedLayer, choose any string
value as the layer name and set the attribute reftest-assigned-layer="yourname"
on both elements. Reftest will check whether all elements with the same
reftest-assigned-layer value share the same layer. It will also test whether
elements with different reftest-assigned-layer values are assigned to different
layers.
The same restrictions as with class="reftest-opaque-layer" apply: All elements
must have a primary frame, and that frame's display items must all be assigned
to the same PaintedLayer and no other layers. If these requirements are not
met, the test will fail.
2015-03-11 14:51:59 -04:00
Markus Stange
49816b85c2 Bug 1141281 - Don't put empty Info: lines into the layers dump. r=BenWa 2015-03-09 00:41:11 -04:00
Markus Stange
2ae8abfa79 Bug 1141408 - Don't include the display item's memory address in the profile label. r=BenWa 2015-03-07 18:40:03 -05:00
Milan Sreckovic
a5610e14a3 Bug 1140113 - Catch direct (and some indirect) callers of CreateDrawTarget* and deal with failure. r=mstange 2015-03-09 15:48:20 -04:00
Markus Stange
85ccc11393 Bug 913443 - Remove duplicated argument variables. r=roc 2015-03-04 12:08:28 -05:00
Markus Stange
91a57f7c13 Bug 913443 - Recycle PaintedLayers as soon as possible. r=roc
This means layers are assigned bottom-to-top.
2015-03-04 00:18:47 -05:00
Markus Stange
b1f42e9cfa Bug 913443 - When determining the layer to recycle, only consider layers that have display items in common with the layer we need. r=roc 2015-03-04 00:21:00 -05:00
Markus Stange
32bdb84387 Bug 913443 - Delay PaintedLayer recycling until PopPaintedLayerData(). r=roc
Once we're smarter about recycling the right layer, we can't decide on a layer
as soon as we encounter its first display item. We might need to have to look
at all of the assigned display items. This change makes that requirement
explicit.
2015-03-03 21:32:08 -05:00
Markus Stange
53382a0e6b Bug 913443 - Add a display item buffer for PaintedLayerData so that we can assign items without needing to know the actual Layer. r=roc 2015-03-04 00:21:55 -05:00
Markus Stange
9028c78896 Bug 913443 - Change the order of these calls. r=roc
The calls above don't need access to the PaintedLayer, but the ones this change
is moving down do. This change just makes it more obvious that we're free to
move the calls to an even later point.
2015-03-03 17:21:42 -05:00
Markus Stange
cb89375a41 Bug 913443 - Move IsWidgetLayerManager() check out of UpdateCommonClipCount. r=roc
UpdateCommonClipCount accesses the PaintedLayerData's mLayer field in order to
get the layer manager. We want to be able to call UpdateCommonClipCount when
mLayer is null.
2015-03-03 17:00:55 -05:00
Markus Stange
87afc2f865 Bug 913443 - Remove unused aItemVisibleRect argument. r=roc 2015-03-03 16:57:30 -05:00
Markus Stange
2bffef71e9 Bug 913443 - Break CreateOrRecyclePaintedLayer up even more. r=roc 2015-03-02 19:25:13 -05:00
Markus Stange
248cad10db Bug 913443 - Extract layer hint calculation. r=roc 2015-03-02 19:24:18 -05:00
Markus Stange
e04a240904 Bug 913443 - Break up CreateOrRecyclePaintedLayer into more parts. r=roc 2015-03-02 18:43:58 -05:00
Markus Stange
757489f378 Bug 913443 - Remove some #ifdefs. r=roc
This function will be split up into more functions, and carrying along the
#ifdefs throughout those would be a pain.
2015-03-02 18:29:12 -05:00
Markus Stange
107de28cd7 Bug 913443 - Remove mention of the word ThebesLayer in a comment. r=roc 2015-03-02 18:19:12 -05:00
Markus Stange
adcd6aa6fb Bug 961887 - Find uniform opaque background colors under ContainerLayers. r=roc 2015-02-25 11:47:22 -05:00
Markus Stange
2504af3be6 Bug 961887 - Make FindOpaqueBackgroundColorFor take a region instead of a PaintedLayerData. r=roc 2015-02-20 14:46:09 -05:00
Markus Stange
365303483d Bug 961887 - Refactor mVisibleAboveRegion management. r=roc 2015-02-18 17:37:19 -05:00
Timothy Nikkel
297df3c72d Bug 1102896. Save and restore the subpixel AA settings of the draw target when drawing an inactive layer manager so they don't get clobbered. r=mattwoodrow 2015-02-24 22:59:43 -06:00
Wes Kocher
a618220ed2 Backed out 3 changesets (bug 961887) for reftest failures on a CLOSED TREE
Backed out changeset 1684d29858e1 (bug 961887)
Backed out changeset 97c8184c3058 (bug 961887)
Backed out changeset f02c5c1f7704 (bug 961887)
2015-02-24 17:32:37 -08:00
Markus Stange
b85b50f73d Bug 961887 - Find uniform opaque background colors under ContainerLayers. r=roc 2015-02-24 14:35:46 -05:00
Markus Stange
c846d6ed36 Bug 961887 - Make FindOpaqueBackgroundColorFor take a region instead of a PaintedLayerData. r=roc 2015-02-20 14:46:09 -05:00
Markus Stange
08ed4ed4a0 Bug 961887 - Refactor mVisibleAboveRegion management. r=roc 2015-02-18 17:37:19 -05:00
Markus Stange
c8d750abfe Bug 1134311 - Get rid of the draw region and always only use the visible region. r=roc 2015-02-18 13:01:40 -05:00
Timothy Nikkel
1c9359863c Bug 1118051. Report layer event regions items as having empty bounds so they don't expand the visible region of layers. r=roc
When choosing a painted layer for the event region item we must report the bounds of the hit regions as the bounds so that we don't fall through to the bottom most painted layer.
2015-02-11 17:06:47 -06:00
David Anderson
df5272c487 Disable layers flattening if APZ is enabled. (bug 1131389, r=mattwoodrow) 2015-02-10 20:54:18 -08:00
Nicholas Nethercote
0247de46d8 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
Seth Fowler
7644349ed2 Bug 1128225 (Part 3) - Add infrastructure for tracking draw results in geometry items. r=tn 2015-02-04 13:50:56 -08:00
David Anderson
4b58174a83 Make debugging whole-layer invalidation slightly easier. (bug 1128752, r=mattwoodrow) 2015-02-03 14:18:44 -08:00
Timothy Nikkel
eb21db8a7f Bug 1120431. Ensure that the draw region of a painted layer always includes the visible region, even if simplication of the region might try to change that. r=matt.woodrow
Sometimes, in very specific cases,  the visible region gets simplified to one rect and is thus much bigger than the draw region. This becomes a problem if we decide to pull an opaque background color from a lower layer so that we are opaque. In which case we draw the background color over the whole visible region. But we use the draw region to determine if we can place items below this layer, so that background color could cover them incorrectly.
2015-01-25 17:28:51 -06:00
Tom Tromey
425da38fcc Bug 1124680 - add MOZ_OVERRIDE in subclasses of TimelineMarker. r=smaug 2015-01-22 07:35:00 +01:00
Kartikaya Gupta
8c19091b25 Bug 1116586 - Fix hit region for items with rounded corners. r=tn 2015-01-21 09:16:38 -05:00
Kartikaya Gupta
1f5f8b9295 Bug 1119942 - Hoist nsDisplayScrollInfoLayer items out of inactive layermanagers into their parent. r=tnikkel,mattwoodrow 2015-01-20 09:49:30 -05:00
Kartikaya Gupta
091503d58e Bug 1119942 - Add some missing logging for which display items end up on which layer. r=BenWa,mattwoodrow 2015-01-20 09:49:30 -05:00
David Anderson
077e04d5dc Fix classic scrollbars getting occluded with containerless scrolling. (bug 1100756, r=roc) 2015-01-13 23:55:17 -08:00