зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1154150 - Only create a FontFaceSet if we find @font-face rules. r=jdaggett
This commit is contained in:
Родитель
184c096a54
Коммит
167b35116f
|
@ -2110,10 +2110,14 @@ nsPresContext::FlushUserFontSet()
|
|||
return;
|
||||
}
|
||||
|
||||
if (!mFontFaceSet) {
|
||||
bool changed = false;
|
||||
|
||||
if (!mFontFaceSet && !rules.IsEmpty()) {
|
||||
mFontFaceSet = new FontFaceSet(mDocument->GetInnerWindow(), this);
|
||||
}
|
||||
bool changed = mFontFaceSet->UpdateRules(rules);
|
||||
if (mFontFaceSet) {
|
||||
changed = mFontFaceSet->UpdateRules(rules);
|
||||
}
|
||||
|
||||
// We need to enqueue a style change reflow (for later) to
|
||||
// reflect that we're modifying @font-face rules. (However,
|
||||
|
|
Загрузка…
Ссылка в новой задаче