Bug 833033 - Schedule a paint when document state changes. r=roc
authorMatt Woodrow <mwoodrow@mozilla.com>
Wed, 30 Jan 2013 18:07:30 +1300
changeset 130208 ab658aec6a285a806b0757825b330be3c8e3d9e6
parent 130207 5fa5ec4e3c46ef5de189d317c2b6a9f352ac44f0
child 130209 0f78cc92ab1a40d1d97cfa105da8aa4883ca48c8
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs833033
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 833033 - Schedule a paint when document state changes. r=roc
layout/base/nsPresShell.cpp
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -4000,16 +4000,17 @@ PresShell::DocumentStatesChanged(nsIDocu
 
   if (aStateMask.HasState(NS_DOCUMENT_STATE_WINDOW_INACTIVE)) {
     nsIFrame* root = mFrameConstructor->GetRootFrame();
     if (root) {
       FrameLayerBuilder::InvalidateAllLayersForFrame(root);
       if (root->HasView()) {
         root->GetView()->SetForcedRepaint(true);
       }
+      root->SchedulePaint();
     }
   }
 }
 
 void
 PresShell::AttributeWillChange(nsIDocument* aDocument,
                                Element*     aElement,
                                int32_t      aNameSpaceID,