mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
ca069b707a
- Bug 1244228 - fix DrawTargetSkia::OptimizeSourceSurface to still create Skia surfaces for GPU canvases even if creating a GPU surface failed. r=jmuizelaar (fbc02e4dc2) - Bug 1259621 - use AlphaBoxBlur in DrawTargetSkia::DrawSurfaceWithShadow. r=mchang (2c9df0d317) - Bug 1257717 - throw InvalidStateError when CreatePattern fails to snapshot source. r=jrmuizel (95fc5c4101) - Bug 1264246 - verify that SkCanvas::getClipBounds succeeds before using result. r=mchang (20de1e897d) - Bug 1249033 - Enable Subpixel AA Text on Skia for Dwrite and GDI Fonts. r=jrmuizel (f7402a4c9d) - Bug 1250787 - ensure that subpixel text is disabled for Skia's Cairo font host so that font rendering matches our font metrics. r=mchang (4d77670f3f) - Bug 1260454. Disable LCD font smoothing if we have grayscale AA on OS X. r=lsalzman (44bf859df5) - bug 1263685 - Check if paint has a shader before modifying local matrix in DrawTargetSkia::MaskSurface. r=mchang (7937265238) - missing bit for bump version (e3b14b6854) - Bug 1252650 - Add data parameter to NS_CreateServicesFromCategory; r=froydnj (3a3d392669) - Bug 1252650 - char16_t*/char16ptr_t mismatch fixup. (66d4bb1d1b) - Bug 1261382 - Add ReadUntil method to Tokenizer r=mayhemer (3c0b05a359) - Bug 1242963 - nsID stringification helper for logging; r=froydnj (966c73478a) - Bug 1262400 - remove outer pointers from nsCreateInstance* classes; r=erahm (16680909c0) - Bug 1257331 - Use LPWSTR instead of LPVOID to prevent C4477 warning; r=froydnj (456b677e25) - bits of Bug 868814 - Fold mozallo (3580f23f5a) - Bug 1256027 - Cast a few things in varargs to the expected types for MSVC 2015 warning-compatibility. r=froydnj (6e3e5f1763) - Bug 1257262 - Removed invalid nsAString:Assign variant. r=bsmedberg (1f4b303f7a) - bug 761909 - crash reporter plumbing for gonk. r=bsmedberg (e27b276147) - Bug 1223800 - Accept BHR reports from 50% of beta clients. Up from 1%. r=vladan (fb67094a56) - Bug 1241507 - Enable BHR reporting on 100% of the Beta population. r=rvitillo (6b0abc7767) - Bug 1234618. Fix misdetected BHR hangs. r=jchen (4adc7d57a1) - bits of Bug 1128768: Part 2 - Refactor (f75559fe5b) - Bug 1168167 - Mark LazyIdleThread::mIdleObserver with MOZ_UNSAFE_REF. r=froydnj (9750c9686d) - Bug 1250829 - add customized assertions for completion promises to facilitate promise chaining. r=bobbyholley. (66fe29ec68) - Bug 1191063 - Followup comments. r=me DONTBUILD (a627c0bb62) - bits of Bug 1172769 (6ce96f8829) - Bug 1241656 - Lazify AutoTaskDispatcher::mDirectTasks. r=bholley. (48fab6f3fb) - Bug 1202667 - make TaskQueue dispatching slightly more efficient; r=mccr8 (0c9f19fae5) - Bug 1202667 - make TaskQueue task running slightly more efficient; r=mccr8 (cee8821a9f) - Bug 1207031 - Suppress -Wshadow warnings from google-breakpad headers in xpcom/threads. r=froydnj (e2426fcf8a) - Bug 1222101 - Reorder some thread code (r=jld) a=kwierso (4b816f501e) - Bug 1257862 - Allow running things from the delayed work queue during a nested event loop. r=khuey,dvander (066ce6ab76) - Bug 1236789. Part 2 - fix assertions when |aFlags == NS_DISPATCH_TAIL|. r=bholley (d6500cceb0) - Bug 1254218 - Rely on old-configure.in to detect dladdr(). r=njn (8beefa2792) - Bug 1257786 - Proper init of LogModule for Nuwa r=khuey (5170b5250b) - Bug 1236108: Add support for exception-context annotations for content processes to the crash reporter; r=bsmedberg (3441aa3773) - Bug 1256541: Fix incorrect generation of path for child process .extra files when content sandboxing is disabled; r=bsmedberg (ae8ba562ca) - bug 1264242 - Write memory info streams for Windows Minidumps of child processes. r=bsmedberg (245b797566) - Bug 1257486 - Annotate global memory status in the crash reporter for child process; r=bsmedberg (9af844a7dd) - Bug 1257209 - record uptime in crash metadata/pings, r=gfritzsche (bfe0ea8759) - Bug 1241613 - Only pass MOZ_BUILDID to the one source that requires it in toolkit/xre. r=mshal (944abe034f) - Bug 1255655 - Heap-allocate _progname. r=froydnj. (3cce05ccaa) - Bug 828704: Avoid duplicate -foreground argument when launching Firefox on OSX. r=mstange (2e5c12bdda) - bug 1166759 - force annotateCrashReport arguments to be UTF-8. r=bsmedberg (5f2c30676a) - Bug 1261751 - Problems with OS X Sandboxed TempDir and Rules. r=bobowen r=gcp (9ad9272b92)
302 lines
7.7 KiB
C++
302 lines
7.7 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* 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/. */
|
|
|
|
#ifndef nsXPCOM_h__
|
|
#include "nsXPCOM.h"
|
|
#endif
|
|
|
|
#ifndef nsCOMPtr_h__
|
|
#include "nsCOMPtr.h"
|
|
#endif
|
|
|
|
#include "nsComponentManagerUtils.h"
|
|
#include "nsServiceManagerUtils.h"
|
|
|
|
#include "nsIComponentManager.h"
|
|
|
|
#ifndef MOZILLA_INTERNAL_API
|
|
|
|
nsresult
|
|
CallGetService(const nsCID& aCID, const nsIID& aIID, void** aResult)
|
|
{
|
|
nsCOMPtr<nsIServiceManager> servMgr;
|
|
nsresult status = NS_GetServiceManager(getter_AddRefs(servMgr));
|
|
if (servMgr) {
|
|
status = servMgr->GetService(aCID, aIID, aResult);
|
|
}
|
|
return status;
|
|
}
|
|
|
|
nsresult
|
|
CallGetService(const char* aContractID, const nsIID& aIID, void** aResult)
|
|
{
|
|
nsCOMPtr<nsIServiceManager> servMgr;
|
|
nsresult status = NS_GetServiceManager(getter_AddRefs(servMgr));
|
|
if (servMgr) {
|
|
status = servMgr->GetServiceByContractID(aContractID, aIID, aResult);
|
|
}
|
|
return status;
|
|
}
|
|
|
|
#else
|
|
|
|
#include "nsComponentManager.h"
|
|
|
|
nsresult
|
|
CallGetService(const nsCID& aCID, const nsIID& aIID, void** aResult)
|
|
{
|
|
nsComponentManagerImpl* compMgr = nsComponentManagerImpl::gComponentManager;
|
|
if (NS_WARN_IF(!compMgr)) {
|
|
return NS_ERROR_NOT_INITIALIZED;
|
|
}
|
|
|
|
return compMgr->nsComponentManagerImpl::GetService(aCID, aIID, aResult);
|
|
}
|
|
|
|
nsresult
|
|
CallGetService(const char* aContractID, const nsIID& aIID, void** aResult)
|
|
{
|
|
nsComponentManagerImpl* compMgr = nsComponentManagerImpl::gComponentManager;
|
|
if (NS_WARN_IF(!compMgr)) {
|
|
return NS_ERROR_NOT_INITIALIZED;
|
|
}
|
|
|
|
return compMgr->nsComponentManagerImpl::GetServiceByContractID(aContractID,
|
|
aIID,
|
|
aResult);
|
|
}
|
|
|
|
#endif
|
|
|
|
#ifndef MOZILLA_INTERNAL_API
|
|
|
|
nsresult
|
|
CallCreateInstance(const nsCID& aCID, nsISupports* aDelegate,
|
|
const nsIID& aIID, void** aResult)
|
|
{
|
|
nsCOMPtr<nsIComponentManager> compMgr;
|
|
nsresult status = NS_GetComponentManager(getter_AddRefs(compMgr));
|
|
if (compMgr) {
|
|
status = compMgr->CreateInstance(aCID, aDelegate, aIID, aResult);
|
|
}
|
|
return status;
|
|
}
|
|
|
|
nsresult
|
|
CallCreateInstance(const char* aContractID, nsISupports* aDelegate,
|
|
const nsIID& aIID, void** aResult)
|
|
{
|
|
nsCOMPtr<nsIComponentManager> compMgr;
|
|
nsresult status = NS_GetComponentManager(getter_AddRefs(compMgr));
|
|
if (compMgr)
|
|
status = compMgr->CreateInstanceByContractID(aContractID, aDelegate,
|
|
aIID, aResult);
|
|
return status;
|
|
}
|
|
|
|
nsresult
|
|
CallGetClassObject(const nsCID& aCID, const nsIID& aIID, void** aResult)
|
|
{
|
|
nsCOMPtr<nsIComponentManager> compMgr;
|
|
nsresult status = NS_GetComponentManager(getter_AddRefs(compMgr));
|
|
if (compMgr) {
|
|
status = compMgr->GetClassObject(aCID, aIID, aResult);
|
|
}
|
|
return status;
|
|
}
|
|
|
|
nsresult
|
|
CallGetClassObject(const char* aContractID, const nsIID& aIID, void** aResult)
|
|
{
|
|
nsCOMPtr<nsIComponentManager> compMgr;
|
|
nsresult status = NS_GetComponentManager(getter_AddRefs(compMgr));
|
|
if (compMgr)
|
|
status = compMgr->GetClassObjectByContractID(aContractID, aIID,
|
|
aResult);
|
|
return status;
|
|
}
|
|
|
|
#else
|
|
|
|
#include "nsComponentManager.h"
|
|
|
|
nsresult
|
|
CallCreateInstance(const nsCID& aCID, nsISupports* aDelegate,
|
|
const nsIID& aIID, void** aResult)
|
|
{
|
|
nsComponentManagerImpl* compMgr = nsComponentManagerImpl::gComponentManager;
|
|
if (NS_WARN_IF(!compMgr)) {
|
|
return NS_ERROR_NOT_INITIALIZED;
|
|
}
|
|
|
|
return compMgr->nsComponentManagerImpl::CreateInstance(aCID, aDelegate, aIID,
|
|
aResult);
|
|
}
|
|
|
|
nsresult
|
|
CallCreateInstance(const char* aContractID, nsISupports* aDelegate,
|
|
const nsIID& aIID, void** aResult)
|
|
{
|
|
nsComponentManagerImpl* compMgr = nsComponentManagerImpl::gComponentManager;
|
|
if (NS_WARN_IF(!compMgr)) {
|
|
return NS_ERROR_NOT_INITIALIZED;
|
|
}
|
|
|
|
return
|
|
compMgr->nsComponentManagerImpl::CreateInstanceByContractID(aContractID,
|
|
aDelegate, aIID,
|
|
aResult);
|
|
}
|
|
|
|
nsresult
|
|
CallGetClassObject(const nsCID& aCID, const nsIID& aIID, void** aResult)
|
|
{
|
|
nsComponentManagerImpl* compMgr = nsComponentManagerImpl::gComponentManager;
|
|
if (NS_WARN_IF(!compMgr)) {
|
|
return NS_ERROR_NOT_INITIALIZED;
|
|
}
|
|
|
|
return compMgr->nsComponentManagerImpl::GetClassObject(aCID, aIID, aResult);
|
|
}
|
|
|
|
nsresult
|
|
CallGetClassObject(const char* aContractID, const nsIID& aIID, void** aResult)
|
|
{
|
|
nsComponentManagerImpl* compMgr = nsComponentManagerImpl::gComponentManager;
|
|
if (NS_WARN_IF(!compMgr)) {
|
|
return NS_ERROR_NOT_INITIALIZED;
|
|
}
|
|
|
|
return
|
|
compMgr->nsComponentManagerImpl::GetClassObjectByContractID(aContractID,
|
|
aIID, aResult);
|
|
}
|
|
|
|
#endif
|
|
|
|
nsresult
|
|
nsCreateInstanceByCID::operator()(const nsIID& aIID, void** aInstancePtr) const
|
|
{
|
|
nsresult status = CallCreateInstance(mCID, nullptr, aIID, aInstancePtr);
|
|
if (NS_FAILED(status)) {
|
|
*aInstancePtr = 0;
|
|
}
|
|
if (mErrorPtr) {
|
|
*mErrorPtr = status;
|
|
}
|
|
return status;
|
|
}
|
|
|
|
nsresult
|
|
nsCreateInstanceByContractID::operator()(const nsIID& aIID,
|
|
void** aInstancePtr) const
|
|
{
|
|
nsresult status = CallCreateInstance(mContractID, nullptr, aIID, aInstancePtr);
|
|
if (NS_FAILED(status)) {
|
|
*aInstancePtr = 0;
|
|
}
|
|
if (mErrorPtr) {
|
|
*mErrorPtr = status;
|
|
}
|
|
return status;
|
|
}
|
|
|
|
nsresult
|
|
nsCreateInstanceFromFactory::operator()(const nsIID& aIID,
|
|
void** aInstancePtr) const
|
|
{
|
|
nsresult status = mFactory->CreateInstance(nullptr, aIID, aInstancePtr);
|
|
if (NS_FAILED(status)) {
|
|
*aInstancePtr = 0;
|
|
}
|
|
if (mErrorPtr) {
|
|
*mErrorPtr = status;
|
|
}
|
|
return status;
|
|
}
|
|
|
|
|
|
nsresult
|
|
nsGetClassObjectByCID::operator()(const nsIID& aIID, void** aInstancePtr) const
|
|
{
|
|
nsresult status = CallGetClassObject(mCID, aIID, aInstancePtr);
|
|
if (NS_FAILED(status)) {
|
|
*aInstancePtr = 0;
|
|
}
|
|
if (mErrorPtr) {
|
|
*mErrorPtr = status;
|
|
}
|
|
return status;
|
|
}
|
|
|
|
nsresult
|
|
nsGetClassObjectByContractID::operator()(const nsIID& aIID,
|
|
void** aInstancePtr) const
|
|
{
|
|
nsresult status = CallGetClassObject(mContractID, aIID, aInstancePtr);
|
|
if (NS_FAILED(status)) {
|
|
*aInstancePtr = 0;
|
|
}
|
|
if (mErrorPtr) {
|
|
*mErrorPtr = status;
|
|
}
|
|
return status;
|
|
}
|
|
|
|
|
|
nsresult
|
|
nsGetServiceByCID::operator()(const nsIID& aIID, void** aInstancePtr) const
|
|
{
|
|
nsresult status = CallGetService(mCID, aIID, aInstancePtr);
|
|
if (NS_FAILED(status)) {
|
|
*aInstancePtr = 0;
|
|
}
|
|
|
|
return status;
|
|
}
|
|
|
|
nsresult
|
|
nsGetServiceByCIDWithError::operator()(const nsIID& aIID,
|
|
void** aInstancePtr) const
|
|
{
|
|
nsresult status = CallGetService(mCID, aIID, aInstancePtr);
|
|
if (NS_FAILED(status)) {
|
|
*aInstancePtr = 0;
|
|
}
|
|
|
|
if (mErrorPtr) {
|
|
*mErrorPtr = status;
|
|
}
|
|
return status;
|
|
}
|
|
|
|
nsresult
|
|
nsGetServiceByContractID::operator()(const nsIID& aIID,
|
|
void** aInstancePtr) const
|
|
{
|
|
nsresult status = CallGetService(mContractID, aIID, aInstancePtr);
|
|
if (NS_FAILED(status)) {
|
|
*aInstancePtr = 0;
|
|
}
|
|
|
|
return status;
|
|
}
|
|
|
|
nsresult
|
|
nsGetServiceByContractIDWithError::operator()(const nsIID& aIID,
|
|
void** aInstancePtr) const
|
|
{
|
|
nsresult status = CallGetService(mContractID, aIID, aInstancePtr);
|
|
if (NS_FAILED(status)) {
|
|
*aInstancePtr = 0;
|
|
}
|
|
|
|
if (mErrorPtr) {
|
|
*mErrorPtr = status;
|
|
}
|
|
return status;
|
|
}
|