Bug 619273 - Move the selection state bit from frames to content nodes. r=smaug

This commit is contained in:
Mats Palmgren
2011-12-20 10:15:41 +01:00
parent e2aa0ef667
commit 8f89cccd9c
25 changed files with 481 additions and 352 deletions

View File

@@ -89,12 +89,7 @@ bool
nsMathMLmoFrame::IsFrameInSelection(nsIFrame* aFrame)
{
NS_ASSERTION(aFrame, "null arg");
if (!aFrame)
return false;
bool isSelected = false;
aFrame->GetSelected(&isSelected);
if (!isSelected)
if (!aFrame || !aFrame->IsSelected())
return false;
const nsFrameSelection* frameSelection = aFrame->GetConstFrameSelection();