mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 973976 - Remove redundant work in CopyableCanvasLayer. r=jrmuizel
This operator was already initialized to OP_SOURCE, so no need to do it again.
This commit is contained in:
parent
7dd506f567
commit
5c70ac4603
@ -286,13 +286,6 @@ CopyableCanvasLayer::PaintWithOpacity(gfx::DrawTarget* aTarget,
|
||||
|
||||
DrawOptions options = DrawOptions(aOpacity, CompositionOp::OP_SOURCE);
|
||||
|
||||
// If content opaque, then save off current operator and set to source.
|
||||
// This ensures that alpha is not applied even if the source surface
|
||||
// has an alpha channel
|
||||
if (GetContentFlags() & CONTENT_OPAQUE) {
|
||||
options.mCompositionOp = CompositionOp::OP_SOURCE;
|
||||
}
|
||||
|
||||
if (aOperator != CompositionOp::OP_OVER) {
|
||||
options.mCompositionOp = aOperator;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user