Bug 820561 - Reduce unnecessary full screen painting. r=roc, a=akeybl
authorAnthony Jones <ajones@mozilla.com>
Sun, 16 Dec 2012 19:20:02 -0500
changeset 118919 bde2bb5f6cb2a0a332019dba699389a0285e8035
parent 118918 701a1a0016b32d96f4b5bc1a9103c2b0decb51e2
child 118920 c2281eb93c354e58bee35e535ae9eb9051162449
push id2984
push userryanvm@gmail.com
push dateTue, 18 Dec 2012 03:08:28 +0000
treeherdermozilla-aurora@68ae24dc739c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, akeybl
bugs820561
milestone19.0a2
Bug 820561 - Reduce unnecessary full screen painting. r=roc, a=akeybl
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) {