зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1269971 - Part 1. Rename IsForGenerateGlyphPath to IsForGenerateGlyphMask; r=jfkthame
MozReview-Commit-ID: 80DZsEAvXxB --HG-- extra : rebase_source : 2b6205ad119265679b28d06056c3b433aab445c8
This commit is contained in:
Родитель
bf8a5a183d
Коммит
ea85bf6191
|
@ -292,7 +292,7 @@ public:
|
|||
* items should only create glyph paths in target context, instead of
|
||||
* drawing text into it.
|
||||
*/
|
||||
bool IsForGenerateGlyphPath()
|
||||
bool IsForGenerateGlyphMask()
|
||||
{
|
||||
return mMode == nsDisplayListBuilderMode::GENERATE_GLYPH;
|
||||
}
|
||||
|
|
|
@ -3443,7 +3443,7 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
|||
|
||||
aFrame->BuildDisplayListForStackingContext(&builder, dirtyRect, &list);
|
||||
#ifdef DEBUG
|
||||
if (builder.IsForGenerateGlyphPath()) {
|
||||
if (builder.IsForGenerateGlyphMask()) {
|
||||
// PaintFrame is called to generate text glyph by
|
||||
// nsDisplayBackgroundImage::Paint or nsDisplayBackgroundColor::Paint.
|
||||
//
|
||||
|
|
|
@ -2510,7 +2510,7 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder,
|
|||
buildingDisplayList.SetReferenceFrameAndCurrentOffset(outerReferenceFrame,
|
||||
GetOffsetToCrossDoc(outerReferenceFrame));
|
||||
|
||||
if (!aBuilder->IsForGenerateGlyphPath()) {
|
||||
if (!aBuilder->IsForGenerateGlyphMask()) {
|
||||
nsDisplayTransform *transformItem =
|
||||
new (aBuilder) nsDisplayTransform(aBuilder, this, &resultList, dirtyRect);
|
||||
resultList.AppendNewToTop(transformItem);
|
||||
|
@ -2604,7 +2604,7 @@ nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder,
|
|||
if (aBuilder->IsBackgroundOnly())
|
||||
return;
|
||||
|
||||
if (aBuilder->IsForGenerateGlyphPath()) {
|
||||
if (aBuilder->IsForGenerateGlyphMask()) {
|
||||
if (nsGkAtoms::textFrame != aChild->GetType() && aChild->IsLeaf()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -4771,7 +4771,7 @@ nsDisplayText::Paint(nsDisplayListBuilder* aBuilder,
|
|||
pixelVisible.Inflate(2);
|
||||
pixelVisible.RoundOut();
|
||||
|
||||
if (!aBuilder->IsForGenerateGlyphPath()) {
|
||||
if (!aBuilder->IsForGenerateGlyphMask()) {
|
||||
ctx->NewPath();
|
||||
ctx->Rectangle(pixelVisible);
|
||||
ctx->Clip();
|
||||
|
@ -4798,7 +4798,7 @@ nsDisplayText::Paint(nsDisplayListBuilder* aBuilder,
|
|||
|
||||
params.dirtyRect = extraVisible;
|
||||
nsTextFrame::DrawPathCallbacks callbacks;
|
||||
if (aBuilder->IsForGenerateGlyphPath()) {
|
||||
if (aBuilder->IsForGenerateGlyphMask()) {
|
||||
params.callbacks = &callbacks;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче