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:
L. David Baron
2013-02-15 21:38:33 -08:00
parent 9c0f4f1e6a
commit 3c5d51984d
53 changed files with 189 additions and 189 deletions

View File

@@ -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)