Command Controller refactoring and cleanup, mostly by mjudge with help by cmanske, b=170353, r=brade, sr=sfraser. EditingSession cleanup and new commands in \editor, b=174439, r=mjudge, sr=sfraser
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
#include "nsISelectionPrivate.h"
|
||||
#include "nsIController.h"
|
||||
#include "nsIControllers.h"
|
||||
#include "nsIEditorController.h"
|
||||
#include "nsIControllerContext.h"
|
||||
#include "nsIElementFactory.h"
|
||||
#include "nsIHTMLContent.h"
|
||||
#include "nsIEditorIMESupport.h"
|
||||
@@ -1412,7 +1412,7 @@ nsTextControlFrame::PreDestroy(nsIPresContext* aPresContext)
|
||||
rv = controllers->GetControllerAt(i, getter_AddRefs(controller));
|
||||
if (NS_SUCCEEDED(rv) && controller)
|
||||
{
|
||||
nsCOMPtr<nsIEditorController> editController = do_QueryInterface(controller);
|
||||
nsCOMPtr<nsIControllerContext> editController = do_QueryInterface(controller);
|
||||
if (editController)
|
||||
{
|
||||
editController->SetCommandRefCon(nsnull);
|
||||
@@ -1978,7 +1978,7 @@ nsTextControlFrame::CreateAnonymousContent(nsIPresContext* aPresContext,
|
||||
rv = controllers->GetControllerAt(i, getter_AddRefs(controller));
|
||||
if (NS_SUCCEEDED(rv) && controller)
|
||||
{
|
||||
nsCOMPtr<nsIEditorController> editController = do_QueryInterface(controller);
|
||||
nsCOMPtr<nsIControllerContext> editController = do_QueryInterface(controller);
|
||||
if (editController)
|
||||
{
|
||||
editController->SetCommandRefCon(mEditor);
|
||||
|
||||
Reference in New Issue
Block a user