Continuing nsIPresContext deCOMtamination (bug 229371). Remove GetImageLoadFlags (unused). Make failure to fetch the LookAndFeel service cause Init() to fail, don't null check it after that, and inlined the getter. Move IOService caching to nsImageFrame, the only user of it. r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@151636 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -344,11 +344,9 @@ nsTableCellFrame::DecorateForSelection(nsIPresContext* aPresContext,
|
||||
bordercolor = NS_RGB(176,176,176);// disabled color
|
||||
}
|
||||
else {
|
||||
nsILookAndFeel* look = nsnull;
|
||||
if (NS_SUCCEEDED(aPresContext->GetLookAndFeel(&look)) && look) {
|
||||
look->GetColor(nsILookAndFeel::eColor_TextSelectBackground, bordercolor);
|
||||
NS_RELEASE(look);
|
||||
}
|
||||
aPresContext->LookAndFeel()->
|
||||
GetColor(nsILookAndFeel::eColor_TextSelectBackground,
|
||||
bordercolor);
|
||||
}
|
||||
float t2pfloat;
|
||||
if (NS_SUCCEEDED(aPresContext->GetPixelsToTwips(&t2pfloat)))
|
||||
|
||||
Reference in New Issue
Block a user