summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-05-13 09:46:15 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-05-13 09:46:15 -0700
commitb94a30def72cdfa7401b9b0b960385e3a92afa94 (patch)
treee2fc4fbdfdeba9a630057df7b82dbc9c36b00e20 /WebCore
parent835eaba968882cdec3f81bd389e26fbdce005b43 (diff)
parente99258ca6edd7c8df76ccf8842abfd7bff7c49a1 (diff)
downloadexternal_webkit-b94a30def72cdfa7401b9b0b960385e3a92afa94.zip
external_webkit-b94a30def72cdfa7401b9b0b960385e3a92afa94.tar.gz
external_webkit-b94a30def72cdfa7401b9b0b960385e3a92afa94.tar.bz2
Merge "Fix crash in fast/frames/iframe-access-screen-of-deleted.html"
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/android/ScreenAndroid.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/platform/android/ScreenAndroid.cpp b/WebCore/platform/android/ScreenAndroid.cpp
index 21df08a..70cf794 100644
--- a/WebCore/platform/android/ScreenAndroid.cpp
+++ b/WebCore/platform/android/ScreenAndroid.cpp
@@ -68,6 +68,9 @@ bool screenIsMonochrome(Widget* page)
// the accuracy of these number are not too important.
FloatRect screenRect(Widget* page)
{
+ if (!page)
+ return FloatRect();
+
IntRect rect = page->root()->platformWidget()->getBounds();
return FloatRect(0.0, 0.0, rect.width(), rect.height());
}
@@ -76,6 +79,9 @@ FloatRect screenRect(Widget* page)
// to position and resize windows (usually to full screen).
FloatRect screenAvailableRect(Widget* page)
{
+ if (!page)
+ return FloatRect();
+
IntRect rect = page->root()->platformWidget()->getBounds();
return FloatRect(0.0, 0.0, rect.width(), rect.height());
}