mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 933019, part 6 - Remove code for handling Thebes backed gfxContext in imgFrame.cpp. r=Bas
This commit is contained in:
parent
ff738378ef
commit
6a0bd19c8c
@ -393,20 +393,6 @@ bool imgFrame::Draw(gfxContext *aContext, GraphicsFilter aFilter,
|
||||
if (mSinglePixelColor.a == 0.0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (aContext->IsCairo()) {
|
||||
gfxContext::GraphicsOperator op = aContext->CurrentOperator();
|
||||
if (op == gfxContext::OPERATOR_OVER && mSinglePixelColor.a == 1.0) {
|
||||
aContext->SetOperator(gfxContext::OPERATOR_SOURCE);
|
||||
}
|
||||
aContext->SetDeviceColor(ThebesColor(mSinglePixelColor));
|
||||
aContext->NewPath();
|
||||
aContext->Rectangle(aFill);
|
||||
aContext->Fill();
|
||||
aContext->SetOperator(op);
|
||||
aContext->SetDeviceColor(gfxRGBA(0,0,0,0));
|
||||
return true;
|
||||
}
|
||||
RefPtr<DrawTarget> dt = aContext->GetDrawTarget();
|
||||
dt->FillRect(ToRect(aFill),
|
||||
ColorPattern(mSinglePixelColor),
|
||||
|
Loading…
Reference in New Issue
Block a user