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 120334 ab658aec6a285a806b0757825b330be3c8e3d9e6
parent 120333 5fa5ec4e3c46ef5de189d317c2b6a9f352ac44f0
child 120335 0f78cc92ab1a40d1d97cfa105da8aa4883ca48c8
push id24246
push userryanvm@gmail.com
push dateWed, 30 Jan 2013 13:05:37 +0000
treeherdermozilla-central@5f9775715519 [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,