mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge backout.
This commit is contained in:
commit
07de2212e0
@ -1757,6 +1757,7 @@ DocAccessible::UpdateTree(Accessible* aContainer, nsIContent* aChildNode,
|
||||
// XXX: since select change insertion point of option contained by optgroup
|
||||
// then we need to have special processing for them (bug 690417).
|
||||
if (!aIsInsert && aChildNode->IsHTML(nsGkAtoms::optgroup) &&
|
||||
aContainer->GetContent() &&
|
||||
aContainer->GetContent()->IsHTML(nsGkAtoms::select)) {
|
||||
for (nsIContent* optContent = aChildNode->GetFirstChild(); optContent;
|
||||
optContent = optContent->GetNextSibling()) {
|
||||
|
@ -114,14 +114,14 @@ nsSVGMaskFrame::ComputeMaskAlpha(nsRenderingContext *aContext,
|
||||
uint8_t *data = image->Data();
|
||||
int32_t stride = image->Stride();
|
||||
|
||||
nsIntRect rect(0, 0, surfaceSize.width, surfaceSize.height);
|
||||
nsSVGUtils::UnPremultiplyImageDataAlpha(data, stride, rect);
|
||||
if (StyleSVG()->mColorInterpolation ==
|
||||
NS_STYLE_COLOR_INTERPOLATION_LINEARRGB) {
|
||||
nsSVGUtils::ConvertImageDataToLinearRGB(data, stride, rect);
|
||||
}
|
||||
|
||||
if (StyleSVGReset()->mMaskType == NS_STYLE_MASK_TYPE_LUMINANCE) {
|
||||
nsIntRect rect(0, 0, surfaceSize.width, surfaceSize.height);
|
||||
nsSVGUtils::UnPremultiplyImageDataAlpha(data, stride, rect);
|
||||
if (StyleSVG()->mColorInterpolation ==
|
||||
NS_STYLE_COLOR_INTERPOLATION_LINEARRGB) {
|
||||
nsSVGUtils::ConvertImageDataToLinearRGB(data, stride, rect);
|
||||
}
|
||||
|
||||
for (int32_t y = 0; y < surfaceSize.height; y++) {
|
||||
for (int32_t x = 0; x < surfaceSize.width; x++) {
|
||||
uint8_t *pixel = data + stride * y + 4 * x;
|
||||
|
Loading…
Reference in New Issue
Block a user