mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
fix for bug 5979
This commit is contained in:
parent
49ff440b55
commit
f60a7f5872
@ -217,10 +217,20 @@ nsHTMLEditRules::WillDoAction(nsIDOMSelection *aSelection,
|
||||
return nsTextEditRules::WillDoAction(aSelection, aInfo, aCancel);
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLEditRules::DidDoAction(nsIDOMSelection *aSelection,
|
||||
nsRulesInfo *aInfo, nsresult aResult)
|
||||
{
|
||||
// my kingdom for dynamic cast
|
||||
nsTextRulesInfo *info = NS_STATIC_CAST(nsTextRulesInfo*, aInfo);
|
||||
|
||||
switch (info->action)
|
||||
{
|
||||
case kInsertBreak:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return nsTextEditRules::DidDoAction(aSelection, aInfo, aResult);
|
||||
}
|
||||
|
||||
|
@ -217,10 +217,20 @@ nsHTMLEditRules::WillDoAction(nsIDOMSelection *aSelection,
|
||||
return nsTextEditRules::WillDoAction(aSelection, aInfo, aCancel);
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLEditRules::DidDoAction(nsIDOMSelection *aSelection,
|
||||
nsRulesInfo *aInfo, nsresult aResult)
|
||||
{
|
||||
// my kingdom for dynamic cast
|
||||
nsTextRulesInfo *info = NS_STATIC_CAST(nsTextRulesInfo*, aInfo);
|
||||
|
||||
switch (info->action)
|
||||
{
|
||||
case kInsertBreak:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return nsTextEditRules::DidDoAction(aSelection, aInfo, aResult);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user