Bug 368760, r=mats, sr=roc, a=blocking1.9+

This commit is contained in:
2007-11-22 12:47:33 -08:00
parent 6d0d2e9ee9
commit 750ad2685e
14 changed files with 247 additions and 139 deletions

View File

@@ -296,7 +296,8 @@ nsTableCellFrame::DecorateForSelection(nsIRenderingContext& aRenderingContext,
nsPresContext* presContext = PresContext();
displaySelection = DisplaySelection(presContext);
if (displaySelection) {
nsFrameSelection *frameSelection = presContext->PresShell()->FrameSelection();
nsCOMPtr<nsFrameSelection> frameSelection =
presContext->PresShell()->FrameSelection();
if (frameSelection->GetTableCellSelection()) {
nscolor bordercolor;
@@ -492,7 +493,9 @@ nsTableCellFrame::SetSelected(nsPresContext* aPresContext,
// only this frame is considered
nsFrame::SetSelected(aPresContext, aRange, aSelected, aSpread);
if (aPresContext->PresShell()->FrameSelection()->GetTableCellSelection()) {
nsCOMPtr<nsFrameSelection> frameSelection =
aPresContext->PresShell()->FrameSelection();
if (frameSelection->GetTableCellSelection()) {
// Selection can affect content, border and outline
Invalidate(GetOverflowRect(), PR_FALSE);
}