diff options
author | Cary Clark <cary@android.com> | 2009-04-30 09:31:31 -0400 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2009-05-01 09:00:02 -0400 |
commit | 19fea7269332fafa8a7f432a571f7b3127df4004 (patch) | |
tree | 3916d1888e9281add5fa975c7fe9510c236a48af /WebCore/platform/android/WidgetAndroid.cpp | |
parent | b2318f335c407832166c7568f3e50afedad5b9db (diff) | |
download | external_webkit-19fea7269332fafa8a7f432a571f7b3127df4004.zip external_webkit-19fea7269332fafa8a7f432a571f7b3127df4004.tar.gz external_webkit-19fea7269332fafa8a7f432a571f7b3127df4004.tar.bz2 |
add additional svg support and compliance
turn on SVG_FONTS, SVG_AS_IMAGE, SVG_FILTERS, SVG_FOREIGN_OBJECT, SVG_USE
getWebCore may return null for SVG ScrollView
add FontPlatformData.size()
add more stl sort interfaces
Diffstat (limited to 'WebCore/platform/android/WidgetAndroid.cpp')
-rw-r--r-- | WebCore/platform/android/WidgetAndroid.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/WebCore/platform/android/WidgetAndroid.cpp b/WebCore/platform/android/WidgetAndroid.cpp index 84ab26c..850721d 100644 --- a/WebCore/platform/android/WidgetAndroid.cpp +++ b/WebCore/platform/android/WidgetAndroid.cpp @@ -118,9 +118,11 @@ int Widget::screenWidth() const } if (!widget) return 0; - - return android::WebViewCore::getWebViewCore( - static_cast<const ScrollView*>(widget))->screenWidth(); + android::WebViewCore* core = android::WebViewCore::getWebViewCore( + static_cast<const ScrollView*>(widget)); + if (!core) + return 0; + return core->screenWidth(); } } // WebCore namepsace |