зеркало из https://github.com/mozilla/gecko-dev.git
Bug 368445. Make ApplyOverflowClipping compute the right padding-rect when native themes override the border. r+sr+a=dbaron
This commit is contained in:
Родитель
b1d8dfbc8b
Коммит
73dee2aef5
|
@ -1003,9 +1003,8 @@ static PRBool ApplyOverflowClipping(nsDisplayListBuilder* aBuilder,
|
|||
// have clipping.
|
||||
}
|
||||
|
||||
aRect->SetRect(aBuilder->ToReferenceFrame(aFrame), aFrame->GetSize());
|
||||
const nsStyleBorder* borderStyle = aFrame->GetStyleContext()->GetStyleBorder();
|
||||
aRect->Deflate(borderStyle->GetBorder());
|
||||
*aRect = aFrame->GetPaddingRect() - aFrame->GetPosition() +
|
||||
aBuilder->ToReferenceFrame(aFrame);
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче