mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Issue #1877 - Resolve RELEASE_OR_BETA conditionals.
This commit is contained in:
parent
93c90e371b
commit
d4eac725fd
30 changed files with 75 additions and 144 deletions
|
|
@ -158,7 +158,7 @@ gfxTextRun::gfxTextRun(const gfxTextRunFactory::Parameters *aParams,
|
|||
MOZ_COUNT_CTOR(gfxTextRun);
|
||||
NS_ADDREF(mFontGroup);
|
||||
|
||||
#ifndef RELEASE_OR_BETA
|
||||
#ifdef DEBUG
|
||||
gfxTextPerfMetrics *tp = aFontGroup->GetTextPerfMetrics();
|
||||
if (tp) {
|
||||
tp->current.textrunConst++;
|
||||
|
|
@ -192,7 +192,7 @@ gfxTextRun::~gfxTextRun()
|
|||
// been told to release its reference to the group, so we mustn't do that
|
||||
// again here.
|
||||
if (!mReleasedFontGroup) {
|
||||
#ifndef RELEASE_OR_BETA
|
||||
#ifdef DEBUG
|
||||
gfxTextPerfMetrics *tp = mFontGroup->GetTextPerfMetrics();
|
||||
if (tp) {
|
||||
tp->current.textrunDestr++;
|
||||
|
|
@ -2931,7 +2931,7 @@ void gfxFontGroup::ComputeRanges(nsTArray<gfxTextRange>& aRanges,
|
|||
FindFontForChar(ch, prevCh, nextCh, aRunScript, prevFont,
|
||||
&matchType);
|
||||
|
||||
#ifndef RELEASE_OR_BETA
|
||||
#ifdef DEBUG
|
||||
if (MOZ_UNLIKELY(mTextPerf)) {
|
||||
if (matchType == gfxTextRange::kPrefsFallback) {
|
||||
mTextPerf->current.fallbackPrefs++;
|
||||
|
|
@ -2990,7 +2990,7 @@ void gfxFontGroup::ComputeRanges(nsTArray<gfxTextRange>& aRanges,
|
|||
|
||||
aRanges[lastRangeIndex].end = aLength;
|
||||
|
||||
#ifndef RELEASE_OR_BETA
|
||||
#ifdef DEBUG
|
||||
LogModule* log = mStyle.systemFont
|
||||
? gfxPlatform::GetLog(eGfxLog_textrunui)
|
||||
: gfxPlatform::GetLog(eGfxLog_textrun);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue