[haiku-webkit-commits] r467 - webkit/trunk/WebKit/haiku/WebPositive

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Fri, 30 Apr 2010 16:33:18 +0000

Author: stippi
Date: Fri Apr 30 16:33:17 2010
New Revision: 467
URL: http://mmlr.dyndns.org/changeset/467

Log:
* Invalidate layout only when necessary.
* Icon view needs to update completely on resize.
-> Fixes graphics glitch when switching between icon and no icon.

Modified:
   webkit/trunk/WebKit/haiku/WebPositive/URLInputGroup.cpp

Modified: webkit/trunk/WebKit/haiku/WebPositive/URLInputGroup.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/WebPositive/URLInputGroup.cpp     Fri Apr 30 
15:40:36 2010        (r466)
+++ webkit/trunk/WebKit/haiku/WebPositive/URLInputGroup.cpp     Fri Apr 30 
16:33:17 2010        (r467)
@@ -529,7 +529,7 @@
 public:
        PageIconView()
                :
-               BView("page icon view", B_WILL_DRAW),
+               BView("page icon view", B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE),
                fIcon(NULL)
        {
                SetDrawingMode(B_OP_OVER);
@@ -578,13 +578,14 @@
        {
                if (icon == NULL && fIcon == NULL)
                        return;
+               if (!(fIcon != NULL && icon != NULL))
+                       InvalidateLayout();
                delete fIcon;
                if (icon)
                        fIcon = new BBitmap(icon);
                else
                        fIcon = NULL;
                Invalidate();
-               InvalidateLayout();
        }
 
 private:

Other related posts:

  • » [haiku-webkit-commits] r467 - webkit/trunk/WebKit/haiku/WebPositive - webkit