diff options
author | Kristian Monsen <kristianm@google.com> | 2011-10-12 16:47:21 +0100 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2011-10-12 16:47:21 +0100 |
commit | 275d382a3335934e6edebdb9d07fe87b404cead4 (patch) | |
tree | c4955e07513f5083e359cd1b6590efe9bd3f26d1 /Source | |
parent | e360cb4d916ace9ec3bb7163ab6d8b827470af06 (diff) | |
download | external_webkit-275d382a3335934e6edebdb9d07fe87b404cead4.zip external_webkit-275d382a3335934e6edebdb9d07fe87b404cead4.tar.gz external_webkit-275d382a3335934e6edebdb9d07fe87b404cead4.tar.bz2 |
Part of fix for bug 5152544 Reduce the number of warnings
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
Diffstat (limited to 'Source')
-rw-r--r-- | Source/WebKit/android/nav/WebView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp index 1dcc7c4..b5597e7 100644 --- a/Source/WebKit/android/nav/WebView.cpp +++ b/Source/WebKit/android/nav/WebView.cpp @@ -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(); |