Bug 478245 - Crash [@ nsEventStateManager::PreHandleEvent], r+sr=dbaron
This commit is contained in:
@@ -3950,11 +3950,11 @@ nsDocShell::DoGetPositionAndSize(PRInt32 * x, PRInt32 * y, PRInt32 * cx,
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::Repaint(PRBool aForce)
|
||||
{
|
||||
nsCOMPtr<nsPresContext> context;
|
||||
GetPresContext(getter_AddRefs(context));
|
||||
NS_ENSURE_TRUE(context, NS_ERROR_FAILURE);
|
||||
nsCOMPtr<nsIPresShell> presShell;
|
||||
GetPresShell(getter_AddRefs(presShell));
|
||||
NS_ENSURE_TRUE(presShell, NS_ERROR_FAILURE);
|
||||
|
||||
nsIViewManager* viewManager = context->GetViewManager();
|
||||
nsIViewManager* viewManager = presShell->GetViewManager();
|
||||
NS_ENSURE_TRUE(viewManager, NS_ERROR_FAILURE);
|
||||
|
||||
// what about aForce ?
|
||||
|
||||
Reference in New Issue
Block a user