Backed out changeset 919de32d4905 (bug 1525134) for build bustages. CLOSED TREE
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user