mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
6b6341f075
- Bug 1102048 (Part 20, imgLoader) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (0a8270ba4) - Bug 1102048 (Part 23, encoders) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (6625ca535) - Bug 1102048 (Part 39, decoders/icon) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (55956f847) - Bug 1102048 (Part 24, decoders) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (cf2b002a7) - Bug 1102048 (Part 04, ClippedImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (c9f1451ad) - Bug 1102048 (Part 30, imgTools) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (2e3378d34) - Bug 1082837 - Track insecure redirects on imgRequest. r=? (466a14e22) - Bug 1139225 (Part 3) - Make OnDataAvailable threadsafe. r=tn (d10208a8b) - Bug 1139225 (Part 1) - Remove unused imgRequest::mBlockingOnload flag. r=tn (c0d80facd) - Bug 1102048 (Part 11, imgRequest) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (63ee15eb8) - Bug 1102048 (Part 38, ShutdownTracker) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (a58d515ed) - Bug 1102048 (Part 37, ProgressTracker) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (04b07cb06) - Bug 1102048 (Part 14, NotificationObserver) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (ca32242a4) - Bug 1102048 (Part 13, RasterImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (8f3931f31) - Bug 1102048 (Part 10, imgFrame) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (2f2b22e70) - Bug 1102048 (Part 36, DynamicImage) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (2cce04d2b) - Bug 1102048 (Part 09, Image) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (2f3743d2e) - Bug 1102048 (Part 29, imgRequestProxy) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (bf2824c08) - Bug 1102048 (Part 31, SurfaceCache) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (c6849f4d9) - Bug 1102048 (Part 25, header guards) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (bde0a4979) - Bug 1102048 (Part 33, SVGDocument) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (71f5f960c) - Bug 1102048 (Part 05, Decoder) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (48b1d5a80) - Bug 1102048 (Part 34, Multipart) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (fb65aa069) - Bug 1102048 (Part 35, Downscaler) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (2eb0be1f7) - Bug 1102048 (Part 19, ImageMetadata) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (749305ddd) - Bug 1102048 (Part 32, FrameAnimator) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (1df4850d6) - Bug 1102048 (Part 26) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (52550fb88) - Bug 1102048 (Part 03) - Make image/src files comply with the Mozilla Coding Style Guide. r=seth (438e52a57)
36 lines
1009 B
C++
36 lines
1009 B
C++
/* -*- 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/. */
|
|
|
|
#include "ImageMetadata.h"
|
|
|
|
#include "RasterImage.h"
|
|
#include "nsComponentManagerUtils.h"
|
|
#include "nsISupportsPrimitives.h"
|
|
#include "nsXPCOMCID.h"
|
|
|
|
namespace mozilla {
|
|
namespace image {
|
|
|
|
void
|
|
ImageMetadata::SetOnImage(RasterImage* image)
|
|
{
|
|
if (mHotspotX != -1 && mHotspotY != -1) {
|
|
nsCOMPtr<nsISupportsPRUint32> intwrapx =
|
|
do_CreateInstance(NS_SUPPORTS_PRUINT32_CONTRACTID);
|
|
nsCOMPtr<nsISupportsPRUint32> intwrapy =
|
|
do_CreateInstance(NS_SUPPORTS_PRUINT32_CONTRACTID);
|
|
intwrapx->SetData(mHotspotX);
|
|
intwrapy->SetData(mHotspotY);
|
|
image->Set("hotspotX", intwrapx);
|
|
image->Set("hotspotY", intwrapy);
|
|
}
|
|
|
|
image->SetLoopCount(mLoopCount);
|
|
}
|
|
|
|
} // namespace image
|
|
} // namespace mozilla
|