зеркало из https://github.com/mozilla/gecko-dev.git
i cannot find the bug# it is for selecting inside forms. we need to turn off selection in certain frames based on the style. this sets up it to work once we figure out the style rule to set.
This commit is contained in:
Родитель
b9154c2dbb
Коммит
21ff71f017
|
@ -587,7 +587,15 @@ nsFrame::DisplaySelection(nsIPresContext& aPresContext, PRBool isOkToTurnOn)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (result)
|
||||
{
|
||||
// Prepare the block reflow engine
|
||||
const nsStyleUserInterface* userinterface;
|
||||
GetStyleData(eStyleStruct_UserInterface,
|
||||
(const nsStyleStruct*&) userinterface);
|
||||
if (userinterface)
|
||||
result = userinterface->mUserSelect;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -587,7 +587,15 @@ nsFrame::DisplaySelection(nsIPresContext& aPresContext, PRBool isOkToTurnOn)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (result)
|
||||
{
|
||||
// Prepare the block reflow engine
|
||||
const nsStyleUserInterface* userinterface;
|
||||
GetStyleData(eStyleStruct_UserInterface,
|
||||
(const nsStyleStruct*&) userinterface);
|
||||
if (userinterface)
|
||||
result = userinterface->mUserSelect;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче