Bug 1102048 (Part 16) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth

This commit is contained in:
Glenn Randers-Pehrson 2014-12-04 11:23:00 -08:00
Родитель 92c4b4b8f1
Коммит 5410322d22
1 изменённых файлов: 16 добавлений и 7 удалений

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

@ -32,7 +32,7 @@ public:
eDecoderType_icon = 5,
eDecoderType_unknown = 6
};
static eDecoderType GetDecoderType(const char *aMimeType);
static eDecoderType GetDecoderType(const char* aMimeType);
/**
* Flags for Image initialization.
@ -77,7 +77,8 @@ public:
* If MallocSizeOf does not work on this platform, uses a fallback approach to
* ensure that something reasonable is always returned.
*/
virtual size_t SizeOfSourceWithComputedFallback(MallocSizeOf aMallocSizeOf) const = 0;
virtual size_t SizeOfSourceWithComputedFallback(
MallocSizeOf aMallocSizeOf) const = 0;
/**
* The size, in bytes, occupied by the image's decoded data.
@ -145,12 +146,16 @@ public:
class ImageResource : public Image
{
public:
already_AddRefed<ProgressTracker> GetProgressTracker() MOZ_OVERRIDE {
already_AddRefed<ProgressTracker> GetProgressTracker() MOZ_OVERRIDE
{
nsRefPtr<ProgressTracker> progressTracker = mProgressTracker;
MOZ_ASSERT(progressTracker);
return progressTracker.forget();
}
void SetProgressTracker(ProgressTracker* aProgressTracker) MOZ_OVERRIDE MOZ_FINAL {
void SetProgressTracker(
ProgressTracker* aProgressTracker) MOZ_OVERRIDE MOZ_FINAL
{
MOZ_ASSERT(aProgressTracker);
MOZ_ASSERT(!mProgressTracker);
mProgressTracker = aProgressTracker;
@ -159,12 +164,16 @@ public:
virtual void IncrementAnimationConsumers() MOZ_OVERRIDE;
virtual void DecrementAnimationConsumers() MOZ_OVERRIDE;
#ifdef DEBUG
virtual uint32_t GetAnimationConsumers() MOZ_OVERRIDE { return mAnimationConsumers; }
virtual uint32_t GetAnimationConsumers() MOZ_OVERRIDE
{
return mAnimationConsumers;
}
#endif
virtual void OnSurfaceDiscarded() MOZ_OVERRIDE { }
virtual void SetInnerWindowID(uint64_t aInnerWindowId) MOZ_OVERRIDE {
virtual void SetInnerWindowID(uint64_t aInnerWindowId) MOZ_OVERRIDE
{
mInnerWindowId = aInnerWindowId;
}
virtual uint64_t InnerWindowID() const MOZ_OVERRIDE { return mInnerWindowId; }
@ -183,7 +192,7 @@ protected:
// Shared functionality for implementors of imgIContainer. Every
// implementation of attribute animationMode should forward here.
nsresult GetAnimationModeInternal(uint16_t *aAnimationMode);
nsresult GetAnimationModeInternal(uint16_t* aAnimationMode);
nsresult SetAnimationModeInternal(uint16_t aAnimationMode);
/**