зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1725363 - Replace PL_strcasecmp with nsCRT::strcasecmp layout/ r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D129075
This commit is contained in:
Родитель
a60d89964e
Коммит
ff6b6326b3
|
@ -664,7 +664,7 @@ bool PresShell::GetVerifyReflowEnable() {
|
|||
const VerifyReflowFlagData* flag = gFlags;
|
||||
const VerifyReflowFlagData* limit = gFlags + NUM_VERIFY_REFLOW_FLAGS;
|
||||
while (flag < limit) {
|
||||
if (PL_strcasecmp(flag->name, flags) == 0) {
|
||||
if (nsCRT::strcasecmp(flag->name, flags) == 0) {
|
||||
gVerifyReflowFlags |= flag->bit;
|
||||
found = true;
|
||||
break;
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
#include "nsAbsoluteContainingBlock.h"
|
||||
#include "nsCSSPseudoElements.h"
|
||||
#include "nsCheckboxRadioFrame.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsAtom.h"
|
||||
#include "nsIFrameInlines.h"
|
||||
#include "nsGkAtoms.h"
|
||||
|
@ -1435,7 +1436,7 @@ nsCSSFrameConstructor::nsCSSFrameConstructor(Document* aDocument,
|
|||
FrameCtorDebugFlags* flag = gFlags;
|
||||
FrameCtorDebugFlags* limit = gFlags + NUM_DEBUG_FLAGS;
|
||||
while (flag < limit) {
|
||||
if (PL_strcasecmp(flag->name, flags) == 0) {
|
||||
if (nsCRT::strcasecmp(flag->name, flags) == 0) {
|
||||
*(flag->on) = true;
|
||||
printf("nsCSSFrameConstructor: setting %s debug flag on\n",
|
||||
flag->name);
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "mozilla/PresShellInlines.h"
|
||||
|
||||
#include "base/basictypes.h"
|
||||
|
||||
#include "nsCRT.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsCSSFrameConstructor.h"
|
||||
#include "nsDocShell.h"
|
||||
|
@ -2342,7 +2342,7 @@ static void GetInterruptEnv() {
|
|||
char* ev = PR_GetEnv("GECKO_REFLOW_INTERRUPT_MODE");
|
||||
if (ev) {
|
||||
#ifndef XP_WIN
|
||||
if (PL_strcasecmp(ev, "random") == 0) {
|
||||
if (nsCRT::strcasecmp(ev, "random") == 0) {
|
||||
ev = PR_GetEnv("GECKO_REFLOW_INTERRUPT_SEED");
|
||||
if (ev) {
|
||||
sInterruptSeed = atoi(ev);
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "mozilla/ToString.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
|
||||
#include "nsCRT.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsCSSRendering.h"
|
||||
#include "nsAbsoluteContainingBlock.h"
|
||||
|
@ -43,7 +44,6 @@
|
|||
#include "mozilla/Sprintf.h"
|
||||
#include "nsFloatManager.h"
|
||||
#include "prenv.h"
|
||||
#include "plstr.h"
|
||||
#include "nsError.h"
|
||||
#include "nsIScrollableFrame.h"
|
||||
#include <algorithm>
|
||||
|
@ -327,7 +327,7 @@ void nsBlockFrame::InitDebugFlags() {
|
|||
const BlockDebugFlags* bdf = gFlags;
|
||||
const BlockDebugFlags* end = gFlags + NUM_DEBUG_FLAGS;
|
||||
for (; bdf < end; bdf++) {
|
||||
if (PL_strcasecmp(bdf->name, flags) == 0) {
|
||||
if (nsCRT::strcasecmp(bdf->name, flags) == 0) {
|
||||
*(bdf->on) = true;
|
||||
printf("nsBlockFrame: setting %s debug flag on\n", bdf->name);
|
||||
gNoisy = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче