Bug 1109677 - Banish scrollinfo layers from the gtests as they are not used with event regions. r=botond

This commit is contained in:
Kartikaya Gupta 2014-12-14 21:37:51 -05:00
parent 430339dfea
commit 8af432308c

View File

@ -1721,7 +1721,7 @@ protected:
}
void CreatePotentiallyLeakingTree() {
const char* layerTreeSyntax = "c(c(c(c))c(c(c)))";
const char* layerTreeSyntax = "c(c(c(t))c(c(t)))";
// LayerID 0 1 2 3 4 5 6
root = CreateLayerTree(layerTreeSyntax, nullptr, nullptr, lm, layers);
SetScrollableFrameMetrics(layers[0], FrameMetrics::START_SCROLL_ID);
@ -1748,7 +1748,7 @@ protected:
protected:
void CreateHitTesting1LayerTree() {
const char* layerTreeSyntax = "c(ttcc)";
const char* layerTreeSyntax = "c(tttt)";
// LayerID 0 1234
nsIntRegion layerVisibleRegion[] = {
nsIntRegion(nsIntRect(0,0,100,100)),
@ -1761,7 +1761,7 @@ protected:
}
void CreateHitTesting2LayerTree() {
const char* layerTreeSyntax = "c(cc(c))";
const char* layerTreeSyntax = "c(tc(t))";
// LayerID 0 12 3
nsIntRegion layerVisibleRegion[] = {
nsIntRegion(nsIntRect(0,0,100,100)),
@ -2159,7 +2159,7 @@ protected:
TestAsyncPanZoomController* rootApzc;
void CreateOverscrollHandoffLayerTree1() {
const char* layerTreeSyntax = "c(c)";
const char* layerTreeSyntax = "c(t)";
nsIntRegion layerVisibleRegion[] = {
nsIntRegion(nsIntRect(0, 0, 100, 100)),
nsIntRegion(nsIntRect(0, 50, 100, 50))
@ -2174,7 +2174,7 @@ protected:
}
void CreateOverscrollHandoffLayerTree2() {
const char* layerTreeSyntax = "c(c(c))";
const char* layerTreeSyntax = "c(c(t))";
nsIntRegion layerVisibleRegion[] = {
nsIntRegion(nsIntRect(0, 0, 100, 100)),
nsIntRegion(nsIntRect(0, 0, 100, 100)),
@ -2194,7 +2194,7 @@ protected:
}
void CreateOverscrollHandoffLayerTree3() {
const char* layerTreeSyntax = "c(c(c)c(c))";
const char* layerTreeSyntax = "c(c(t)c(t))";
nsIntRegion layerVisibleRegion[] = {
nsIntRegion(nsIntRect(0, 0, 100, 100)), // root
nsIntRegion(nsIntRect(0, 0, 100, 50)), // scrolling parent 1
@ -2214,7 +2214,7 @@ protected:
}
void CreateScrollgrabLayerTree() {
const char* layerTreeSyntax = "c(c)";
const char* layerTreeSyntax = "c(t)";
nsIntRegion layerVisibleRegion[] = {
nsIntRegion(nsIntRect(0, 0, 100, 100)), // scroll-grabbing parent
nsIntRegion(nsIntRect(0, 20, 100, 80)) // child