diff --git a/editor/base/nsEditor.cpp b/editor/base/nsEditor.cpp index 63537d3bcb25..3f169a20d1b7 100644 --- a/editor/base/nsEditor.cpp +++ b/editor/base/nsEditor.cpp @@ -4369,12 +4369,7 @@ nsresult nsEditor::EndUpdateViewBatch() #else mViewManager->EndUpdateViewBatch(); #endif - nsCOMPtr presShell; - rv = GetPresShell(getter_AddRefs(presShell)); - if (NS_SUCCEEDED(rv) && presShell) - { - presShell->EndBatchingReflows(PR_TRUE); - } + presShell->EndBatchingReflows(PR_TRUE); } } diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index 63537d3bcb25..3f169a20d1b7 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -4369,12 +4369,7 @@ nsresult nsEditor::EndUpdateViewBatch() #else mViewManager->EndUpdateViewBatch(); #endif - nsCOMPtr presShell; - rv = GetPresShell(getter_AddRefs(presShell)); - if (NS_SUCCEEDED(rv) && presShell) - { - presShell->EndBatchingReflows(PR_TRUE); - } + presShell->EndBatchingReflows(PR_TRUE); } }