Bug 820561 - Reduce unnecessary full screen painting. r=roc
authorAnthony Jones <ajones@mozilla.com>
Sun, 16 Dec 2012 19:20:02 -0500
changeset 116212 abfeb0733dddbdf60987851c87101fc67dcbd68c
parent 116211 970952fa2706582c994b83b6e5d08917624d13ec
child 116213 85508731e988b67daf87e53f05d0a661d9641fdc
push id19794
push userryanvm@gmail.com
push dateMon, 17 Dec 2012 00:20:06 +0000
treeherdermozilla-inbound@2992fbea1370 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs820561
milestone20.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 820561 - Reduce unnecessary full screen painting. r=roc
dom/base/nsDOMWindowUtils.cpp
--- a/dom/base/nsDOMWindowUtils.cpp
+++ b/dom/base/nsDOMWindowUtils.cpp
@@ -373,17 +373,17 @@ nsDOMWindowUtils::SetDisplayPortForEleme
       // separate notification just for this change.
       nsPresContext* presContext = GetPresContext();
       MaybeReflowForInflationScreenWidthChange(presContext);
     }
   }
 
   nsIFrame* rootFrame = presShell->FrameManager()->GetRootFrame();
   if (rootFrame) {
-    rootFrame->InvalidateFrame();
+    rootFrame->SchedulePaint();
 
     // If we are hiding something that is a display root then send empty paint
     // transaction in order to release retained layers because it won't get
     // any more paint requests when it is hidden.
     if (displayport.IsEmpty() &&
         rootFrame == nsLayoutUtils::GetDisplayRootFrame(rootFrame)) {
       nsCOMPtr<nsIWidget> widget = GetWidget();
       if (widget) {