mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 902525 - Part 7: Fix to turn off text anti-aliasing. r=roc
This commit is contained in:
parent
2a3e60d8fd
commit
9e7b0cbff4
@ -3167,15 +3167,18 @@ already_AddRefed<Layer>
|
|||||||
nsDisplayMixBlendMode::BuildLayer(nsDisplayListBuilder* aBuilder,
|
nsDisplayMixBlendMode::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||||
LayerManager* aManager,
|
LayerManager* aManager,
|
||||||
const ContainerParameters& aContainerParameters) {
|
const ContainerParameters& aContainerParameters) {
|
||||||
|
ContainerParameters newContainerParameters = aContainerParameters;
|
||||||
|
newContainerParameters.mDisableSubpixelAntialiasingInDescendants = true;
|
||||||
|
|
||||||
nsRefPtr<Layer> container = aManager->GetLayerBuilder()->
|
nsRefPtr<Layer> container = aManager->GetLayerBuilder()->
|
||||||
BuildContainerLayerFor(aBuilder, aManager, mFrame, this, mList,
|
BuildContainerLayerFor(aBuilder, aManager, mFrame, this, mList,
|
||||||
aContainerParameters, nullptr);
|
newContainerParameters, nullptr);
|
||||||
if (!container) {
|
if (!container) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
container->SetMixBlendMode(GetGFXBlendMode(mFrame->StyleDisplay()->mMixBlendMode));
|
container->SetMixBlendMode(GetGFXBlendMode(mFrame->StyleDisplay()->mMixBlendMode));
|
||||||
|
|
||||||
return container.forget();
|
return container.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user