mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
e4c5aafee9
6 changed files with 25 additions and 26 deletions
|
|
@ -45,12 +45,12 @@ ApplyMorphologyHorizontal_Scalar(uint8_t* aSourceData, int32_t aSourceStride,
|
|||
for (int32_t x = aDestRect.x; x < aDestRect.XMost(); x++, startX++, endX++) {
|
||||
int32_t sourceIndex = y * aSourceStride + 4 * startX;
|
||||
uint8_t u[4];
|
||||
for (size_t i = 0; i < 4; i++) {
|
||||
for (int32_t i = 0; i < int32_t(std::size(u)); i++) {
|
||||
u[i] = aSourceData[sourceIndex + i];
|
||||
}
|
||||
sourceIndex += 4;
|
||||
for (int32_t ix = startX + 1; ix <= endX; ix++, sourceIndex += 4) {
|
||||
for (size_t i = 0; i < 4; i++) {
|
||||
for (int32_t i = 0; i < int32_t(std::size(u)); i++) {
|
||||
if (Operator == MORPHOLOGY_OPERATOR_ERODE) {
|
||||
u[i] = umin(u[i], aSourceData[sourceIndex + i]);
|
||||
} else {
|
||||
|
|
@ -60,7 +60,7 @@ ApplyMorphologyHorizontal_Scalar(uint8_t* aSourceData, int32_t aSourceStride,
|
|||
}
|
||||
|
||||
int32_t destIndex = y * aDestStride + 4 * x;
|
||||
for (size_t i = 0; i < 4; i++) {
|
||||
for (int32_t i = 0; i < int32_t(std::size(u)); i++) {
|
||||
aDestData[destIndex+i] = u[i];
|
||||
}
|
||||
}
|
||||
|
|
@ -97,12 +97,12 @@ static void ApplyMorphologyVertical_Scalar(uint8_t* aSourceData, int32_t aSource
|
|||
for (int32_t x = aDestRect.x; x < aDestRect.XMost(); x++) {
|
||||
int32_t sourceIndex = startY * aSourceStride + 4 * x;
|
||||
uint8_t u[4];
|
||||
for (size_t i = 0; i < 4; i++) {
|
||||
for (int32_t i = 0; i < int32_t(std::size(u)); i++) {
|
||||
u[i] = aSourceData[sourceIndex + i];
|
||||
}
|
||||
sourceIndex += aSourceStride;
|
||||
for (int32_t iy = startY + 1; iy <= endY; iy++, sourceIndex += aSourceStride) {
|
||||
for (size_t i = 0; i < 4; i++) {
|
||||
for (int32_t i = 0; i < int32_t(std::size(u)); i++) {
|
||||
if (Operator == MORPHOLOGY_OPERATOR_ERODE) {
|
||||
u[i] = umin(u[i], aSourceData[sourceIndex + i]);
|
||||
} else {
|
||||
|
|
@ -112,7 +112,7 @@ static void ApplyMorphologyVertical_Scalar(uint8_t* aSourceData, int32_t aSource
|
|||
}
|
||||
|
||||
int32_t destIndex = y * aDestStride + 4 * x;
|
||||
for (size_t i = 0; i < 4; i++) {
|
||||
for (int32_t i = 0; i < int32_t(std::size(u)); i++) {
|
||||
aDestData[destIndex+i] = u[i];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -495,7 +495,7 @@ public:
|
|||
|
||||
private:
|
||||
// The font table data block
|
||||
const nsTArray<uint8_t> mTableData;
|
||||
nsTArray<uint8_t> mTableData;
|
||||
|
||||
// The blob destroy function needs to know the owning font entry
|
||||
// so that it can hold the font-entry's reference while modifying the
|
||||
|
|
@ -591,16 +591,12 @@ gfxFontEntry::ShareFontTableAndGetBlob(uint32_t aTag,
|
|||
mFontTableCache = MakeUnique<nsTHashtable<FontTableHashEntry>>(8);
|
||||
}
|
||||
|
||||
FontTableHashEntry* entry;
|
||||
if (MOZ_UNLIKELY(entry = mFontTableCache->GetEntry(aTag))) {
|
||||
// We must have been racing with another GetFontTable for the same table,
|
||||
// and it won the race and filled in the entry before us.
|
||||
// Ignore `aBuffer` in that case, and return a reference to the existing blob.
|
||||
return entry->GetBlob();
|
||||
FontTableHashEntry *entry = mFontTableCache->PutEntry(aTag);
|
||||
if (MOZ_UNLIKELY(!entry)) {
|
||||
// OOM or other issue storing the entry.
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
entry = mFontTableCache->PutEntry(aTag);
|
||||
|
||||
if (!aBuffer) {
|
||||
// ensure the entry is null
|
||||
entry->Clear();
|
||||
|
|
|
|||
|
|
@ -265,7 +265,8 @@ public:
|
|||
// unregisters the table from the font entry.
|
||||
//
|
||||
// Pass nullptr for aBuffer to indicate that the table is not present and
|
||||
// nullptr will be returned.
|
||||
// nullptr will be returned. Also returns nullptr on OOM or when there are
|
||||
// other issues storing the entry in the cache table.
|
||||
hb_blob_t *ShareFontTableAndGetBlob(uint32_t aTag,
|
||||
nsTArray<uint8_t>* aTable);
|
||||
|
||||
|
|
|
|||
|
|
@ -272,7 +272,9 @@ public:
|
|||
|
||||
virtual void GetAzureBackendInfo(mozilla::widget::InfoObject &aObj) {
|
||||
aObj.DefineProperty("AzureCanvasBackend", GetBackendName(mPreferredCanvasBackend));
|
||||
aObj.DefineProperty("AzureCanvasAccelerated", AllowOpenGLCanvas());
|
||||
if (mPreferredCanvasBackend == mozilla::gfx::BackendType::SKIA) {
|
||||
aObj.DefineProperty("AzureCanvasSkiaOpenGL", AllowOpenGLCanvas());
|
||||
}
|
||||
aObj.DefineProperty("AzureFallbackCanvasBackend", GetBackendName(mFallbackCanvasBackend));
|
||||
aObj.DefineProperty("AzureContentBackend", GetBackendName(mContentBackend));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ input:-moz-autofill-highlight,
|
|||
select:-moz-autofill-highlight,
|
||||
textarea:-moz-autofill-highlight {
|
||||
background-color: #fffcd0 !important;
|
||||
color: #090909;
|
||||
color: #090909 !important;
|
||||
}
|
||||
|
||||
input > .anonymous-div,
|
||||
|
|
|
|||
|
|
@ -620,22 +620,22 @@ nsHttpResponseHead::ParseHeaderLine_locked(const nsACString &line, bool original
|
|||
// permit only a single value here.
|
||||
if (nsHttp::ParseInt64(val.get(), &ignored, &len)) {
|
||||
mContentLength = len;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// If this is a negative content length then just ignore it
|
||||
LOG(("invalid content-length! %s\n", val.get()));
|
||||
}
|
||||
}
|
||||
else if (hdr == nsHttp::Content_Type) {
|
||||
} else if (hdr == nsHttp::Content_Type) {
|
||||
LOG(("ParseContentType [type=%s]\n", val.get()));
|
||||
bool dummy;
|
||||
net_ParseContentType(val,
|
||||
mContentType, mContentCharset, &dummy);
|
||||
}
|
||||
else if (hdr == nsHttp::Cache_Control)
|
||||
ParseCacheControl(val.get());
|
||||
else if (hdr == nsHttp::Pragma)
|
||||
} else if (hdr == nsHttp::Cache_Control) {
|
||||
// Re-parse merged header in its entirety. See Issue #2852
|
||||
ParseCacheControl(mHeaders.PeekHeader(hdr));
|
||||
} else if (hdr == nsHttp::Pragma) {
|
||||
ParsePragma(val.get());
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue