зеркало из https://github.com/mozilla/gecko-dev.git
bug 1270795 - do not generate any background items in glyph path generating process; r=jfkthame
MozReview-Commit-ID: GbhxyY93Vur --HG-- extra : rebase_source : 2eb309017fe2dcc33424de81eecdf4405cd38334
This commit is contained in:
Родитель
90edca9757
Коммит
a4e3f835fa
|
@ -2406,6 +2406,10 @@ nsDisplayBackgroundImage::AppendBackgroundItemsToTop(nsDisplayListBuilder* aBuil
|
|||
nsDisplayList* aList,
|
||||
bool aAllowWillPaintBorderOptimization)
|
||||
{
|
||||
if (aBuilder->IsForGenerateGlyphPath()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
nsStyleContext* bgSC = nullptr;
|
||||
const nsStyleBackground* bg = nullptr;
|
||||
nsRect bgRect = aBackgroundRect + aBuilder->ToReferenceFrame(aFrame);
|
||||
|
|
|
@ -1890,10 +1890,6 @@ nsFrame::DisplayBorderBackgroundOutline(nsDisplayListBuilder* aBuilder,
|
|||
return;
|
||||
}
|
||||
|
||||
if (aBuilder->IsForGenerateGlyphPath()) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsCSSShadowArray* shadows = StyleEffects()->mBoxShadow;
|
||||
if (shadows && shadows->HasShadowWithInset(false)) {
|
||||
aLists.BorderBackground()->AppendNewToTop(new (aBuilder)
|
||||
|
|
Загрузка…
Ссылка в новой задаче