Bug 841789, patch 1: Rename nsIFrame::GetStyleContext() to nsIFrame::StyleContext() since it can never return null. r=dholbert
This makes it conform to our convention that getters returning pointers that can never be null do not begin with "Get".
This commit is contained in:
@@ -241,7 +241,7 @@ nsButtonFrameRenderer::PaintBorderAndBackground(nsPresContext* aPresContext,
|
||||
nsRect buttonRect;
|
||||
GetButtonRect(aRect, buttonRect);
|
||||
|
||||
nsStyleContext* context = mFrame->GetStyleContext();
|
||||
nsStyleContext* context = mFrame->StyleContext();
|
||||
|
||||
nsCSSRendering::PaintBackground(aPresContext, aRenderingContext, mFrame,
|
||||
aDirtyRect, buttonRect, aBGFlags);
|
||||
@@ -343,7 +343,7 @@ void
|
||||
nsButtonFrameRenderer::ReResolveStyles(nsPresContext* aPresContext)
|
||||
{
|
||||
// get all the styles
|
||||
nsStyleContext* context = mFrame->GetStyleContext();
|
||||
nsStyleContext* context = mFrame->StyleContext();
|
||||
nsStyleSet *styleSet = aPresContext->StyleSet();
|
||||
|
||||
// style for the inner such as a dotted line (Windows)
|
||||
|
||||
Reference in New Issue
Block a user