Backed out changeset 919de32d4905 (bug 1525134) for build bustages. CLOSED TREE

This commit is contained in:
Razvan Maries
2019-02-05 19:36:46 +02:00
parent 8bce3786c3
commit bb63ca688a
17 changed files with 252 additions and 114 deletions

View File

@@ -892,8 +892,12 @@ void nsTextBoxFrame::DidSetComputedStyle(ComputedStyle* aOldComputedStyle) {
return;
}
const nsStyleText* oldTextStyle = aOldComputedStyle->StyleText();
if (oldTextStyle->mTextTransform != StyleText()->mTextTransform) {
const nsStyleText* oldTextStyle = aOldComputedStyle->PeekStyleText();
// We should really have oldTextStyle here, since we asked for our
// nsStyleText during Init(), but if it's not there for some reason
// just assume the worst and recompute mTitle.
if (!oldTextStyle ||
oldTextStyle->mTextTransform != StyleText()->mTextTransform) {
RecomputeTitle();
UpdateAccessTitle();
}