[haiku-webkit-commits] r363 - webkit/trunk/WebKit/haiku/API

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Fri, 02 Apr 2010 14:21:02 +0000

Author: stippi
Date: Fri Apr  2 14:21:02 2010
New Revision: 363
URL: http://mmlr.dyndns.org/changeset/363

Log:
The code for repainting a page that was supposed to be painted while it was
invisible had no effect. This fix solves pages being blank or otherwise dirty
when switching to them after they loaded in the background.

Modified:
   webkit/trunk/WebKit/haiku/API/WebPage.cpp
   webkit/trunk/WebKit/haiku/API/WebView.cpp

Modified: webkit/trunk/WebKit/haiku/API/WebPage.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/API/WebPage.cpp   Fri Apr  2 13:48:17 2010        
(r362)
+++ webkit/trunk/WebKit/haiku/API/WebPage.cpp   Fri Apr  2 14:21:02 2010        
(r363)
@@ -985,7 +985,7 @@
     // Trigger an internal repaint if the page was supposed to be repainted
     // while it was invisible.
     if (fPageVisible && fPageDirty)
-        paint(BRect(), false, false, true);
+        paint(viewBounds(), false, false, true);
 }
 
 void BWebPage::handleFrameResized(const BMessage* message)

Modified: webkit/trunk/WebKit/haiku/API/WebView.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/API/WebView.cpp   Fri Apr  2 13:48:17 2010        
(r362)
+++ webkit/trunk/WebKit/haiku/API/WebView.cpp   Fri Apr  2 14:21:02 2010        
(r363)
@@ -23,7 +23,7 @@
  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 #include "config.h"

Other related posts:

  • » [haiku-webkit-commits] r363 - webkit/trunk/WebKit/haiku/API - webkit