mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
MozReview-Commit-ID: JwHh4bzxuTR --HG-- extra : rebase_source : 5f5e37517aa80c2e7b5933962178d761074886e7
This commit is contained in:
parent
4629cdb598
commit
fa45a3c670
@ -1765,7 +1765,7 @@ MaybeShutdownAccService(uint32_t aFormerConsumer)
|
||||
nsAccessibilityService* accService =
|
||||
nsAccessibilityService::gAccessibilityService;
|
||||
|
||||
if (!accService || accService->IsShutdown()) {
|
||||
if (!accService || nsAccessibilityService::IsShutdown()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1863,7 +1863,7 @@ PrefChanged(const char* aPref, void* aClosure)
|
||||
if (ReadPlatformDisabledState() == ePlatformIsDisabled) {
|
||||
// Force shut down accessibility.
|
||||
nsAccessibilityService* accService = nsAccessibilityService::gAccessibilityService;
|
||||
if (accService && !accService->IsShutdown()) {
|
||||
if (accService && !nsAccessibilityService::IsShutdown()) {
|
||||
accService->Shutdown();
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ xpcAccessibilityService::AddRef(void)
|
||||
{
|
||||
MOZ_ASSERT_TYPE_OK_FOR_REFCOUNTING(xpcAccessibilityService)
|
||||
MOZ_ASSERT(int32_t(mRefCnt) >= 0, "illegal refcnt");
|
||||
if (!mRefCnt.isThreadSafe)
|
||||
if (!nsAutoRefCnt::isThreadSafe)
|
||||
NS_ASSERT_OWNINGTHREAD(xpcAccessibilityService);
|
||||
nsrefcnt count = ++mRefCnt;
|
||||
NS_LOG_ADDREF(this, count, "xpcAccessibilityService", sizeof(*this));
|
||||
@ -63,7 +63,7 @@ xpcAccessibilityService::Release(void)
|
||||
{
|
||||
MOZ_ASSERT(int32_t(mRefCnt) > 0, "dup release");
|
||||
|
||||
if (!mRefCnt.isThreadSafe) {
|
||||
if (!nsAutoRefCnt::isThreadSafe) {
|
||||
NS_ASSERT_OWNINGTHREAD(xpcAccessibilityService);
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ xpcAccessibilityService::Release(void)
|
||||
NS_LOG_RELEASE(this, count, "xpcAccessibilityService");
|
||||
|
||||
if (count == 0) {
|
||||
if (!mRefCnt.isThreadSafe) {
|
||||
if (!nsAutoRefCnt::isThreadSafe) {
|
||||
NS_ASSERT_OWNINGTHREAD(xpcAccessibilityService);
|
||||
}
|
||||
|
||||
|
@ -184,7 +184,7 @@ Link::TryDNSPrefetchOrPreconnectOrPrefetchOrPreloadOrPrerender()
|
||||
nsCOMPtr<nsIURI> uri(GetURI());
|
||||
if (uri && mElement->OwnerDoc()) {
|
||||
mElement->OwnerDoc()->MaybePreconnect(uri,
|
||||
mElement->AttrValueToCORSMode(mElement->GetParsedAttr(nsGkAtoms::crossorigin)));
|
||||
Element::AttrValueToCORSMode(mElement->GetParsedAttr(nsGkAtoms::crossorigin)));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -329,7 +329,7 @@ nsDOMWindowUtils::GetPhysicalMillimeterInCSSPixels(float* aPhysicalMillimeter)
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
*aPhysicalMillimeter = presContext->AppUnitsToFloatCSSPixels(
|
||||
*aPhysicalMillimeter = nsPresContext::AppUnitsToFloatCSSPixels(
|
||||
presContext->PhysicalMillimetersToAppUnits(1));
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -6149,7 +6149,7 @@ nsGlobalWindowOuter::EnterModalState()
|
||||
nsContentUtils::ContentIsCrossDocDescendantOf(mDoc, activeShell->GetDocument()))) {
|
||||
EventStateManager::ClearGlobalActiveContent(activeESM);
|
||||
|
||||
activeShell->SetCapturingContent(nullptr, 0);
|
||||
nsIPresShell::SetCapturingContent(nullptr, 0);
|
||||
|
||||
if (activeShell) {
|
||||
RefPtr<nsFrameSelection> frameSelection = activeShell->FrameSelection();
|
||||
|
@ -4042,7 +4042,7 @@ CanvasRenderingContext2D::SetFontInternal(const nsAString& aFont,
|
||||
// pixels to CSS pixels, to adjust for the difference in expectations from
|
||||
// other nsFontMetrics clients.
|
||||
resizedFont.size =
|
||||
(fontStyle->mSize * c->AppUnitsPerDevPixel()) / c->AppUnitsPerCSSPixel();
|
||||
(fontStyle->mSize * c->AppUnitsPerDevPixel()) / nsPresContext::AppUnitsPerCSSPixel();
|
||||
|
||||
nsFontMetrics::Params params;
|
||||
params.language = fontStyle->mLanguage;
|
||||
|
@ -1157,7 +1157,7 @@ protected:
|
||||
pc = ps->GetPresContext();
|
||||
if (!pc) goto FINISH;
|
||||
devPixel = pc->AppUnitsPerDevPixel();
|
||||
cssPixel = pc->AppUnitsPerCSSPixel();
|
||||
cssPixel = nsPresContext::AppUnitsPerCSSPixel();
|
||||
|
||||
FINISH:
|
||||
if (aPerDevPixel)
|
||||
|
@ -233,7 +233,7 @@ ImageBitmapRenderingContext::GetCanvasLayer(nsDisplayListBuilder* aBuilder,
|
||||
|
||||
RefPtr<ImageContainer> imageContainer = imageLayer->GetContainer();
|
||||
if (!imageContainer) {
|
||||
imageContainer = aManager->CreateImageContainer();
|
||||
imageContainer = LayerManager::CreateImageContainer();
|
||||
imageLayer->SetContainer(imageContainer);
|
||||
}
|
||||
|
||||
|
@ -209,7 +209,7 @@ WebGLRenderbuffer::RenderbufferStorage(const char* funcName, uint32_t samples,
|
||||
|
||||
const GLenum error = DoRenderbufferStorage(samples, usage, width, height);
|
||||
if (error) {
|
||||
const char* errorName = mContext->ErrorName(error);
|
||||
const char* errorName = WebGLContext::ErrorName(error);
|
||||
mContext->GenerateWarning("%s generated error %s", funcName, errorName);
|
||||
return;
|
||||
}
|
||||
|
@ -451,7 +451,7 @@ bool
|
||||
InputType::ParseTime(const nsAString& aValue, uint32_t* aResult) const
|
||||
{
|
||||
// see comment in InputType::ParseDate().
|
||||
return mInputElement->ParseTime(aValue, aResult);
|
||||
return mozilla::dom::HTMLInputElement::ParseTime(aValue, aResult);
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -9965,7 +9965,7 @@ SerializeStructuredCloneFiles(
|
||||
MOZ_ASSERT(fileId > 0);
|
||||
|
||||
nsCOMPtr<nsIFile> nativeFile =
|
||||
fileManager->GetCheckedFileForId(directory, fileId);
|
||||
mozilla::dom::indexedDB::FileManager::GetCheckedFileForId(directory, fileId);
|
||||
if (NS_WARN_IF(!nativeFile)) {
|
||||
IDB_REPORT_INTERNAL_ERR();
|
||||
return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
|
||||
@ -11507,7 +11507,7 @@ UpdateRefcountFunction::Reset()
|
||||
}
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIFile> file = aFileManager->GetFileForId(mDirectory, aId);
|
||||
nsCOMPtr<nsIFile> file = FileManager::GetFileForId(mDirectory, aId);
|
||||
if (NS_WARN_IF(!file)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
@ -11537,7 +11537,7 @@ UpdateRefcountFunction::Reset()
|
||||
fileSize);
|
||||
}
|
||||
|
||||
file = aFileManager->GetFileForId(mJournalDirectory, aId);
|
||||
file = FileManager::GetFileForId(mJournalDirectory, aId);
|
||||
if (NS_WARN_IF(!file)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
@ -11665,7 +11665,7 @@ UpdateRefcountFunction::CreateJournals()
|
||||
int64_t id = mJournalsToCreateBeforeCommit[i];
|
||||
|
||||
nsCOMPtr<nsIFile> file =
|
||||
mFileManager->GetFileForId(journalDirectory, id);
|
||||
FileManager::GetFileForId(journalDirectory, id);
|
||||
if (NS_WARN_IF(!file)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
@ -11698,7 +11698,7 @@ UpdateRefcountFunction::RemoveJournals(const nsTArray<int64_t>& aJournals)
|
||||
|
||||
for (uint32_t index = 0; index < aJournals.Length(); index++) {
|
||||
nsCOMPtr<nsIFile> file =
|
||||
mFileManager->GetFileForId(journalDirectory, aJournals[index]);
|
||||
FileManager::GetFileForId(journalDirectory, aJournals[index]);
|
||||
if (NS_WARN_IF(!file)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
@ -263,7 +263,7 @@ FileInfo::GetFileForFileInfo(FileInfo* aFileInfo)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIFile> file = fileManager->GetFileForId(directory,
|
||||
nsCOMPtr<nsIFile> file = FileManager::GetFileForId(directory,
|
||||
aFileInfo->Id());
|
||||
if (NS_WARN_IF(!file)) {
|
||||
return nullptr;
|
||||
|
@ -31,7 +31,7 @@ NS_IMETHODIMP
|
||||
ColorPickerParent::ColorPickerShownCallback::Done(const nsAString& aColor)
|
||||
{
|
||||
if (mColorPickerParent) {
|
||||
Unused << mColorPickerParent->Send__delete__(mColorPickerParent,
|
||||
Unused << ColorPickerParent::Send__delete__(mColorPickerParent,
|
||||
nsString(aColor));
|
||||
}
|
||||
return NS_OK;
|
||||
|
@ -1724,7 +1724,7 @@ TabChild::HandleRealMouseButtonEvent(const WidgetMouseEvent& aEvent,
|
||||
|
||||
InputAPZContext context(aGuid, aInputBlockId, nsEventStatus_eIgnore);
|
||||
if (pendingLayerization) {
|
||||
context.SetPendingLayerization();
|
||||
InputAPZContext::SetPendingLayerization();
|
||||
}
|
||||
|
||||
WidgetMouseEvent localEvent(aEvent);
|
||||
|
@ -74,22 +74,22 @@ public:
|
||||
~CamerasSingleton();
|
||||
|
||||
static OffTheBooksMutex& Mutex() {
|
||||
return gTheInstance.get()->mCamerasMutex;
|
||||
return Singleton<mozilla::camera::CamerasSingleton>::get()->mCamerasMutex;
|
||||
}
|
||||
|
||||
static CamerasChild*& Child() {
|
||||
Mutex().AssertCurrentThreadOwns();
|
||||
return gTheInstance.get()->mCameras;
|
||||
return Singleton<mozilla::camera::CamerasSingleton>::get()->mCameras;
|
||||
}
|
||||
|
||||
static nsCOMPtr<nsIThread>& Thread() {
|
||||
Mutex().AssertCurrentThreadOwns();
|
||||
return gTheInstance.get()->mCamerasChildThread;
|
||||
return Singleton<mozilla::camera::CamerasSingleton>::get()->mCamerasChildThread;
|
||||
}
|
||||
|
||||
static nsCOMPtr<nsIThread>& FakeDeviceChangeEventThread() {
|
||||
Mutex().AssertCurrentThreadOwns();
|
||||
return gTheInstance.get()->mFakeDeviceChangeEventThread;
|
||||
return Singleton<mozilla::camera::CamerasSingleton>::get()->mFakeDeviceChangeEventThread;
|
||||
}
|
||||
|
||||
static bool InShutdown() {
|
||||
|
@ -72,7 +72,7 @@ class OriginKeyStore : public nsISupports
|
||||
OriginKey* key;
|
||||
if (!mKeys.Get(principalString, &key)) {
|
||||
nsCString salt; // Make a new one
|
||||
nsresult rv = GenerateRandomName(salt, key->EncodedLength);
|
||||
nsresult rv = GenerateRandomName(salt, OriginKey::EncodedLength);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ int HRTFPanner::calculateDesiredAzimuthIndexAndBlend(double azimuth, double& azi
|
||||
HRTFDatabase* database = m_databaseLoader->database();
|
||||
MOZ_ASSERT(database);
|
||||
|
||||
int numberOfAzimuths = database->numberOfAzimuths();
|
||||
int numberOfAzimuths = HRTFDatabase::numberOfAzimuths();
|
||||
const double angleBetweenAzimuths = 360.0 / numberOfAzimuths;
|
||||
|
||||
// Calculate the azimuth index and the blend (0 -> 1) for interpolation.
|
||||
|
@ -117,7 +117,7 @@ SpeechSynthesisRequestChild::RecvOnEnd(const bool& aIsError,
|
||||
mTask->DispatchEndImpl(aElapsedTime, aCharIndex);
|
||||
}
|
||||
|
||||
actor->Send__delete__(actor);
|
||||
SpeechSynthesisRequestChild::Send__delete__(actor);
|
||||
|
||||
return IPC_OK();
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ PresentationConnectionList::FindConnectionById(
|
||||
}
|
||||
}
|
||||
|
||||
return mConnections.NoIndex;
|
||||
return ConnectionArray::NoIndex;
|
||||
}
|
||||
|
||||
void
|
||||
@ -106,7 +106,7 @@ PresentationConnectionList::NotifyStateChange(const nsAString& aSessionId,
|
||||
}
|
||||
|
||||
bool connectionFound =
|
||||
FindConnectionById(aSessionId) != mConnections.NoIndex ? true : false;
|
||||
FindConnectionById(aSessionId) != ConnectionArray::NoIndex ? true : false;
|
||||
|
||||
PresentationConnectionListBinding::ClearCachedConnectionsValue(this);
|
||||
switch (aConnection->State()) {
|
||||
|
@ -28,7 +28,7 @@ WebBrowserPersistRemoteDocument
|
||||
WebBrowserPersistRemoteDocument::~WebBrowserPersistRemoteDocument()
|
||||
{
|
||||
if (mActor) {
|
||||
Unused << mActor->Send__delete__(mActor);
|
||||
Unused << WebBrowserPersistDocumentParent::Send__delete__(mActor);
|
||||
// That will call mActor->ActorDestroy, which calls this->ActorDestroy
|
||||
// (whether or not the IPC send succeeds).
|
||||
}
|
||||
|
@ -335,7 +335,7 @@ nsBindingManager::RemoveFromAttachedQueue(nsXBLBinding* aBinding)
|
||||
// Don't remove items here as that could mess up an executing
|
||||
// ProcessAttachedQueue. Instead, null the entry in the queue.
|
||||
size_t index = mAttachedStack.IndexOf(aBinding);
|
||||
if (index != mAttachedStack.NoIndex) {
|
||||
if (index != nsBindingList::NoIndex) {
|
||||
mAttachedStack[index] = nullptr;
|
||||
}
|
||||
}
|
||||
|
@ -3346,7 +3346,7 @@ XULDocument::OverlayForwardReference::Resolve()
|
||||
return eResolve_Error;
|
||||
}
|
||||
|
||||
rv = mDocument->InsertElement(root, mOverlay, notify);
|
||||
rv = XULDocument::InsertElement(root, mOverlay, notify);
|
||||
if (NS_FAILED(rv)) return eResolve_Error;
|
||||
|
||||
target = mOverlay;
|
||||
|
@ -215,7 +215,7 @@ HTMLEditor::CreateAnonymousElement(nsAtom* aTag,
|
||||
if (ServoStyleSet* styleSet = ps->StyleSet()->GetAsServo()) {
|
||||
// Sometimes editor likes to append anonymous content to elements
|
||||
// in display:none subtrees, so avoid styling in those cases.
|
||||
if (styleSet->MayTraverseFrom(newContent)) {
|
||||
if (ServoStyleSet::MayTraverseFrom(newContent)) {
|
||||
styleSet->StyleNewSubtree(newContent);
|
||||
}
|
||||
}
|
||||
|
@ -1745,7 +1745,7 @@ HTMLEditRules::WillInsertBreak(Selection& aSelection,
|
||||
MOZ_ASSERT(atStartOfSelection.IsSetAndValid());
|
||||
|
||||
blockParent =
|
||||
mHTMLEditor->GetBlock(*atStartOfSelection.GetContainer(), host);
|
||||
HTMLEditor::GetBlock(*atStartOfSelection.GetContainer(), host);
|
||||
if (NS_WARN_IF(!blockParent)) {
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
@ -2704,8 +2704,8 @@ HTMLEditRules::WillDeleteSelection(Selection* aSelection,
|
||||
|
||||
// Figure out block parents
|
||||
NS_ENSURE_STATE(mHTMLEditor);
|
||||
nsCOMPtr<Element> leftParent = mHTMLEditor->GetBlock(*startNode);
|
||||
nsCOMPtr<Element> rightParent = mHTMLEditor->GetBlock(*endNode);
|
||||
nsCOMPtr<Element> leftParent = HTMLEditor::GetBlock(*startNode);
|
||||
nsCOMPtr<Element> rightParent = HTMLEditor::GetBlock(*endNode);
|
||||
|
||||
// Are endpoint block parents the same? Use default deletion
|
||||
if (leftParent && leftParent == rightParent) {
|
||||
|
@ -1497,7 +1497,7 @@ nsresult mozInlineSpellChecker::DoSpellCheck(mozInlineSpellWordUtil& aWordUtil,
|
||||
|
||||
// check spelling and add to selection if misspelled
|
||||
bool isMisspelled;
|
||||
aWordUtil.NormalizeWord(wordText);
|
||||
mozInlineSpellWordUtil::NormalizeWord(wordText);
|
||||
nsresult rv = mSpellCheck->CheckCurrentWordNoSuggest(wordText,
|
||||
&isMisspelled);
|
||||
if (NS_FAILED(rv))
|
||||
|
@ -53,7 +53,7 @@ mozSpellChecker::~mozSpellChecker()
|
||||
|
||||
if (mEngine) {
|
||||
MOZ_ASSERT(XRE_IsContentProcess());
|
||||
mEngine->Send__delete__(mEngine);
|
||||
RemoteSpellcheckEngineChild::Send__delete__(mEngine);
|
||||
MOZ_ASSERT(!mEngine);
|
||||
}
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ GLReadTexImageHelper::DidGLErrorOccur(const char* str)
|
||||
GLenum error = mGL->fGetError();
|
||||
if (error != LOCAL_GL_NO_ERROR) {
|
||||
printf_stderr("GL ERROR: %s (0x%04x) %s\n",
|
||||
mGL->GLErrorToString(error), error, str);
|
||||
GLContext::GLErrorToString(error), error, str);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ SharedDIB::IsValid()
|
||||
if (!mShMem)
|
||||
return false;
|
||||
|
||||
return mShMem->IsHandleValid(mShMem->handle());
|
||||
return base::SharedMemory::IsHandleValid(mShMem->handle());
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
@ -138,7 +138,7 @@ nsFontMetrics::nsFontMetrics(const nsFont& aFont, const Params& aParams,
|
||||
aFont.AddFontVariationsToStyle(&style);
|
||||
|
||||
gfxFloat devToCssSize = gfxFloat(mP2A) /
|
||||
gfxFloat(mDeviceContext->AppUnitsPerCSSPixel());
|
||||
gfxFloat(nsDeviceContext::AppUnitsPerCSSPixel());
|
||||
mFontGroup = gfxPlatform::GetPlatform()->
|
||||
CreateFontGroup(aFont.fontlist, &style, aParams.textPerf,
|
||||
aParams.userFontSet, devToCssSize);
|
||||
|
@ -274,7 +274,7 @@ CleanupIPCStream(IPCStream& aValue, bool aConsumedByIPC, bool aDelayedStart)
|
||||
fdSetActor->ForgetFileDescriptors(fds);
|
||||
|
||||
if (!aConsumedByIPC) {
|
||||
Unused << fdSetActor->Send__delete__(fdSetActor);
|
||||
Unused << FileDescriptorSetChild::Send__delete__(fdSetActor);
|
||||
}
|
||||
|
||||
} else if (streamWithFds.optionalFds().type() ==
|
||||
@ -292,7 +292,7 @@ CleanupIPCStream(IPCStream& aValue, bool aConsumedByIPC, bool aDelayedStart)
|
||||
fdSetActor->ForgetFileDescriptors(fds);
|
||||
|
||||
if (!aConsumedByIPC) {
|
||||
Unused << fdSetActor->Send__delete__(fdSetActor);
|
||||
Unused << FileDescriptorSetParent::Send__delete__(fdSetActor);
|
||||
}
|
||||
}
|
||||
|
||||
@ -400,7 +400,7 @@ DeserializeIPCStream(const IPCStream& aValue)
|
||||
fdSetActor->ForgetFileDescriptors(fds);
|
||||
MOZ_ASSERT(!fds.IsEmpty());
|
||||
|
||||
if (!fdSetActor->Send__delete__(fdSetActor)) {
|
||||
if (!FileDescriptorSetParent::Send__delete__(fdSetActor)) {
|
||||
// child process is gone, warn and allow actor to clean up normally
|
||||
NS_WARNING("Failed to delete fd set actor.");
|
||||
}
|
||||
@ -414,7 +414,7 @@ DeserializeIPCStream(const IPCStream& aValue)
|
||||
fdSetActor->ForgetFileDescriptors(fds);
|
||||
MOZ_ASSERT(!fds.IsEmpty());
|
||||
|
||||
Unused << fdSetActor->Send__delete__(fdSetActor);
|
||||
Unused << FileDescriptorSetChild::Send__delete__(fdSetActor);
|
||||
}
|
||||
|
||||
return InputStreamHelper::DeserializeInputStream(streamWithFds.stream(), fds);
|
||||
|
@ -1305,7 +1305,7 @@ FracNumberToCString(JSContext* cx, ToCStringBuf* cbuf, double d, int base = 10)
|
||||
*/
|
||||
const double_conversion::DoubleToStringConverter& converter
|
||||
= double_conversion::DoubleToStringConverter::EcmaScriptConverter();
|
||||
double_conversion::StringBuilder builder(cbuf->sbuf, cbuf->sbufSize);
|
||||
double_conversion::StringBuilder builder(cbuf->sbuf, js::ToCStringBuf::sbufSize);
|
||||
converter.ToShortest(d, &builder);
|
||||
numStr = builder.Finalize();
|
||||
} else {
|
||||
|
@ -94,7 +94,7 @@ pm_canMeasureSomething(JSContext* cx, unsigned argc, Value* vp)
|
||||
if (!p)
|
||||
return false;
|
||||
|
||||
args.rval().setBoolean(p->canMeasureSomething());
|
||||
args.rval().setBoolean(PerfMeasurement::canMeasureSomething());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -598,7 +598,7 @@ JSContext::requestInterrupt(InterruptMode mode)
|
||||
// not regularly polled. Wake ilooping Ion code, irregexp JIT code and
|
||||
// Atomics.wait()
|
||||
interruptRegExpJit_ = true;
|
||||
fx.lock();
|
||||
FutexThread::lock();
|
||||
if (fx.isWaiting())
|
||||
fx.wake(FutexThread::WakeForJSInterrupt);
|
||||
fx.unlock();
|
||||
|
@ -156,7 +156,7 @@ class TypedArrayObject : public NativeObject
|
||||
bool hasInlineElements() const;
|
||||
void setInlineElements();
|
||||
uint8_t* elementsRaw() const {
|
||||
return *(uint8_t **)((((char *)this) + this->dataOffset()));
|
||||
return *(uint8_t **)((((char *)this) + js::TypedArrayObject::dataOffset()));
|
||||
}
|
||||
uint8_t* elements() const {
|
||||
assertZeroLengthArrayData();
|
||||
|
@ -126,7 +126,7 @@ protected:
|
||||
|
||||
MonitorAutoLock mal(reader.mMonitor);
|
||||
|
||||
while (!reader.mReaderInitialized && reader.sInitialized) {
|
||||
while (!reader.mReaderInitialized && URLPreloader::sInitialized) {
|
||||
mal.Wait();
|
||||
}
|
||||
}
|
||||
|
@ -958,7 +958,7 @@ JSXrayTraits::construct(JSContext* cx, HandleObject wrapper,
|
||||
if (!holder)
|
||||
return false;
|
||||
|
||||
if (self.getProtoKey(holder) == JSProto_Function) {
|
||||
if (xpc::JSXrayTraits::getProtoKey(holder) == JSProto_Function) {
|
||||
JSProtoKey standardConstructor = constructorFor(holder);
|
||||
if (standardConstructor == JSProto_Null)
|
||||
return baseInstance.construct(cx, wrapper, args);
|
||||
|
@ -278,7 +278,7 @@ public:
|
||||
{
|
||||
JSXrayTraits& self = JSXrayTraits::singleton;
|
||||
JS::RootedObject holder(cx, self.ensureHolder(cx, wrapper));
|
||||
if (self.getProtoKey(holder) == JSProto_Function)
|
||||
if (xpc::JSXrayTraits::getProtoKey(holder) == JSProto_Function)
|
||||
return baseInstance.call(cx, wrapper, args);
|
||||
|
||||
JS::RootedValue v(cx, JS::ObjectValue(*wrapper));
|
||||
|
@ -53,10 +53,10 @@ public:
|
||||
nsEventStatus rv = nsEventStatus_eIgnore;
|
||||
|
||||
if (NS_SUCCEEDED(aContext->mManager->PressCaret(aPoint, aEventClass))) {
|
||||
aContext->SetState(aContext->PressCaretState());
|
||||
aContext->SetState(AccessibleCaretEventHub::PressCaretState());
|
||||
rv = nsEventStatus_eConsumeNoDefault;
|
||||
} else {
|
||||
aContext->SetState(aContext->PressNoCaretState());
|
||||
aContext->SetState(AccessibleCaretEventHub::PressNoCaretState());
|
||||
}
|
||||
|
||||
aContext->mPressPoint = aPoint;
|
||||
@ -69,7 +69,7 @@ public:
|
||||
void OnScrollStart(AccessibleCaretEventHub* aContext) override
|
||||
{
|
||||
aContext->mManager->OnScrollStart();
|
||||
aContext->SetState(aContext->ScrollState());
|
||||
aContext->SetState(AccessibleCaretEventHub::ScrollState());
|
||||
}
|
||||
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
@ -122,7 +122,7 @@ public:
|
||||
{
|
||||
if (aContext->MoveDistanceIsLarge(aPoint)) {
|
||||
if (NS_SUCCEEDED(aContext->mManager->DragCaret(aPoint))) {
|
||||
aContext->SetState(aContext->DragCaretState());
|
||||
aContext->SetState(AccessibleCaretEventHub::DragCaretState());
|
||||
}
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ public:
|
||||
{
|
||||
aContext->mManager->ReleaseCaret();
|
||||
aContext->mManager->TapCaret(aContext->mPressPoint);
|
||||
aContext->SetState(aContext->NoActionState());
|
||||
aContext->SetState(AccessibleCaretEventHub::NoActionState());
|
||||
|
||||
return nsEventStatus_eConsumeNoDefault;
|
||||
}
|
||||
@ -168,7 +168,7 @@ public:
|
||||
nsEventStatus OnRelease(AccessibleCaretEventHub* aContext) override
|
||||
{
|
||||
aContext->mManager->ReleaseCaret();
|
||||
aContext->SetState(aContext->NoActionState());
|
||||
aContext->SetState(AccessibleCaretEventHub::NoActionState());
|
||||
|
||||
return nsEventStatus_eConsumeNoDefault;
|
||||
}
|
||||
@ -187,7 +187,7 @@ public:
|
||||
const nsPoint& aPoint) override
|
||||
{
|
||||
if (aContext->MoveDistanceIsLarge(aPoint)) {
|
||||
aContext->SetState(aContext->NoActionState());
|
||||
aContext->SetState(AccessibleCaretEventHub::NoActionState());
|
||||
}
|
||||
|
||||
return nsEventStatus_eIgnore;
|
||||
@ -195,7 +195,7 @@ public:
|
||||
|
||||
nsEventStatus OnRelease(AccessibleCaretEventHub* aContext) override
|
||||
{
|
||||
aContext->SetState(aContext->NoActionState());
|
||||
aContext->SetState(AccessibleCaretEventHub::NoActionState());
|
||||
|
||||
return nsEventStatus_eIgnore;
|
||||
}
|
||||
@ -204,7 +204,7 @@ public:
|
||||
nsEventStatus OnLongTap(AccessibleCaretEventHub* aContext,
|
||||
const nsPoint& aPoint) override
|
||||
{
|
||||
aContext->SetState(aContext->LongTapState());
|
||||
aContext->SetState(AccessibleCaretEventHub::LongTapState());
|
||||
|
||||
return aContext->GetState()->OnLongTap(aContext, aPoint);
|
||||
}
|
||||
@ -213,7 +213,7 @@ public:
|
||||
void OnScrollStart(AccessibleCaretEventHub* aContext) override
|
||||
{
|
||||
aContext->mManager->OnScrollStart();
|
||||
aContext->SetState(aContext->ScrollState());
|
||||
aContext->SetState(AccessibleCaretEventHub::ScrollState());
|
||||
}
|
||||
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
@ -222,7 +222,7 @@ public:
|
||||
{
|
||||
aContext->mManager->OnBlur();
|
||||
if (aIsLeavingDocument) {
|
||||
aContext->SetState(aContext->NoActionState());
|
||||
aContext->SetState(AccessibleCaretEventHub::NoActionState());
|
||||
}
|
||||
}
|
||||
|
||||
@ -265,7 +265,7 @@ public:
|
||||
void OnScrollEnd(AccessibleCaretEventHub* aContext) override
|
||||
{
|
||||
aContext->mManager->OnScrollEnd();
|
||||
aContext->SetState(aContext->NoActionState());
|
||||
aContext->SetState(AccessibleCaretEventHub::NoActionState());
|
||||
}
|
||||
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
@ -280,7 +280,7 @@ public:
|
||||
{
|
||||
aContext->mManager->OnBlur();
|
||||
if (aIsLeavingDocument) {
|
||||
aContext->SetState(aContext->NoActionState());
|
||||
aContext->SetState(AccessibleCaretEventHub::NoActionState());
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -308,7 +308,7 @@ public:
|
||||
|
||||
nsEventStatus OnRelease(AccessibleCaretEventHub* aContext) override
|
||||
{
|
||||
aContext->SetState(aContext->NoActionState());
|
||||
aContext->SetState(AccessibleCaretEventHub::NoActionState());
|
||||
|
||||
// Do not consume the release since the press is not consumed in
|
||||
// PressNoCaretState either.
|
||||
@ -319,7 +319,7 @@ public:
|
||||
void OnScrollStart(AccessibleCaretEventHub* aContext) override
|
||||
{
|
||||
aContext->mManager->OnScrollStart();
|
||||
aContext->SetState(aContext->ScrollState());
|
||||
aContext->SetState(AccessibleCaretEventHub::ScrollState());
|
||||
}
|
||||
|
||||
MOZ_CAN_RUN_SCRIPT
|
||||
|
@ -8212,7 +8212,7 @@ PresShell::GetCurrentItemAndPositionForElement(nsIDOMElement *aCurrentEl,
|
||||
treeBox->GetFirstVisibleRow(&firstVisibleRow);
|
||||
treeBox->GetRowHeight(&rowHeight);
|
||||
|
||||
extraTreeY += presContext->CSSPixelsToAppUnits(
|
||||
extraTreeY += nsPresContext::CSSPixelsToAppUnits(
|
||||
(currentIndex - firstVisibleRow + 1) * rowHeight);
|
||||
istree = true;
|
||||
|
||||
|
@ -601,7 +601,7 @@ UpdateBackdropIfNeeded(nsIFrame* aFrame,
|
||||
backdropFrame->GetParent()->IsCanvasFrame());
|
||||
nsTArray<nsIFrame*> wrappersToRestyle;
|
||||
ServoRestyleState state(aStyleSet, aChangeList, wrappersToRestyle);
|
||||
aFrame->UpdateStyleOfOwnedChildFrame(backdropFrame, newContext, state);
|
||||
nsIFrame::UpdateStyleOfOwnedChildFrame(backdropFrame, newContext, state);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -53,7 +53,7 @@ nsCounterUseNode::Calc(nsCounterList* aList)
|
||||
{
|
||||
NS_ASSERTION(!aList->IsDirty(),
|
||||
"Why are we calculating with a dirty list?");
|
||||
mValueAfter = aList->ValueBefore(this);
|
||||
mValueAfter = nsCounterList::ValueBefore(this);
|
||||
}
|
||||
|
||||
// assign the correct |mValueAfter| value to a node that has been inserted
|
||||
@ -66,7 +66,7 @@ nsCounterChangeNode::Calc(nsCounterList* aList)
|
||||
mValueAfter = mChangeValue;
|
||||
} else {
|
||||
NS_ASSERTION(mType == INCREMENT, "invalid type");
|
||||
mValueAfter = nsCounterManager::IncrementCounter(aList->ValueBefore(this),
|
||||
mValueAfter = nsCounterManager::IncrementCounter(nsCounterList::ValueBefore(this),
|
||||
mChangeValue);
|
||||
}
|
||||
}
|
||||
|
@ -1089,8 +1089,8 @@ nsHTMLScrollFrame::Reflow(nsPresContext* aPresContext,
|
||||
!oldScrolledAreaBounds.IsEqualEdges(newScrolledAreaBounds)) {
|
||||
if (!mHelper.mSuppressScrollbarUpdate) {
|
||||
mHelper.mSkippedScrollbarLayout = false;
|
||||
mHelper.SetScrollbarVisibility(mHelper.mHScrollbarBox, state.mShowHScrollbar);
|
||||
mHelper.SetScrollbarVisibility(mHelper.mVScrollbarBox, state.mShowVScrollbar);
|
||||
ScrollFrameHelper::SetScrollbarVisibility(mHelper.mHScrollbarBox, state.mShowHScrollbar);
|
||||
ScrollFrameHelper::SetScrollbarVisibility(mHelper.mVScrollbarBox, state.mShowVScrollbar);
|
||||
// place and reflow scrollbars
|
||||
nsRect insideBorderArea =
|
||||
nsRect(nsPoint(state.mComputedBorder.left, state.mComputedBorder.top),
|
||||
@ -5042,7 +5042,7 @@ nsXULScrollFrame::AddRemoveScrollbar(nsBoxLayoutState& aState,
|
||||
nsSize hSize = mHelper.mHScrollbarBox->GetXULPrefSize(aState);
|
||||
nsBox::AddMargin(mHelper.mHScrollbarBox, hSize);
|
||||
|
||||
mHelper.SetScrollbarVisibility(mHelper.mHScrollbarBox, aAdd);
|
||||
ScrollFrameHelper::SetScrollbarVisibility(mHelper.mHScrollbarBox, aAdd);
|
||||
|
||||
// We can't directly pass mHasHorizontalScrollbar as the bool outparam for
|
||||
// AddRemoveScrollbar() because it's a bool:1 bitfield. Hence this var:
|
||||
@ -5053,7 +5053,7 @@ nsXULScrollFrame::AddRemoveScrollbar(nsBoxLayoutState& aState,
|
||||
hSize.height, aOnRightOrBottom, aAdd);
|
||||
mHelper.mHasHorizontalScrollbar = hasHorizontalScrollbar;
|
||||
if (!fit) {
|
||||
mHelper.SetScrollbarVisibility(mHelper.mHScrollbarBox, !aAdd);
|
||||
ScrollFrameHelper::SetScrollbarVisibility(mHelper.mHScrollbarBox, !aAdd);
|
||||
}
|
||||
return fit;
|
||||
} else {
|
||||
@ -5063,7 +5063,7 @@ nsXULScrollFrame::AddRemoveScrollbar(nsBoxLayoutState& aState,
|
||||
nsSize vSize = mHelper.mVScrollbarBox->GetXULPrefSize(aState);
|
||||
nsBox::AddMargin(mHelper.mVScrollbarBox, vSize);
|
||||
|
||||
mHelper.SetScrollbarVisibility(mHelper.mVScrollbarBox, aAdd);
|
||||
ScrollFrameHelper::SetScrollbarVisibility(mHelper.mVScrollbarBox, aAdd);
|
||||
|
||||
// We can't directly pass mHasVerticalScrollbar as the bool outparam for
|
||||
// AddRemoveScrollbar() because it's a bool:1 bitfield. Hence this var:
|
||||
@ -5074,7 +5074,7 @@ nsXULScrollFrame::AddRemoveScrollbar(nsBoxLayoutState& aState,
|
||||
vSize.width, aOnRightOrBottom, aAdd);
|
||||
mHelper.mHasVerticalScrollbar = hasVerticalScrollbar;
|
||||
if (!fit) {
|
||||
mHelper.SetScrollbarVisibility(mHelper.mVScrollbarBox, !aAdd);
|
||||
ScrollFrameHelper::SetScrollbarVisibility(mHelper.mVScrollbarBox, !aAdd);
|
||||
}
|
||||
return fit;
|
||||
}
|
||||
|
@ -3625,7 +3625,7 @@ MeasuringReflow(nsIFrame* aChild,
|
||||
const uint32_t flags = NS_FRAME_NO_MOVE_FRAME | NS_FRAME_NO_SIZE_VIEW;
|
||||
parent->ReflowChild(aChild, pc, childSize, childRI, wm,
|
||||
LogicalPoint(wm), nsSize(), flags, childStatus);
|
||||
parent->FinishReflowChild(aChild, pc, childSize, &childRI, wm,
|
||||
nsContainerFrame::FinishReflowChild(aChild, pc, childSize, &childRI, wm,
|
||||
LogicalPoint(wm), nsSize(), flags);
|
||||
#ifdef DEBUG
|
||||
parent->DeleteProperty(nsContainerFrame::DebugReflowingWithInfiniteISize());
|
||||
|
@ -196,7 +196,7 @@ nsSimplePageSequenceFrame::Reflow(nsPresContext* aPresContext,
|
||||
|
||||
nsIntMargin marginTwips;
|
||||
mPageData->mPrintSettings->GetMarginInTwips(marginTwips);
|
||||
mMargin = aPresContext->CSSTwipsToAppUnits(marginTwips + unwriteableTwips);
|
||||
mMargin = nsPresContext::CSSTwipsToAppUnits(marginTwips + unwriteableTwips);
|
||||
|
||||
int16_t printType;
|
||||
mPageData->mPrintSettings->GetPrintRange(&printType);
|
||||
@ -213,7 +213,7 @@ nsSimplePageSequenceFrame::Reflow(nsPresContext* aPresContext,
|
||||
edgeTwips.right = clamped(edgeTwips.right, 0, inchInTwips);
|
||||
|
||||
mPageData->mEdgePaperMargin =
|
||||
aPresContext->CSSTwipsToAppUnits(edgeTwips + unwriteableTwips);
|
||||
nsPresContext::CSSTwipsToAppUnits(edgeTwips + unwriteableTwips);
|
||||
}
|
||||
|
||||
// *** Special Override ***
|
||||
|
@ -1368,7 +1368,7 @@ AddInterFrameSpacingToSize(ReflowOutput& aDesiredSize,
|
||||
parent, aFrame);
|
||||
// add our own italic correction
|
||||
nscoord leftCorrection = 0, italicCorrection = 0;
|
||||
aFrame->GetItalicCorrection(aDesiredSize.mBoundingMetrics,
|
||||
nsMathMLContainerFrame::GetItalicCorrection(aDesiredSize.mBoundingMetrics,
|
||||
leftCorrection, italicCorrection);
|
||||
gap += leftCorrection;
|
||||
if (gap) {
|
||||
|
@ -267,7 +267,7 @@ IncrementScaleRestyleCountIfNeeded(nsIFrame* aFrame, LayerActivity* aActivity)
|
||||
aFrame->StyleContext(),
|
||||
presContext,
|
||||
dummy, refBox,
|
||||
presContext->AppUnitsPerCSSPixel(),
|
||||
nsPresContext::AppUnitsPerCSSPixel(),
|
||||
&dummyBool);
|
||||
Matrix transform2D;
|
||||
if (!transform.Is2D(&transform2D)) {
|
||||
|
@ -1795,7 +1795,7 @@ public:
|
||||
|
||||
already_AddRefed<ImageContainer> CreateImageAndImageContainer()
|
||||
{
|
||||
RefPtr<ImageContainer> container = mLayerManager->CreateImageContainer();
|
||||
RefPtr<ImageContainer> container = LayerManager::CreateImageContainer();
|
||||
RefPtr<Image> image = CreateImage();
|
||||
|
||||
if (!image) {
|
||||
|
@ -873,8 +873,8 @@ nsCSSGradientRenderer::Paint(gfxContext& aContext,
|
||||
// Use a pattern transform to take account of source and dest rects
|
||||
matrix.PreTranslate(gfxPoint(mPresContext->CSSPixelsToDevPixels(aSrc.x),
|
||||
mPresContext->CSSPixelsToDevPixels(aSrc.y)));
|
||||
matrix.PreScale(gfxFloat(mPresContext->CSSPixelsToAppUnits(aSrc.width))/aDest.width,
|
||||
gfxFloat(mPresContext->CSSPixelsToAppUnits(aSrc.height))/aDest.height);
|
||||
matrix.PreScale(gfxFloat(nsPresContext::CSSPixelsToAppUnits(aSrc.width))/aDest.width,
|
||||
gfxFloat(nsPresContext::CSSPixelsToAppUnits(aSrc.height))/aDest.height);
|
||||
gradientPattern->SetMatrix(matrix);
|
||||
|
||||
if (stopDelta == 0.0) {
|
||||
@ -1062,10 +1062,10 @@ nsCSSGradientRenderer::BuildWebRenderDisplayItems(wr::DisplayListBuilder& aBuild
|
||||
LayoutDeviceSize tileSpacing = tileRepeat - firstTileBounds.Size();
|
||||
|
||||
// srcTransform is used for scaling the gradient to match aSrc
|
||||
LayoutDeviceRect srcTransform = LayoutDeviceRect(mPresContext->CSSPixelsToAppUnits(aSrc.x),
|
||||
mPresContext->CSSPixelsToAppUnits(aSrc.y),
|
||||
aDest.width / ((float)mPresContext->CSSPixelsToAppUnits(aSrc.width)),
|
||||
aDest.height / ((float)mPresContext->CSSPixelsToAppUnits(aSrc.height)));
|
||||
LayoutDeviceRect srcTransform = LayoutDeviceRect(nsPresContext::CSSPixelsToAppUnits(aSrc.x),
|
||||
nsPresContext::CSSPixelsToAppUnits(aSrc.y),
|
||||
aDest.width / ((float)nsPresContext::CSSPixelsToAppUnits(aSrc.width)),
|
||||
aDest.height / ((float)nsPresContext::CSSPixelsToAppUnits(aSrc.height)));
|
||||
|
||||
lineStart.x = (lineStart.x - srcTransform.x) * srcTransform.width;
|
||||
lineStart.y = (lineStart.y - srcTransform.y) * srcTransform.height;
|
||||
|
@ -79,7 +79,7 @@ private:
|
||||
void RemoveObjectIfTracked(nsCSSRuleProcessor* aRuleProcessor);
|
||||
|
||||
virtual void NotifyExpired(nsCSSRuleProcessor* aRuleProcessor) override {
|
||||
mCache->RemoveRuleProcessor(aRuleProcessor);
|
||||
mozilla::RuleProcessorCache::RemoveRuleProcessor(aRuleProcessor);
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -95,10 +95,10 @@ AppUnitsToGfxUnits(const nsPoint& aPoint, const nsPresContext* aContext)
|
||||
static gfxRect
|
||||
AppUnitsToFloatCSSPixels(const gfxRect& aRect, const nsPresContext* aContext)
|
||||
{
|
||||
return gfxRect(aContext->AppUnitsToFloatCSSPixels(aRect.x),
|
||||
aContext->AppUnitsToFloatCSSPixels(aRect.y),
|
||||
aContext->AppUnitsToFloatCSSPixels(aRect.width),
|
||||
aContext->AppUnitsToFloatCSSPixels(aRect.height));
|
||||
return gfxRect(nsPresContext::AppUnitsToFloatCSSPixels(aRect.x),
|
||||
nsPresContext::AppUnitsToFloatCSSPixels(aRect.y),
|
||||
nsPresContext::AppUnitsToFloatCSSPixels(aRect.width),
|
||||
nsPresContext::AppUnitsToFloatCSSPixels(aRect.height));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -801,8 +801,7 @@ TextRenderedRun::GetTransformFromUserSpaceForPainting(
|
||||
return m;
|
||||
}
|
||||
|
||||
float cssPxPerDevPx = aContext->
|
||||
AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
|
||||
// Glyph position in user space.
|
||||
m.PreTranslate(mPosition / cssPxPerDevPx);
|
||||
@ -842,8 +841,7 @@ TextRenderedRun::GetTransformFromRunUserSpaceToUserSpace(
|
||||
return m;
|
||||
}
|
||||
|
||||
float cssPxPerDevPx = aContext->
|
||||
AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
|
||||
nscoord start, end;
|
||||
GetClipEdges(start, end);
|
||||
@ -890,7 +888,7 @@ TextRenderedRun::GetTransformFromRunUserSpaceToFrameUserSpace(
|
||||
|
||||
// Translate by the horizontal distance into the text frame this
|
||||
// rendered run is.
|
||||
gfxFloat appPerCssPx = aContext->AppUnitsPerCSSPixel();
|
||||
gfxFloat appPerCssPx = nsPresContext::AppUnitsPerCSSPixel();
|
||||
gfxPoint t = IsVertical() ? gfxPoint(0, start / appPerCssPx)
|
||||
: gfxPoint(start / appPerCssPx, 0);
|
||||
return m.PreTranslate(t);
|
||||
@ -973,8 +971,8 @@ TextRenderedRun::GetRunUserSpaceRect(nsPresContext* aContext,
|
||||
// it around the text's origin.
|
||||
ScaleAround(fill,
|
||||
textRun->IsVertical()
|
||||
? gfxPoint(aContext->AppUnitsToFloatCSSPixels(baseline), 0.0)
|
||||
: gfxPoint(0.0, aContext->AppUnitsToFloatCSSPixels(baseline)),
|
||||
? gfxPoint(nsPresContext::AppUnitsToFloatCSSPixels(baseline), 0.0)
|
||||
: gfxPoint(0.0, nsPresContext::AppUnitsToFloatCSSPixels(baseline)),
|
||||
1.0 / mFontSizeScaleFactor);
|
||||
|
||||
// Include the fill if requested.
|
||||
@ -1097,8 +1095,7 @@ TextRenderedRun::GetCharNumAtPosition(nsPresContext* aContext,
|
||||
return -1;
|
||||
}
|
||||
|
||||
float cssPxPerDevPx = aContext->
|
||||
AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
|
||||
// Convert the point from user space into run user space, and take
|
||||
// into account any mFontSizeScaleFactor.
|
||||
@ -2623,8 +2620,7 @@ CharIterator::GetGlyphAdvance(nsPresContext* aContext) const
|
||||
gfxSkipCharsIterator it = TextFrame()->EnsureTextRun(nsTextFrame::eInflated);
|
||||
Range range = ConvertOriginalToSkipped(it, offset, length);
|
||||
|
||||
float cssPxPerDevPx = aContext->
|
||||
AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
|
||||
gfxFloat advance = mTextRun->GetAdvanceWidth(range, nullptr);
|
||||
return aContext->AppUnitsToGfxUnits(advance) *
|
||||
@ -2634,8 +2630,7 @@ CharIterator::GetGlyphAdvance(nsPresContext* aContext) const
|
||||
gfxFloat
|
||||
CharIterator::GetAdvance(nsPresContext* aContext) const
|
||||
{
|
||||
float cssPxPerDevPx = aContext->
|
||||
AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
|
||||
uint32_t offset = mSkipCharsIterator.GetSkippedOffset();
|
||||
gfxFloat advance = mTextRun->
|
||||
@ -2657,8 +2652,7 @@ CharIterator::GetGlyphPartialAdvance(uint32_t aPartLength,
|
||||
gfxSkipCharsIterator it = TextFrame()->EnsureTextRun(nsTextFrame::eInflated);
|
||||
Range range = ConvertOriginalToSkipped(it, offset, length);
|
||||
|
||||
float cssPxPerDevPx = aContext->
|
||||
AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(aContext->AppUnitsPerDevPixel());
|
||||
|
||||
gfxFloat advance = mTextRun->GetAdvanceWidth(range, nullptr);
|
||||
return aContext->AppUnitsToGfxUnits(advance) *
|
||||
@ -3631,7 +3625,7 @@ SVGTextFrame::PaintSVG(gfxContext& aContext,
|
||||
// dev pixels. Here we multiply a CSS-px-to-dev-pixel factor onto aTransform
|
||||
// so our non-SVG nsTextFrame children paint correctly.
|
||||
auto auPerDevPx = presContext->AppUnitsPerDevPixel();
|
||||
float cssPxPerDevPx = presContext->AppUnitsToFloatCSSPixels(auPerDevPx);
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(auPerDevPx);
|
||||
gfxMatrix canvasTMForChildren = aTransform;
|
||||
canvasTMForChildren.PreScale(cssPxPerDevPx, cssPxPerDevPx);
|
||||
initialMatrix.PreScale(1 / cssPxPerDevPx, 1 / cssPxPerDevPx);
|
||||
@ -3817,7 +3811,7 @@ SVGTextFrame::ReflowSVG()
|
||||
mRect.SetEmpty();
|
||||
} else {
|
||||
mRect =
|
||||
nsLayoutUtils::RoundGfxRectToAppRect(r.ToThebesRect(), presContext->AppUnitsPerCSSPixel());
|
||||
nsLayoutUtils::RoundGfxRectToAppRect(r.ToThebesRect(), nsPresContext::AppUnitsPerCSSPixel());
|
||||
|
||||
// Due to rounding issues when we have a transform applied, we sometimes
|
||||
// don't include an additional row of pixels. For now, just inflate our
|
||||
@ -4183,8 +4177,7 @@ SVGTextFrame::GetSubStringLength(nsIContent* aContent,
|
||||
}
|
||||
|
||||
nsPresContext* presContext = PresContext();
|
||||
float cssPxPerDevPx = presContext->
|
||||
AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
|
||||
*aResult = presContext->AppUnitsToGfxUnits(textLength) *
|
||||
cssPxPerDevPx / mFontSizeScaleFactor;
|
||||
@ -4259,8 +4252,7 @@ SVGTextFrame::GetSubStringLengthSlowFallback(nsIContent* aContent,
|
||||
}
|
||||
|
||||
nsPresContext* presContext = PresContext();
|
||||
float cssPxPerDevPx = presContext->
|
||||
AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
|
||||
*aResult = presContext->AppUnitsToGfxUnits(textLength) *
|
||||
cssPxPerDevPx / mFontSizeScaleFactor;
|
||||
@ -4410,8 +4402,7 @@ SVGTextFrame::GetExtentOfChar(nsIContent* aContent,
|
||||
|
||||
nsPresContext* presContext = PresContext();
|
||||
|
||||
float cssPxPerDevPx = presContext->
|
||||
AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
|
||||
// We need to return the extent of the whole glyph.
|
||||
uint32_t startIndex = it.GlyphStartTextElementCharIndex();
|
||||
@ -5276,8 +5267,7 @@ SVGTextFrame::DoGlyphPositioning()
|
||||
nsPresContext* presContext = PresContext();
|
||||
bool vertical = GetWritingMode().IsVertical();
|
||||
|
||||
float cssPxPerDevPx = presContext->
|
||||
AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
double factor = cssPxPerDevPx / mFontSizeScaleFactor;
|
||||
|
||||
// Determine how much to compress or expand glyph positions due to
|
||||
@ -5577,7 +5567,7 @@ SVGTextFrame::UpdateFontSizeScaleFactor()
|
||||
return mFontSizeScaleFactor != oldFontSizeScaleFactor;
|
||||
}
|
||||
|
||||
double minSize = presContext->AppUnitsToFloatCSSPixels(min);
|
||||
double minSize = nsPresContext::AppUnitsToFloatCSSPixels(min);
|
||||
|
||||
if (geometricPrecision) {
|
||||
// We want to ensure minSize is scaled to PRECISE_SIZE.
|
||||
@ -5599,14 +5589,14 @@ SVGTextFrame::UpdateFontSizeScaleFactor()
|
||||
}
|
||||
mLastContextScale = contextScale;
|
||||
|
||||
double maxSize = presContext->AppUnitsToFloatCSSPixels(max);
|
||||
double maxSize = nsPresContext::AppUnitsToFloatCSSPixels(max);
|
||||
|
||||
// But we want to ignore any scaling required due to HiDPI displays, since
|
||||
// regular CSS text frames will still create text runs using the font size
|
||||
// in CSS pixels, and we want SVG text to have the same rendering as HTML
|
||||
// text for regular font sizes.
|
||||
float cssPxPerDevPx =
|
||||
presContext->AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
nsPresContext::AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
contextScale *= cssPxPerDevPx;
|
||||
|
||||
double minTextRunSize = minSize * contextScale;
|
||||
@ -5658,9 +5648,8 @@ SVGTextFrame::TransformFramePointToTextChild(const Point& aPoint,
|
||||
// Add in the mRect offset to aPoint, as that will have been taken into
|
||||
// account when transforming the point from the ancestor frame down
|
||||
// to this one.
|
||||
float cssPxPerDevPx = presContext->
|
||||
AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
float factor = presContext->AppUnitsPerCSSPixel();
|
||||
float cssPxPerDevPx = nsPresContext::AppUnitsToFloatCSSPixels(presContext->AppUnitsPerDevPixel());
|
||||
float factor = nsPresContext::AppUnitsPerCSSPixel();
|
||||
Point framePosition(NSAppUnitsToFloatPixels(mRect.x, factor),
|
||||
NSAppUnitsToFloatPixels(mRect.y, factor));
|
||||
Point pointInUserSpace = aPoint * cssPxPerDevPx + framePosition;
|
||||
@ -5767,7 +5756,7 @@ SVGTextFrame::TransformFrameRectFromTextChild(const nsRect& aRect,
|
||||
|
||||
// Subtract the mRect offset from the result, as our user space for
|
||||
// this frame is relative to the top-left of mRect.
|
||||
float factor = presContext->AppUnitsPerCSSPixel();
|
||||
float factor = nsPresContext::AppUnitsPerCSSPixel();
|
||||
gfxPoint framePosition(NSAppUnitsToFloatPixels(mRect.x, factor),
|
||||
NSAppUnitsToFloatPixels(mRect.y, factor));
|
||||
|
||||
|
@ -215,8 +215,8 @@ nsSVGIntegrationUtils::GetSVGCoordContextForNonSVGFrame(nsIFrame* aNonSVGFrame)
|
||||
nsLayoutUtils::FirstContinuationOrIBSplitSibling(aNonSVGFrame);
|
||||
nsRect r = nsLayoutUtils::GetAllInFlowRectsUnion(firstFrame, firstFrame);
|
||||
nsPresContext* presContext = firstFrame->PresContext();
|
||||
return gfx::Size(presContext->AppUnitsToFloatCSSPixels(r.width),
|
||||
presContext->AppUnitsToFloatCSSPixels(r.height));
|
||||
return gfx::Size(nsPresContext::AppUnitsToFloatCSSPixels(r.width),
|
||||
nsPresContext::AppUnitsToFloatCSSPixels(r.height));
|
||||
}
|
||||
|
||||
gfxRect
|
||||
|
@ -1438,7 +1438,7 @@ nsMenuPopupFrame::SetPopupPosition(nsIFrame* aAnchorFrame, bool aIsMove, bool aS
|
||||
// If anchored to a rectangle, use that rectangle. Otherwise, determine the
|
||||
// rectangle from the anchor.
|
||||
if (mAnchorType == MenuPopupAnchorType_Rect) {
|
||||
anchorRect = ToAppUnits(mScreenRect, presContext->AppUnitsPerCSSPixel());
|
||||
anchorRect = ToAppUnits(mScreenRect, nsPresContext::AppUnitsPerCSSPixel());
|
||||
}
|
||||
else {
|
||||
// if the frame is not specified, use the anchor node passed to OpenPopup. If
|
||||
@ -1520,7 +1520,7 @@ nsMenuPopupFrame::SetPopupPosition(nsIFrame* aAnchorFrame, bool aIsMove, bool aS
|
||||
// mXPos and mYPos specify an additonal offset passed to OpenPopup that
|
||||
// should be added to the position. We also add the offset to the anchor
|
||||
// pos so a later flip/resize takes the offset into account.
|
||||
nscoord anchorXOffset = presContext->CSSPixelsToAppUnits(mXPos);
|
||||
nscoord anchorXOffset = nsPresContext::CSSPixelsToAppUnits(mXPos);
|
||||
if (IsDirectionRTL()) {
|
||||
screenPoint.x -= anchorXOffset;
|
||||
anchorRect.x -= anchorXOffset;
|
||||
@ -1528,7 +1528,7 @@ nsMenuPopupFrame::SetPopupPosition(nsIFrame* aAnchorFrame, bool aIsMove, bool aS
|
||||
screenPoint.x += anchorXOffset;
|
||||
anchorRect.x += anchorXOffset;
|
||||
}
|
||||
nscoord anchorYOffset = presContext->CSSPixelsToAppUnits(mYPos);
|
||||
nscoord anchorYOffset = nsPresContext::CSSPixelsToAppUnits(mYPos);
|
||||
screenPoint.y += anchorYOffset;
|
||||
anchorRect.y += anchorYOffset;
|
||||
|
||||
@ -1542,8 +1542,8 @@ nsMenuPopupFrame::SetPopupPosition(nsIFrame* aAnchorFrame, bool aIsMove, bool aS
|
||||
// Account for the margin that will end up being added to the screen coordinate
|
||||
// the next time SetPopupPosition is called.
|
||||
mAnchorType = MenuPopupAnchorType_Point;
|
||||
mScreenRect.x = presContext->AppUnitsToIntCSSPixels(screenPoint.x - margin.left);
|
||||
mScreenRect.y = presContext->AppUnitsToIntCSSPixels(screenPoint.y - margin.top);
|
||||
mScreenRect.x = nsPresContext::AppUnitsToIntCSSPixels(screenPoint.x - margin.left);
|
||||
mScreenRect.y = nsPresContext::AppUnitsToIntCSSPixels(screenPoint.y - margin.top);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -2413,8 +2413,8 @@ nsMenuPopupFrame::MoveTo(const CSSIntPoint& aPos, bool aUpdateAttrs)
|
||||
|
||||
nsPresContext* presContext = PresContext();
|
||||
mAnchorType = MenuPopupAnchorType_Point;
|
||||
mScreenRect.x = aPos.x - presContext->AppUnitsToIntCSSPixels(margin.left);
|
||||
mScreenRect.y = aPos.y - presContext->AppUnitsToIntCSSPixels(margin.top);
|
||||
mScreenRect.x = aPos.x - nsPresContext::AppUnitsToIntCSSPixels(margin.left);
|
||||
mScreenRect.y = aPos.y - nsPresContext::AppUnitsToIntCSSPixels(margin.top);
|
||||
|
||||
SetPopupPosition(nullptr, true, false, true);
|
||||
|
||||
|
@ -696,9 +696,9 @@ nsSplitterFrameInner::MouseDown(nsIDOMEvent* aMouseEvent)
|
||||
nsSize maxSize = nsBox::BoundsCheckMinMax(minSize, childBox->GetXULMaxSize(state));
|
||||
prefSize = nsBox::BoundsCheck(minSize, prefSize, maxSize);
|
||||
|
||||
mOuter->AddMargin(childBox, minSize);
|
||||
mOuter->AddMargin(childBox, prefSize);
|
||||
mOuter->AddMargin(childBox, maxSize);
|
||||
nsSplitterFrame::AddMargin(childBox, minSize);
|
||||
nsSplitterFrame::AddMargin(childBox, prefSize);
|
||||
nsSplitterFrame::AddMargin(childBox, maxSize);
|
||||
|
||||
nscoord flex = childBox->GetXULFlex();
|
||||
|
||||
|
@ -112,7 +112,7 @@ public:
|
||||
// storage
|
||||
void TestAgeIntoLongTerm() {
|
||||
RtpSourceHistory history;
|
||||
constexpr int64_t jitterWindow = history.kMinJitterWindow;
|
||||
constexpr int64_t jitterWindow = RtpSourceHistory::kMinJitterWindow;
|
||||
constexpr int64_t jitter = jitterWindow / 2;
|
||||
constexpr int64_t timeNow0 = 100000;
|
||||
constexpr int64_t time0 = timeNow0;
|
||||
@ -213,7 +213,7 @@ public:
|
||||
void TestSinglePrune() {
|
||||
RtpSourceHistory history;
|
||||
constexpr int64_t timeNow = 10000;
|
||||
constexpr int64_t jitter = history.kMinJitterWindow / 2;
|
||||
constexpr int64_t jitter = RtpSourceHistory::kMinJitterWindow / 2;
|
||||
const int64_t jitterAdjusted = timeNow + jitter;
|
||||
|
||||
history.Insert(timeNow, jitterAdjusted, 0, false);
|
||||
@ -349,4 +349,4 @@ TEST_F(RtpSourcesTest, TestObserveTwoCsrcs) { TestObserveTwoCsrcs(); }
|
||||
TEST_F(RtpSourcesTest, TestObserveCsrcWithAudioLevel) {
|
||||
TestObserveCsrcWithAudioLevel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -201,7 +201,7 @@ JsepSessionImpl::CreateOfferMsection(const JsepOfferOptions& options,
|
||||
JsepTrack& recvTrack(transceiver.mRecvTrack);
|
||||
|
||||
SdpMediaSection::Protocol protocol(
|
||||
mSdpHelper.GetProtocolForMediaType(sendTrack.GetMediaType()));
|
||||
SdpHelper::GetProtocolForMediaType(sendTrack.GetMediaType()));
|
||||
|
||||
const Sdp* answer(GetAnswer());
|
||||
const SdpMediaSection* lastAnswerMsection = nullptr;
|
||||
@ -230,7 +230,7 @@ JsepSessionImpl::CreateOfferMsection(const JsepOfferOptions& options,
|
||||
}
|
||||
|
||||
if (transceiver.IsStopped()) {
|
||||
mSdpHelper.DisableMsection(local, msection);
|
||||
SdpHelper::DisableMsection(local, msection);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -602,7 +602,7 @@ JsepSessionImpl::CreateAnswerMsection(const JsepAnswerOptions& options,
|
||||
if (mSdpHelper.MsectionIsDisabled(remoteMsection) ||
|
||||
// JS might have stopped this
|
||||
transceiver.IsStopped()) {
|
||||
mSdpHelper.DisableMsection(sdp, &msection);
|
||||
SdpHelper::DisableMsection(sdp, &msection);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -624,7 +624,7 @@ JsepSessionImpl::CreateAnswerMsection(const JsepAnswerOptions& options,
|
||||
|
||||
if (msection.GetFormats().empty()) {
|
||||
// Could not negotiate anything. Disable m-section.
|
||||
mSdpHelper.DisableMsection(sdp, &msection);
|
||||
SdpHelper::DisableMsection(sdp, &msection);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
2
netwerk/cache/nsCacheService.cpp
vendored
2
netwerk/cache/nsCacheService.cpp
vendored
@ -1432,7 +1432,7 @@ nsCacheService::IsStorageEnabledForPolicy(nsCacheStoragePolicy storagePolicy,
|
||||
if (gService == nullptr) return NS_ERROR_NOT_AVAILABLE;
|
||||
nsCacheServiceAutoLock lock(LOCK_TELEM(NSCACHESERVICE_ISSTORAGEENABLEDFORPOLICY));
|
||||
|
||||
*result = gService->IsStorageEnabledForPolicy_Locked(storagePolicy);
|
||||
*result = nsCacheService::IsStorageEnabledForPolicy_Locked(storagePolicy);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -1018,7 +1018,7 @@ nsresult
|
||||
QNameCollector::Visit(nsIRDFNode* aSubject, nsIRDFResource* aPredicate,
|
||||
nsIRDFNode* aObject, bool aTruthValue)
|
||||
{
|
||||
if (aPredicate == mParent->kRDF_type) {
|
||||
if (aPredicate == nsRDFXMLSerializer::kRDF_type) {
|
||||
// try to get a type QName for aObject, should be a resource
|
||||
nsCOMPtr<nsIRDFResource> resType = do_QueryInterface(aObject);
|
||||
if (!resType) {
|
||||
@ -1035,11 +1035,11 @@ QNameCollector::Visit(nsIRDFNode* aSubject, nsIRDFResource* aPredicate,
|
||||
if (mParent->mQNames.Get(aPredicate, nullptr)) {
|
||||
return NS_OK;
|
||||
}
|
||||
if (aPredicate == mParent->kRDF_instanceOf ||
|
||||
aPredicate == mParent->kRDF_nextVal)
|
||||
if (aPredicate == nsRDFXMLSerializer::kRDF_instanceOf ||
|
||||
aPredicate == nsRDFXMLSerializer::kRDF_nextVal)
|
||||
return NS_OK;
|
||||
bool isOrdinal = false;
|
||||
mParent->gRDFC->IsOrdinalProperty(aPredicate, &isOrdinal);
|
||||
nsRDFXMLSerializer::gRDFC->IsOrdinalProperty(aPredicate, &isOrdinal);
|
||||
if (isOrdinal)
|
||||
return NS_OK;
|
||||
|
||||
|
@ -271,7 +271,7 @@ PSMContentDownloaderParent::RecvDivertToParentUsing(mozilla::net::PChannelDivert
|
||||
MOZ_ASSERT(diverter);
|
||||
auto p = static_cast<mozilla::net::ChannelDiverterParent*>(diverter);
|
||||
p->DivertTo(this);
|
||||
mozilla::Unused << p->Send__delete__(p);
|
||||
mozilla::Unused << ChannelDiverterParent::Send__delete__(p);
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ void
|
||||
AtomSet::Remove(nsAtom* aAtom)
|
||||
{
|
||||
auto index = mElems.BinaryIndexOf(aAtom);
|
||||
if (index != mElems.NoIndex) {
|
||||
if (index != ArrayType::NoIndex) {
|
||||
mElems.RemoveElementAt(index);
|
||||
}
|
||||
}
|
||||
|
@ -4155,7 +4155,7 @@ nsNavHistoryResult::AddHistoryObserver(nsNavHistoryQueryResultNode* aNode)
|
||||
// Don't add duplicate observers. In some case we don't unregister when
|
||||
// children are cleared (see ClearChildren) and the next FillChildren call
|
||||
// will try to add the observer again.
|
||||
if (mHistoryObservers.IndexOf(aNode) == mHistoryObservers.NoIndex) {
|
||||
if (mHistoryObservers.IndexOf(aNode) == QueryObserverList::NoIndex) {
|
||||
mHistoryObservers.AppendElement(aNode);
|
||||
}
|
||||
}
|
||||
@ -4176,7 +4176,7 @@ nsNavHistoryResult::AddAllBookmarksObserver(nsNavHistoryQueryResultNode* aNode)
|
||||
// Don't add duplicate observers. In some case we don't unregister when
|
||||
// children are cleared (see ClearChildren) and the next FillChildren call
|
||||
// will try to add the observer again.
|
||||
if (mAllBookmarksObservers.IndexOf(aNode) == mAllBookmarksObservers.NoIndex) {
|
||||
if (mAllBookmarksObservers.IndexOf(aNode) == QueryObserverList::NoIndex) {
|
||||
mAllBookmarksObservers.AppendElement(aNode);
|
||||
}
|
||||
}
|
||||
@ -4217,7 +4217,7 @@ nsNavHistoryResult::AddBookmarkFolderObserver(nsNavHistoryFolderResultNode* aNod
|
||||
// children are cleared (see ClearChildren) and the next FillChildren call
|
||||
// will try to add the observer again.
|
||||
FolderObserverList* list = BookmarkFolderObserversForId(aFolder, true);
|
||||
if (list->IndexOf(aNode) == list->NoIndex) {
|
||||
if (list->IndexOf(aNode) == FolderObserverList::NoIndex) {
|
||||
list->AppendElement(aNode);
|
||||
}
|
||||
}
|
||||
@ -4390,7 +4390,7 @@ void
|
||||
nsNavHistoryResult::requestRefresh(nsNavHistoryContainerResultNode* aContainer)
|
||||
{
|
||||
// Don't add twice the same container.
|
||||
if (mRefreshParticipants.IndexOf(aContainer) == mRefreshParticipants.NoIndex)
|
||||
if (mRefreshParticipants.IndexOf(aContainer) == ContainerObserverList::NoIndex)
|
||||
mRefreshParticipants.AppendElement(aContainer);
|
||||
}
|
||||
|
||||
|
@ -187,9 +187,9 @@ PrintingParent::RecvShowPrintDialog(PPrintSettingsDialogParent* aDialog,
|
||||
// with an async message which frees the child process from
|
||||
// its nested event loop.
|
||||
if (NS_FAILED(rv)) {
|
||||
mozilla::Unused << aDialog->Send__delete__(aDialog, rv);
|
||||
mozilla::Unused << PPrintingParent::PPrintSettingsDialogParent::Send__delete__(aDialog, rv);
|
||||
} else {
|
||||
mozilla::Unused << aDialog->Send__delete__(aDialog, resultData);
|
||||
mozilla::Unused << PPrintingParent::PPrintSettingsDialogParent::Send__delete__(aDialog, resultData);
|
||||
}
|
||||
return IPC_OK();
|
||||
}
|
||||
|
@ -736,7 +736,7 @@ class MinidumpWriter {
|
||||
dso_count++;
|
||||
}
|
||||
|
||||
MDRVA linkmap_rva = minidump_writer_.kInvalidMDRVA;
|
||||
MDRVA linkmap_rva = MinidumpFileWriter::kInvalidMDRVA;
|
||||
if (dso_count > 0) {
|
||||
// If we have at least one DSO, create an array of MDRawLinkMap
|
||||
// entries in the minidump file.
|
||||
|
@ -406,10 +406,10 @@ nsToolkitProfileService::Init()
|
||||
NS_ASSERTION(gDirServiceProvider, "No dirserviceprovider!");
|
||||
nsresult rv;
|
||||
|
||||
rv = gDirServiceProvider->GetUserAppDataDirectory(getter_AddRefs(mAppData));
|
||||
rv = nsXREDirProvider::GetUserAppDataDirectory(getter_AddRefs(mAppData));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
rv = gDirServiceProvider->GetUserLocalDataDirectory(getter_AddRefs(mTempData));
|
||||
rv = nsXREDirProvider::GetUserLocalDataDirectory(getter_AddRefs(mTempData));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
rv = mAppData->Clone(getter_AddRefs(mListFile));
|
||||
|
@ -3372,7 +3372,7 @@ XREMain::XRE_mainInit(bool* aExitFlag)
|
||||
NS_SUCCEEDED(
|
||||
CrashReporter::SetExceptionHandler(xreBinDirectory))) {
|
||||
nsCOMPtr<nsIFile> file;
|
||||
rv = mDirProvider.GetUserAppDataDirectory(getter_AddRefs(file));
|
||||
rv = nsXREDirProvider::GetUserAppDataDirectory(getter_AddRefs(file));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
CrashReporter::SetUserAppDataDirectory(file);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ WriteConsoleLog()
|
||||
if (!gLogConsoleErrors)
|
||||
return;
|
||||
|
||||
rv = gDirServiceProvider->GetUserAppDataDirectory(getter_AddRefs(lfile));
|
||||
rv = nsXREDirProvider::GetUserAppDataDirectory(getter_AddRefs(lfile));
|
||||
if (NS_FAILED(rv))
|
||||
return;
|
||||
|
||||
|
@ -196,7 +196,7 @@ ExternalHelperAppParent::RecvDivertToParentUsing(PChannelDiverterParent* diverte
|
||||
#ifdef DEBUG
|
||||
mDiverted = true;
|
||||
#endif
|
||||
Unused << p->Send__delete__(p);
|
||||
Unused << ChannelDiverterParent::Send__delete__(p);
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
|
@ -1079,7 +1079,7 @@ nsBaseWidget::ProcessUntransformedAPZEvent(WidgetInputEvent* aEvent,
|
||||
UniquePtr<WidgetEvent> original(aEvent->Duplicate());
|
||||
DispatchEvent(aEvent, status);
|
||||
|
||||
if (mAPZC && !context.WasRoutedToChildProcess() && aInputBlockId) {
|
||||
if (mAPZC && !InputAPZContext::WasRoutedToChildProcess() && aInputBlockId) {
|
||||
// EventStateManager did not route the event into the child process.
|
||||
// It's safe to communicate to APZ that the event has been processed.
|
||||
// TODO: Eventually we'll be able to move the SendSetTargetAPZCNotification
|
||||
|
Loading…
Reference in New Issue
Block a user