Make non-box frames pay better attention to nsITheme::GetWidgetBorder and GetWidgetPadding. b=366722 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219072 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -582,6 +582,12 @@ SyncFrameViewGeometryDependentProperties(nsPresContext* aPresContext,
|
||||
}
|
||||
|
||||
if (hasOverflowClip) {
|
||||
// XXX We should be able to replace the next 14 lines with just
|
||||
// overflowClipRect.Deflate(aFrame->GetUsedBorderAndPadding());
|
||||
// but unfortunately this function gets called during frame
|
||||
// construction (why?), and GetUsedBorderAndPadding asserts when
|
||||
// called on a frame that hasn't been reflowed yet (for good
|
||||
// reason).
|
||||
const nsStyleBorder* borderStyle = aStyleContext->GetStyleBorder();
|
||||
const nsStylePadding* paddingStyle = aStyleContext->GetStylePadding();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user