OSDN Git Service

Part of fix for bug 5152544 Reduce the number of warnings
authorKristian Monsen <kristianm@google.com>
Wed, 12 Oct 2011 15:47:21 +0000 (16:47 +0100)
committerKristian Monsen <kristianm@google.com>
Wed, 12 Oct 2011 15:47:21 +0000 (16:47 +0100)
The code is old, so must be some a compiler change that makes
them show up now. Initializing the rect is good anyway, and it
removes the warning.

Change-Id: If076df1250e0c9b9980db0387cd7f99ecb00dc0c

Source/WebKit/android/nav/WebView.cpp

index 1dcc7c4..b5597e7 100644 (file)
@@ -420,7 +420,7 @@ void scrollRectOnScreen(const IntRect& rect)
 {
     if (rect.isEmpty())
         return;
-    SkRect visible;
+    SkRect visible = SkRect::MakeEmpty();
     calcOurContentVisibleRect(&visible);
     int dx = 0;
     int left = rect.x();