virtual nsIntRegion ComputeChangeInternal(NotifySubDocInvalidationFunc aCallback, bool& aGeometryChanged) { ColorLayer* color = static_cast<ColorLayer*>(mLayer.get()); if (mColor != color->GetColor()) { aGeometryChanged = true; return NewTransformedBounds(); } nsIntRegion boundsDiff; boundsDiff.Xor(mBounds, color->GetBounds()); nsIntRegion result; AddTransformedRegion(result, boundsDiff, mTransform); return result; }