Bug 1282670, part 1: Add missing #include & "using" declarations in imagelib. r=seth

I found these issues locally by moving all of imagelib's .cpp files to SOURCES instead of UNIFIED_SOURCES.  (That change isn't part of this patch, though.)

MozReview-Commit-ID: 97Xpfu8eFE6
This commit is contained in:
Daniel Holbert 2016-06-30 10:24:27 -07:00
Родитель 08e44f904f
Коммит c1e322c6c5
9 изменённых файлов: 19 добавлений и 2 удалений

Просмотреть файл

@ -10,6 +10,7 @@
#include <ctime>
#include "gfxPrefs.h"
#include "image_operations.h"
#include "mozilla/gfx/2D.h"
#include "mozilla/SSE.h"
#include "mozilla/mips.h"
#include "convolver.h"
@ -19,6 +20,9 @@ using std::max;
using std::swap;
namespace mozilla {
using gfx::IntRect;
namespace image {
Downscaler::Downscaler(const nsIntSize& aTargetSize)

Просмотреть файл

@ -14,6 +14,7 @@
#include "mozilla/Maybe.h"
#include "mozilla/UniquePtr.h"
#include "gfxPoint.h"
#include "nsRect.h"
namespace skia {

Просмотреть файл

@ -8,6 +8,8 @@
namespace mozilla {
using namespace gfx;
using layers::ImageContainer;
using layers::LayerManager;
namespace image {

Просмотреть файл

@ -11,6 +11,7 @@
#define mozilla_image_src_ImageCacheKey_h
#include "mozilla/Maybe.h"
#include "mozilla/RefPtr.h"
class nsIDocument;
class nsIURI;

Просмотреть файл

@ -13,6 +13,7 @@
namespace mozilla {
using gfx::DataSourceSurface;
using gfx::IntSize;
using gfx::SamplingFilter;
using gfx::SourceSurface;
using layers::LayerManager;

Просмотреть файл

@ -8,6 +8,10 @@
#include "imgINotificationObserver.h"
namespace mozilla {
using gfx::IntSize;
using gfx::SourceSurface;
namespace image {
///////////////////////////////////////////////////////////////////////////////

Просмотреть файл

@ -24,6 +24,8 @@
#include <stdint.h>
#include "nsDebug.h"
#include "mozilla/Likely.h"
#include "mozilla/Maybe.h"
#include "mozilla/Move.h"

Просмотреть файл

@ -13,6 +13,7 @@
#include "nsBMPDecoder.h"
#include "nsPNGDecoder.h"
#include "ICOFileHeaders.h"
#include "mozilla/gfx/2D.h"
namespace mozilla {
namespace image {
@ -114,8 +115,8 @@ private:
UniquePtr<uint8_t[]> mMaskBuffer; // A temporary buffer for the alpha mask.
char mBIHraw[bmp::InfoHeaderLength::WIN_ICO]; // The bitmap information header.
IconDirEntry mDirEntry; // The dir entry for the selected resource.
IntSize mBiggestResourceSize; // Used to select the intrinsic size.
IntSize mBiggestResourceHotSpot; // Used to select the intrinsic size.
gfx::IntSize mBiggestResourceSize; // Used to select the intrinsic size.
gfx::IntSize mBiggestResourceHotSpot; // Used to select the intrinsic size.
uint16_t mBiggestResourceColorDepth; // Used to select the intrinsic size.
int32_t mBestResourceDelta; // Used to select the best resource.
uint16_t mBestResourceColorDepth; // Used to select the best resource.

Просмотреть файл

@ -12,6 +12,7 @@
#include "gfx2DGlue.h"
#include "gfxPlatform.h"
#include "gfxPrefs.h"
#include "gfxUtils.h"
#include "gfxAlphaRecovery.h"