Bug 1349418 - Remove checkerboarding code and just use an opaque background color behind root scroll frames. r=kats

This commit is contained in:
Markus Stange
2017-04-10 17:01:53 +12:00
parent 85f31a7ad5
commit f510a8a0ad
12 changed files with 21 additions and 111 deletions

View File

@@ -44,13 +44,6 @@ public:
// All set methods return true if values changed, false otherwise.
//
bool SetLayerBounds(const gfx::IntRect& aLayerBounds) {
if (mLayerBounds.IsEqualEdges(aLayerBounds)) {
return false;
}
mLayerBounds = aLayerBounds;
return true;
}
bool SetPostScale(float aXScale, float aYScale) {
if (mPostXScale == aXScale && mPostYScale == aYScale) {
return false;
@@ -174,9 +167,6 @@ public:
// Getters.
//
const gfx::IntRect& LayerBounds() const {
return mLayerBounds;
}
float PostXScale() const {
return mPostXScale;
}
@@ -244,8 +234,7 @@ public:
}
bool operator ==(const SimpleLayerAttributes& aOther) const {
return mLayerBounds == aOther.mLayerBounds &&
mTransform == aOther.mTransform &&
return mTransform == aOther.mTransform &&
mTransformIsPerspective == aOther.mTransformIsPerspective &&
mScrolledClip == aOther.mScrolledClip &&
mPostXScale == aOther.mPostXScale &&
@@ -262,7 +251,6 @@ public:
}
private:
gfx::IntRect mLayerBounds;
gfx::Matrix4x4 mTransform;
bool mTransformIsPerspective;
Maybe<LayerClip> mScrolledClip;