Bug 527977 followup. Fix build bustage.

This commit is contained in:
Boris Zbarsky 2010-03-02 19:04:44 -05:00
Родитель fc6be95da8
Коммит a7252b1a19
1 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -536,8 +536,7 @@ nsFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
// We don't want to set the property if one already exists. // We don't want to set the property if one already exists.
nsMargin oldValue(0, 0, 0, 0); nsMargin oldValue(0, 0, 0, 0);
nsMargin newValue(0, 0, 0, 0); nsMargin newValue(0, 0, 0, 0);
const nsStyleMargin* oldMargin = static_cast<const nsStyleMargin*> const nsStyleMargin* oldMargin = aOldStyleContext->PeekStyleMargin();
(aOldStyleContext->PeekStyleData(eStyleStruct_Margin));
if (oldMargin && oldMargin->GetMargin(oldValue)) { if (oldMargin && oldMargin->GetMargin(oldValue)) {
if ((!GetStyleMargin()->GetMargin(newValue) || oldValue != newValue) && if ((!GetStyleMargin()->GetMargin(newValue) || oldValue != newValue) &&
!GetProperty(nsGkAtoms::usedMarginProperty)) { !GetProperty(nsGkAtoms::usedMarginProperty)) {
@ -547,8 +546,7 @@ nsFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
} }
} }
const nsStylePadding* oldPadding = static_cast<const nsStylePadding*> const nsStylePadding* oldPadding = aOldStyleContext->PeekStylePadding();
(aOldStyleContext->PeekStyleData(eStyleStruct_Padding));
if (oldPadding && oldPadding->GetPadding(oldValue)) { if (oldPadding && oldPadding->GetPadding(oldValue)) {
if ((!GetStylePadding()->GetPadding(newValue) || oldValue != newValue) && if ((!GetStylePadding()->GetPadding(newValue) || oldValue != newValue) &&
!GetProperty(nsGkAtoms::usedPaddingProperty)) { !GetProperty(nsGkAtoms::usedPaddingProperty)) {
@ -558,8 +556,7 @@ nsFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
} }
} }
const nsStyleBorder* oldBorder = static_cast<const nsStyleBorder*> const nsStyleBorder* oldBorder = aOldStyleContext->PeekStyleBorder();
(aOldStyleContext->PeekStyleData(eStyleStruct_Border));
if (oldBorder) { if (oldBorder) {
oldValue = oldBorder->GetActualBorder(); oldValue = oldBorder->GetActualBorder();
newValue = GetStyleBorder()->GetActualBorder(); newValue = GetStyleBorder()->GetActualBorder();