Bug 616884. Add comment to note that stored clip region isn't updated. a=comment
authorTimothy Nikkel <tnikkel@gmail.com>
Thu, 09 Dec 2010 22:33:33 -0600
changeset 59056 5eaab51cd9374e956cca7bd057680d16d58f12af
parent 59055 45239c06759cb44ae99b7bbbd74bbddca38aea8a
child 59057 a7fc3787c93564e8efc4a6aa4addfe3b2282e521
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewerscomment
bugs616884
milestone2.0b8pre
Bug 616884. Add comment to note that stored clip region isn't updated. a=comment
widget/src/windows/nsWindow.h
--- a/widget/src/windows/nsWindow.h
+++ b/widget/src/windows/nsWindow.h
@@ -455,16 +455,22 @@ protected:
 
   /**
    * Misc.
    */
   UINT                    MapFromNativeToDOM(UINT aNativeKeyCode);
   void                    StopFlashing();
   static PRBool           IsTopLevelMouseExit(HWND aWnd);
   static void             SetupKeyModifiersSequence(nsTArray<KeyPair>* aArray, PRUint32 aModifiers);
+  /*
+   * If aIntersectWithExisting is true then the stored clip region isn't
+   * updated (only the actual clip on the window) so this should be called
+   * again soon afterward with aIntersectWithExisting false so the stored clip
+   * region does get updated.
+   */
   nsresult                SetWindowClipRegion(const nsTArray<nsIntRect>& aRects,
                                               PRBool aIntersectWithExisting);
   nsIntRegion             GetRegionToPaint(PRBool aForceFullRepaint, 
                                            PAINTSTRUCT ps, HDC aDC);
 #if !defined(WINCE)
   static void             ActivateOtherWindowHelper(HWND aWnd);
   static PRUint16         GetMouseInputSource();
 #endif