Backed out changeset 52db7558a4da (bug 1757929) for causing build bustages Unified_cpp_image0.obj. CLOSED TREE

This commit is contained in:
Marian-Vasile Laza 2022-05-05 00:41:56 +03:00
Родитель 1cd0ac703f
Коммит 3309e86b5d
9 изменённых файлов: 77 добавлений и 67 удалений

Просмотреть файл

@ -7,7 +7,6 @@
#include "AccessCheck.h"
#include "base/basictypes.h"
#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
#include "mozilla/EventDispatcher.h"
#include "mozilla/BasePrincipal.h"
#include "mozilla/ContentEvents.h"

Просмотреть файл

@ -6,7 +6,6 @@
#include "base/basictypes.h"
#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
#include "mozilla/dom/DOMRect.h"
#include "mozilla/dom/ScrollAreaEvent.h"
#include "mozilla/ContentEvents.h"

Просмотреть файл

@ -15,7 +15,6 @@
#include "mozilla/TouchEvents.h"
#include "nsContentUtils.h"
#include "nsIDocShell.h"
#include "nsExceptionHandler.h"
namespace mozilla::dom {

Просмотреть файл

@ -6,7 +6,6 @@
#include "base/basictypes.h"
#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
#include "mozilla/dom/UIEvent.h"
#include "mozilla/ArrayUtils.h"
#include "mozilla/Assertions.h"

Просмотреть файл

@ -12,7 +12,6 @@
#include "RegionBuilder.h"
#include "chrome/common/ipc_message_utils.h"
#include "gfxFeature.h"
#include "gfxFontUtils.h"
#include "gfxFallback.h"
#include "gfxPoint.h"
#include "gfxRect.h"
@ -24,7 +23,6 @@
#include "mozilla/gfx/Matrix.h"
#include "mozilla/gfx/ScaleFactor.h"
#include "mozilla/gfx/ScaleFactors2D.h"
#include "SharedFontList.h"
#include "nsRect.h"
#include "nsRegion.h"
#include "mozilla/Array.h"
@ -1138,54 +1136,7 @@ struct ParamTraits<mozilla::SideBits>
: public BitFlagsEnumSerializer<mozilla::SideBits,
mozilla::SideBits::eAll> {};
template <>
struct ParamTraits<gfxSparseBitSet> {
typedef gfxSparseBitSet paramType;
static void Write(MessageWriter* aWriter, const paramType& aParam) {
WriteParam(aWriter, aParam.mBlockIndex);
WriteParam(aWriter, aParam.mBlocks);
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, &aResult->mBlockIndex) &&
ReadParam(aReader, &aResult->mBlocks);
}
};
template <>
struct ParamTraits<gfxSparseBitSet::Block> {
typedef gfxSparseBitSet::Block paramType;
static void Write(MessageWriter* aWriter, const paramType& aParam) {
aWriter->WriteBytes(&aParam, sizeof(aParam));
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return aReader->ReadBytesInto(aResult, sizeof(*aResult));
}
};
// The actual FontVisibility enum is defined in gfxTypes.h
template <>
struct ParamTraits<FontVisibility>
: public ContiguousEnumSerializer<FontVisibility, FontVisibility::Unknown,
FontVisibility::Count> {};
template <>
struct ParamTraits<mozilla::fontlist::Pointer> {
typedef mozilla::fontlist::Pointer paramType;
static void Write(MessageWriter* aWriter, const paramType& aParam) {
uint32_t v = aParam.mBlockAndOffset;
WriteParam(aWriter, v);
}
static bool Read(MessageReader* aReader, paramType* aResult) {
uint32_t v;
if (ReadParam(aReader, &v)) {
aResult->mBlockAndOffset.store(v);
return true;
}
return false;
}
};
} // namespace IPC
} /* namespace IPC */
namespace mozilla {
namespace ipc {

Просмотреть файл

@ -378,6 +378,29 @@ struct LocalFaceRec {
} // namespace fontlist
} // namespace mozilla
#include "ipc/IPCMessageUtils.h"
namespace IPC {
template <>
struct ParamTraits<mozilla::fontlist::Pointer> {
typedef mozilla::fontlist::Pointer paramType;
static void Write(MessageWriter* aWriter, const paramType& aParam) {
uint32_t v = aParam.mBlockAndOffset;
WriteParam(aWriter, v);
}
static bool Read(MessageReader* aReader, paramType* aResult) {
uint32_t v;
if (ReadParam(aReader, &v)) {
aResult->mBlockAndOffset.store(v);
return true;
}
return false;
}
};
} // namespace IPC
#undef ERROR // This is defined via Windows.h, but conflicts with some bindings
// code when this gets included in the same compilation unit.

Просмотреть файл

@ -21,11 +21,11 @@
#include "mozilla/Mutex.h"
#include "mozilla/RefPtr.h"
#include "mozilla/RWLock.h"
#include "mozilla/ServoStyleConsts.h"
#include "mozilla/TypedEnumBits.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/gfx/MatrixFwd.h"
#include "mozilla/gfx/Point.h"
#include "mozilla/gfx/2D.h"
#include "mozilla/intl/UnicodeScriptCodes.h"
#include "nsCOMPtr.h"
#include "nsColor.h"
@ -43,9 +43,21 @@
#include "nscore.h"
#include "DrawMode.h"
// Only required for function bodies
// Only required for function bodys
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include "mozilla/Assertions.h"
#include "mozilla/HashFunctions.h"
#include "mozilla/ServoUtils.h"
#include "mozilla/gfx/2D.h"
#include "gfxFontEntry.h"
#include "gfxFontFeatures.h"
#include "gfxFontUtils.h"
#include "gfxPlatform.h"
#include "nsAtom.h"
#include "nsDebug.h"
#include "nsMathUtils.h"
class gfxContext;
class gfxGraphiteShaper;
@ -515,9 +527,6 @@ class gfxTextPerfMetrics {
namespace mozilla {
namespace gfx {
class UnscaledFont;
// Flags that live in the gfxShapedText::mFlags field.
// (Note that gfxTextRun has an additional mFlags2 field for use
// by textrun clients like nsTextFrame.)

Просмотреть файл

@ -15,6 +15,7 @@
#include "gfxRect.h"
#include "gfxTypes.h"
#include "harfbuzz/hb.h"
#include "ipc/EnumSerializer.h"
#include "mozilla/AlreadyAddRefed.h"
#include "mozilla/Assertions.h"
#include "mozilla/FontPropertyTypes.h"
@ -833,6 +834,14 @@ struct GlobalFontMatch {
double mMatchDistance = INFINITY; // metric indicating closest match
};
// The actual FontVisibility enum is defined in gfxTypes.h
namespace IPC {
template <>
struct ParamTraits<FontVisibility>
: public ContiguousEnumSerializer<FontVisibility, FontVisibility::Unknown,
FontVisibility::Count> {};
} // namespace IPC
class gfxFontFamily {
public:
// Used by stylo

Просмотреть файл

@ -11,6 +11,8 @@
#include <new>
#include <utility>
#include "gfxPlatform.h"
#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
#include "mozilla/Casting.h"
@ -49,11 +51,6 @@ typedef struct hb_blob_t hb_blob_t;
class SharedBitSet;
namespace IPC {
template <typename T>
struct ParamTraits;
}
class gfxSparseBitSet {
private:
friend class SharedBitSet;
@ -69,9 +66,6 @@ class gfxSparseBitSet {
uint8_t mBits[BLOCK_SIZE];
};
friend struct IPC::ParamTraits<gfxSparseBitSet>;
friend struct IPC::ParamTraits<Block>;
public:
gfxSparseBitSet() = default;
@ -337,10 +331,38 @@ class gfxSparseBitSet {
}
private:
friend struct IPC::ParamTraits<gfxSparseBitSet>;
friend struct IPC::ParamTraits<gfxSparseBitSet::Block>;
CopyableTArray<uint16_t> mBlockIndex;
CopyableTArray<Block> mBlocks;
};
namespace IPC {
template <>
struct ParamTraits<gfxSparseBitSet> {
typedef gfxSparseBitSet paramType;
static void Write(MessageWriter* aWriter, const paramType& aParam) {
WriteParam(aWriter, aParam.mBlockIndex);
WriteParam(aWriter, aParam.mBlocks);
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, &aResult->mBlockIndex) &&
ReadParam(aReader, &aResult->mBlocks);
}
};
template <>
struct ParamTraits<gfxSparseBitSet::Block> {
typedef gfxSparseBitSet::Block paramType;
static void Write(MessageWriter* aWriter, const paramType& aParam) {
aWriter->WriteBytes(&aParam, sizeof(aParam));
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return aReader->ReadBytesInto(aResult, sizeof(*aResult));
}
};
} // namespace IPC
/**
* SharedBitSet is a version of gfxSparseBitSet that is intended to be used
* in a shared-memory block, and can be used regardless of the address at which