2013-08-25 07:19:43 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2016-06-30 17:27:03 +00:00
|
|
|
#include "OrientedImage.h"
|
|
|
|
|
2013-08-25 07:19:43 +00:00
|
|
|
#include <algorithm>
|
|
|
|
|
2014-08-22 20:12:38 +00:00
|
|
|
#include "gfx2DGlue.h"
|
2020-11-23 16:21:38 +00:00
|
|
|
#include "gfxContext.h"
|
2013-08-25 07:19:43 +00:00
|
|
|
#include "gfxDrawable.h"
|
|
|
|
#include "gfxPlatform.h"
|
|
|
|
#include "gfxUtils.h"
|
2014-08-22 20:12:38 +00:00
|
|
|
#include "ImageRegion.h"
|
2020-07-12 16:38:26 +00:00
|
|
|
#include "mozilla/SVGImageContext.h"
|
2013-08-25 07:19:43 +00:00
|
|
|
|
|
|
|
using std::swap;
|
|
|
|
|
|
|
|
namespace mozilla {
|
2014-07-10 15:00:31 +00:00
|
|
|
|
|
|
|
using namespace gfx;
|
|
|
|
using layers::ImageContainer;
|
|
|
|
|
2013-08-25 07:19:43 +00:00
|
|
|
namespace image {
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
OrientedImage::GetWidth(int32_t* aWidth) {
|
|
|
|
if (mOrientation.SwapsWidthAndHeight()) {
|
|
|
|
return InnerImage()->GetHeight(aWidth);
|
|
|
|
} else {
|
|
|
|
return InnerImage()->GetWidth(aWidth);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
OrientedImage::GetHeight(int32_t* aHeight) {
|
|
|
|
if (mOrientation.SwapsWidthAndHeight()) {
|
|
|
|
return InnerImage()->GetWidth(aHeight);
|
|
|
|
} else {
|
|
|
|
return InnerImage()->GetHeight(aHeight);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-22 13:05:36 +00:00
|
|
|
nsresult OrientedImage::GetNativeSizes(nsTArray<IntSize>& aNativeSizes) const {
|
|
|
|
nsresult rv = InnerImage()->GetNativeSizes(aNativeSizes);
|
|
|
|
|
|
|
|
if (mOrientation.SwapsWidthAndHeight()) {
|
|
|
|
auto i = aNativeSizes.Length();
|
|
|
|
while (i > 0) {
|
|
|
|
--i;
|
|
|
|
swap(aNativeSizes[i].width, aNativeSizes[i].height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2013-08-25 07:19:43 +00:00
|
|
|
NS_IMETHODIMP
|
|
|
|
OrientedImage::GetIntrinsicSize(nsSize* aSize) {
|
|
|
|
nsresult rv = InnerImage()->GetIntrinsicSize(aSize);
|
|
|
|
|
|
|
|
if (mOrientation.SwapsWidthAndHeight()) {
|
|
|
|
swap(aSize->width, aSize->height);
|
|
|
|
}
|
|
|
|
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2019-05-02 23:28:21 +00:00
|
|
|
Maybe<AspectRatio> OrientedImage::GetIntrinsicRatio() {
|
|
|
|
Maybe<AspectRatio> ratio = InnerImage()->GetIntrinsicRatio();
|
|
|
|
if (ratio && mOrientation.SwapsWidthAndHeight()) {
|
|
|
|
ratio = Some(ratio->Inverted());
|
2013-08-25 07:19:43 +00:00
|
|
|
}
|
2019-05-02 23:28:21 +00:00
|
|
|
return ratio;
|
2013-08-25 07:19:43 +00:00
|
|
|
}
|
|
|
|
|
2020-04-17 02:57:20 +00:00
|
|
|
already_AddRefed<SourceSurface> OrientedImage::OrientSurface(
|
2020-04-17 02:57:22 +00:00
|
|
|
Orientation aOrientation, SourceSurface* aSurface) {
|
2020-04-17 02:57:20 +00:00
|
|
|
MOZ_ASSERT(aSurface);
|
2013-08-25 07:19:43 +00:00
|
|
|
|
2020-04-17 02:57:20 +00:00
|
|
|
// If the image does not require any re-orientation, return aSurface itself.
|
|
|
|
if (aOrientation.IsIdentity()) {
|
|
|
|
return do_AddRef(aSurface);
|
2013-08-25 07:19:43 +00:00
|
|
|
}
|
|
|
|
|
2020-04-17 02:57:20 +00:00
|
|
|
// Determine the size of the new surface.
|
2020-04-17 02:57:22 +00:00
|
|
|
nsIntSize originalSize = aSurface->GetSize();
|
|
|
|
nsIntSize targetSize = originalSize;
|
2020-04-17 02:57:20 +00:00
|
|
|
if (aOrientation.SwapsWidthAndHeight()) {
|
|
|
|
swap(targetSize.width, targetSize.height);
|
|
|
|
}
|
2020-04-09 13:17:33 +00:00
|
|
|
|
|
|
|
// Create our drawable.
|
2020-04-17 02:57:22 +00:00
|
|
|
RefPtr<gfxDrawable> drawable = new gfxSurfaceDrawable(aSurface, originalSize);
|
2020-04-09 13:17:33 +00:00
|
|
|
|
2013-08-25 07:19:43 +00:00
|
|
|
// Determine an appropriate format for the surface.
|
2020-04-17 02:57:20 +00:00
|
|
|
gfx::SurfaceFormat surfaceFormat = IsOpaque(aSurface->GetFormat())
|
2020-04-09 13:17:33 +00:00
|
|
|
? gfx::SurfaceFormat::OS_RGBX
|
|
|
|
: gfx::SurfaceFormat::OS_RGBA;
|
2013-08-25 07:19:43 +00:00
|
|
|
|
2020-04-17 02:57:20 +00:00
|
|
|
// Create the new surface to draw into.
|
2015-10-18 05:24:48 +00:00
|
|
|
RefPtr<DrawTarget> target =
|
2015-04-07 14:08:57 +00:00
|
|
|
gfxPlatform::GetPlatform()->CreateOffscreenContentDrawTarget(
|
2020-04-17 02:57:20 +00:00
|
|
|
targetSize, surfaceFormat);
|
2016-04-12 19:18:11 +00:00
|
|
|
if (!target || !target->IsValid()) {
|
2014-05-31 10:26:04 +00:00
|
|
|
NS_ERROR("Could not create a DrawTarget");
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2013-08-25 07:19:43 +00:00
|
|
|
// Draw.
|
2016-06-06 23:39:56 +00:00
|
|
|
RefPtr<gfxContext> ctx = gfxContext::CreateOrNull(target);
|
2016-04-12 19:18:11 +00:00
|
|
|
MOZ_ASSERT(ctx); // already checked the draw target above
|
2020-04-17 02:57:22 +00:00
|
|
|
ctx->Multiply(OrientationMatrix(aOrientation, originalSize));
|
|
|
|
gfxUtils::DrawPixelSnapped(ctx, drawable, SizeDouble(originalSize),
|
|
|
|
ImageRegion::Create(originalSize), surfaceFormat,
|
2016-05-25 16:01:18 +00:00
|
|
|
SamplingFilter::LINEAR);
|
2014-12-05 23:58:00 +00:00
|
|
|
|
2014-04-15 18:02:23 +00:00
|
|
|
return target->Snapshot();
|
2013-08-25 07:19:43 +00:00
|
|
|
}
|
|
|
|
|
2020-04-17 02:57:20 +00:00
|
|
|
NS_IMETHODIMP_(already_AddRefed<SourceSurface>)
|
|
|
|
OrientedImage::GetFrame(uint32_t aWhichFrame, uint32_t aFlags) {
|
|
|
|
// Get a SourceSurface for the inner image then orient it according to
|
|
|
|
// mOrientation.
|
|
|
|
RefPtr<SourceSurface> innerSurface =
|
|
|
|
InnerImage()->GetFrame(aWhichFrame, aFlags);
|
|
|
|
NS_ENSURE_TRUE(innerSurface, nullptr);
|
|
|
|
|
2020-04-17 02:57:22 +00:00
|
|
|
return OrientSurface(mOrientation, innerSurface);
|
2020-04-17 02:57:20 +00:00
|
|
|
}
|
|
|
|
|
2015-09-19 20:34:09 +00:00
|
|
|
NS_IMETHODIMP_(already_AddRefed<SourceSurface>)
|
|
|
|
OrientedImage::GetFrameAtSize(const IntSize& aSize, uint32_t aWhichFrame,
|
|
|
|
uint32_t aFlags) {
|
2020-04-17 02:57:46 +00:00
|
|
|
// Get a SourceSurface for the inner image then orient it according to
|
|
|
|
// mOrientation.
|
|
|
|
IntSize innerSize = aSize;
|
|
|
|
if (mOrientation.SwapsWidthAndHeight()) {
|
|
|
|
swap(innerSize.width, innerSize.height);
|
|
|
|
}
|
|
|
|
RefPtr<SourceSurface> innerSurface =
|
|
|
|
InnerImage()->GetFrameAtSize(innerSize, aWhichFrame, aFlags);
|
|
|
|
NS_ENSURE_TRUE(innerSurface, nullptr);
|
|
|
|
|
|
|
|
return OrientSurface(mOrientation, innerSurface);
|
2015-09-19 20:34:09 +00:00
|
|
|
}
|
|
|
|
|
2015-05-13 07:23:44 +00:00
|
|
|
NS_IMETHODIMP_(bool)
|
2021-09-05 22:36:45 +00:00
|
|
|
OrientedImage::IsImageContainerAvailable(WindowRenderer* aRenderer,
|
2015-05-13 07:23:44 +00:00
|
|
|
uint32_t aFlags) {
|
|
|
|
if (mOrientation.IsIdentity()) {
|
2021-09-05 22:36:45 +00:00
|
|
|
return InnerImage()->IsImageContainerAvailable(aRenderer, aFlags);
|
2015-05-13 07:23:44 +00:00
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-09-13 23:48:21 +00:00
|
|
|
NS_IMETHODIMP_(ImgDrawResult)
|
|
|
|
OrientedImage::GetImageContainerAtSize(
|
2021-08-25 07:35:17 +00:00
|
|
|
WindowRenderer* aRenderer, const gfx::IntSize& aSize,
|
2021-05-13 16:24:07 +00:00
|
|
|
const Maybe<SVGImageContext>& aSVGContext,
|
|
|
|
const Maybe<ImageIntRegion>& aRegion, uint32_t aFlags,
|
2018-09-13 23:48:21 +00:00
|
|
|
layers::ImageContainer** aOutContainer) {
|
2017-11-17 11:45:26 +00:00
|
|
|
// XXX(seth): We currently don't have a way of orienting the result of
|
|
|
|
// GetImageContainer. We work around this by always returning null, but if it
|
|
|
|
// ever turns out that OrientedImage is widely used on codepaths that can
|
|
|
|
// actually benefit from GetImageContainer, it would be a good idea to fix
|
|
|
|
// that method for performance reasons.
|
|
|
|
|
|
|
|
if (mOrientation.IsIdentity()) {
|
2021-05-13 16:24:07 +00:00
|
|
|
return InnerImage()->GetImageContainerAtSize(
|
2021-08-25 07:35:17 +00:00
|
|
|
aRenderer, aSize, aSVGContext, aRegion, aFlags, aOutContainer);
|
2017-11-17 11:45:26 +00:00
|
|
|
}
|
|
|
|
|
2018-09-13 23:48:21 +00:00
|
|
|
return ImgDrawResult::NOT_SUPPORTED;
|
2017-11-17 11:45:26 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 20:12:38 +00:00
|
|
|
struct MatrixBuilder {
|
2014-09-02 16:20:24 +00:00
|
|
|
explicit MatrixBuilder(bool aInvert) : mInvert(aInvert) {}
|
2014-08-22 20:12:38 +00:00
|
|
|
|
|
|
|
gfxMatrix Build() { return mMatrix; }
|
2013-08-25 07:19:43 +00:00
|
|
|
|
2014-12-05 23:58:00 +00:00
|
|
|
void Scale(gfxFloat aX, gfxFloat aY) {
|
2014-08-22 20:12:38 +00:00
|
|
|
if (mInvert) {
|
|
|
|
mMatrix *= gfxMatrix::Scaling(1.0 / aX, 1.0 / aY);
|
2013-08-25 07:19:43 +00:00
|
|
|
} else {
|
2017-07-05 15:18:49 +00:00
|
|
|
mMatrix.PreScale(aX, aY);
|
2013-08-25 07:19:43 +00:00
|
|
|
}
|
2014-08-22 20:12:38 +00:00
|
|
|
}
|
2013-08-25 07:19:43 +00:00
|
|
|
|
2014-12-05 23:58:00 +00:00
|
|
|
void Rotate(gfxFloat aPhi) {
|
2014-08-22 20:12:38 +00:00
|
|
|
if (mInvert) {
|
|
|
|
mMatrix *= gfxMatrix::Rotation(-aPhi);
|
|
|
|
} else {
|
2017-07-05 15:18:49 +00:00
|
|
|
mMatrix.PreRotate(aPhi);
|
2013-08-25 07:19:43 +00:00
|
|
|
}
|
2014-08-22 20:12:38 +00:00
|
|
|
}
|
2013-08-25 07:19:43 +00:00
|
|
|
|
2014-12-05 23:58:00 +00:00
|
|
|
void Translate(gfxPoint aDelta) {
|
2014-08-22 20:12:38 +00:00
|
|
|
if (mInvert) {
|
|
|
|
mMatrix *= gfxMatrix::Translation(-aDelta);
|
|
|
|
} else {
|
2017-07-05 15:18:49 +00:00
|
|
|
mMatrix.PreTranslate(aDelta);
|
2013-08-25 07:19:43 +00:00
|
|
|
}
|
2014-08-22 20:12:38 +00:00
|
|
|
}
|
2013-08-25 07:19:43 +00:00
|
|
|
|
2014-08-22 20:12:38 +00:00
|
|
|
private:
|
|
|
|
gfxMatrix mMatrix;
|
|
|
|
bool mInvert;
|
|
|
|
};
|
|
|
|
|
2020-04-17 02:57:20 +00:00
|
|
|
gfxMatrix OrientedImage::OrientationMatrix(Orientation aOrientation,
|
|
|
|
const nsIntSize& aSize,
|
2014-08-22 20:12:38 +00:00
|
|
|
bool aInvert /* = false */) {
|
|
|
|
MatrixBuilder builder(aInvert);
|
|
|
|
|
2020-04-17 02:57:32 +00:00
|
|
|
// Apply reflection, if present. (For a regular, non-flipFirst reflection,
|
|
|
|
// this logically happens second, but we apply it first because these
|
|
|
|
// transformations are all premultiplied.) A translation is necessary to place
|
|
|
|
// the image back in the first quadrant.
|
|
|
|
if (aOrientation.flip == Flip::Horizontal && !aOrientation.flipFirst) {
|
|
|
|
if (aOrientation.SwapsWidthAndHeight()) {
|
|
|
|
builder.Translate(gfxPoint(aSize.height, 0));
|
|
|
|
} else {
|
|
|
|
builder.Translate(gfxPoint(aSize.width, 0));
|
|
|
|
}
|
|
|
|
builder.Scale(-1.0, 1.0);
|
2014-08-22 20:12:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Apply rotation, if present. Again, a translation is used to place the
|
|
|
|
// image back in the first quadrant.
|
2020-04-17 02:57:20 +00:00
|
|
|
switch (aOrientation.rotation) {
|
2014-08-22 20:12:38 +00:00
|
|
|
case Angle::D0:
|
|
|
|
break;
|
|
|
|
case Angle::D90:
|
|
|
|
builder.Translate(gfxPoint(aSize.height, 0));
|
|
|
|
builder.Rotate(-1.5 * M_PI);
|
|
|
|
break;
|
|
|
|
case Angle::D180:
|
|
|
|
builder.Translate(gfxPoint(aSize.width, aSize.height));
|
|
|
|
builder.Rotate(-1.0 * M_PI);
|
|
|
|
break;
|
|
|
|
case Angle::D270:
|
|
|
|
builder.Translate(gfxPoint(0, aSize.width));
|
|
|
|
builder.Rotate(-0.5 * M_PI);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
MOZ_ASSERT(false, "Invalid rotation value");
|
|
|
|
}
|
|
|
|
|
2020-04-17 02:57:32 +00:00
|
|
|
// Apply a flipFirst reflection.
|
|
|
|
if (aOrientation.flip == Flip::Horizontal && aOrientation.flipFirst) {
|
|
|
|
builder.Translate(gfxPoint(aSize.width, 0.0));
|
|
|
|
builder.Scale(-1.0, 1.0);
|
|
|
|
}
|
|
|
|
|
2014-08-22 20:12:38 +00:00
|
|
|
return builder.Build();
|
|
|
|
}
|
|
|
|
|
2017-12-11 15:37:59 +00:00
|
|
|
NS_IMETHODIMP_(ImgDrawResult)
|
2013-08-25 07:19:43 +00:00
|
|
|
OrientedImage::Draw(gfxContext* aContext, const nsIntSize& aSize,
|
2014-08-22 20:12:38 +00:00
|
|
|
const ImageRegion& aRegion, uint32_t aWhichFrame,
|
2016-05-25 16:01:18 +00:00
|
|
|
SamplingFilter aSamplingFilter,
|
2014-08-22 20:12:38 +00:00
|
|
|
const Maybe<SVGImageContext>& aSVGContext, uint32_t aFlags,
|
2017-01-03 05:53:22 +00:00
|
|
|
float aOpacity) {
|
2013-08-25 07:19:43 +00:00
|
|
|
if (mOrientation.IsIdentity()) {
|
2014-08-22 20:12:38 +00:00
|
|
|
return InnerImage()->Draw(aContext, aSize, aRegion, aWhichFrame,
|
2017-01-03 05:53:22 +00:00
|
|
|
aSamplingFilter, aSVGContext, aFlags, aOpacity);
|
2013-08-25 07:19:43 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 20:12:38 +00:00
|
|
|
// Update the image size to match the image's coordinate system. (This could
|
|
|
|
// be done using TransformBounds but since it's only a size a swap is enough.)
|
|
|
|
nsIntSize size(aSize);
|
2013-08-25 07:19:43 +00:00
|
|
|
if (mOrientation.SwapsWidthAndHeight()) {
|
2014-08-22 20:12:38 +00:00
|
|
|
swap(size.width, size.height);
|
2013-08-25 07:19:43 +00:00
|
|
|
}
|
|
|
|
|
2014-08-22 20:12:38 +00:00
|
|
|
// Update the matrix so that we transform the image into the orientation
|
|
|
|
// expected by the caller before drawing.
|
|
|
|
gfxMatrix matrix(OrientationMatrix(size));
|
|
|
|
gfxContextMatrixAutoSaveRestore saveMatrix(aContext);
|
|
|
|
aContext->Multiply(matrix);
|
|
|
|
|
|
|
|
// The region is already in the orientation expected by the caller, but we
|
|
|
|
// need it to be in the image's coordinate system, so we transform it using
|
|
|
|
// the inverse of the orientation matrix.
|
|
|
|
gfxMatrix inverseMatrix(OrientationMatrix(size, /* aInvert = */ true));
|
|
|
|
ImageRegion region(aRegion);
|
|
|
|
region.TransformBoundsBy(inverseMatrix);
|
|
|
|
|
2016-06-22 20:34:07 +00:00
|
|
|
auto orientViewport = [&](const SVGImageContext& aOldContext) {
|
2017-01-09 19:12:02 +00:00
|
|
|
SVGImageContext context(aOldContext);
|
2017-01-30 13:25:00 +00:00
|
|
|
auto oldViewport = aOldContext.GetViewportSize();
|
|
|
|
if (oldViewport && mOrientation.SwapsWidthAndHeight()) {
|
|
|
|
// Swap width and height:
|
|
|
|
CSSIntSize newViewport(oldViewport->height, oldViewport->width);
|
|
|
|
context.SetViewportSize(Some(newViewport));
|
|
|
|
}
|
2017-01-09 19:12:02 +00:00
|
|
|
return context;
|
2016-06-22 20:34:07 +00:00
|
|
|
};
|
|
|
|
|
2017-01-03 05:53:22 +00:00
|
|
|
return InnerImage()->Draw(aContext, size, region, aWhichFrame,
|
|
|
|
aSamplingFilter, aSVGContext.map(orientViewport),
|
|
|
|
aFlags, aOpacity);
|
2013-08-25 07:19:43 +00:00
|
|
|
}
|
|
|
|
|
2014-12-05 23:58:00 +00:00
|
|
|
nsIntSize OrientedImage::OptimalImageSizeForDest(const gfxSize& aDest,
|
|
|
|
uint32_t aWhichFrame,
|
2016-05-25 16:01:18 +00:00
|
|
|
SamplingFilter aSamplingFilter,
|
|
|
|
uint32_t aFlags) {
|
2014-07-28 21:27:40 +00:00
|
|
|
if (!mOrientation.SwapsWidthAndHeight()) {
|
2016-05-25 16:01:18 +00:00
|
|
|
return InnerImage()->OptimalImageSizeForDest(aDest, aWhichFrame,
|
|
|
|
aSamplingFilter, aFlags);
|
2014-07-28 21:27:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Swap the size for the calculation, then swap it back for the caller.
|
|
|
|
gfxSize destSize(aDest.height, aDest.width);
|
|
|
|
nsIntSize innerImageSize(InnerImage()->OptimalImageSizeForDest(
|
2016-05-25 16:01:18 +00:00
|
|
|
destSize, aWhichFrame, aSamplingFilter, aFlags));
|
2014-07-28 21:27:40 +00:00
|
|
|
return nsIntSize(innerImageSize.height, innerImageSize.width);
|
|
|
|
}
|
|
|
|
|
2014-06-26 23:02:04 +00:00
|
|
|
NS_IMETHODIMP_(nsIntRect)
|
|
|
|
OrientedImage::GetImageSpaceInvalidationRect(const nsIntRect& aRect) {
|
|
|
|
nsIntRect rect(InnerImage()->GetImageSpaceInvalidationRect(aRect));
|
|
|
|
|
|
|
|
if (mOrientation.IsIdentity()) {
|
|
|
|
return rect;
|
|
|
|
}
|
|
|
|
|
2014-08-22 20:12:38 +00:00
|
|
|
nsIntSize innerSize;
|
|
|
|
nsresult rv = InnerImage()->GetWidth(&innerSize.width);
|
|
|
|
rv = NS_FAILED(rv) ? rv : InnerImage()->GetHeight(&innerSize.height);
|
2014-06-26 23:02:04 +00:00
|
|
|
if (NS_FAILED(rv)) {
|
|
|
|
// Fall back to identity if the width and height aren't available.
|
|
|
|
return rect;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Transform the invalidation rect into the correct orientation.
|
2015-09-26 06:26:18 +00:00
|
|
|
gfxMatrix matrix(OrientationMatrix(innerSize));
|
2017-12-20 21:46:28 +00:00
|
|
|
gfxRect invalidRect(matrix.TransformBounds(
|
2017-08-14 12:29:56 +00:00
|
|
|
gfxRect(rect.X(), rect.Y(), rect.Width(), rect.Height())));
|
2014-06-26 23:02:04 +00:00
|
|
|
|
2017-12-20 21:46:28 +00:00
|
|
|
return IntRect::RoundOut(invalidRect.X(), invalidRect.Y(),
|
2017-08-14 12:29:56 +00:00
|
|
|
invalidRect.Width(), invalidRect.Height());
|
2014-06-26 23:02:04 +00:00
|
|
|
}
|
|
|
|
|
2013-08-25 07:19:43 +00:00
|
|
|
} // namespace image
|
|
|
|
} // namespace mozilla
|