diff options
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/api/public/WebKitClient.h | 2 | ||||
-rw-r--r-- | webkit/api/src/ChromiumBridge.cpp | 12 |
2 files changed, 9 insertions, 5 deletions
diff --git a/webkit/api/public/WebKitClient.h b/webkit/api/public/WebKitClient.h index 7dc158a..4ebbb25 100644 --- a/webkit/api/public/WebKitClient.h +++ b/webkit/api/public/WebKitClient.h @@ -54,7 +54,7 @@ namespace WebKit { // Must return non-null. virtual WebMimeRegistry* mimeRegistry() = 0; - // May return null on some platforms. + // May return null if sandbox support is not necessary virtual WebSandboxSupport* sandboxSupport() = 0; // May return null on some platforms. diff --git a/webkit/api/src/ChromiumBridge.cpp b/webkit/api/src/ChromiumBridge.cpp index b82bc28..a544baa 100644 --- a/webkit/api/src/ChromiumBridge.cpp +++ b/webkit/api/src/ChromiumBridge.cpp @@ -1,10 +1,10 @@ /* * Copyright (C) 2009 Google Inc. All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: - * + * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above @@ -14,7 +14,7 @@ * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -148,7 +148,11 @@ void ChromiumBridge::prefetchDNS(const String& hostname) #if defined(OS_WIN) bool ChromiumBridge::ensureFontLoaded(HFONT font) { - return webKitClient()->sandboxSupport()->ensureFontLoaded(font); + WebSandboxSupport* ss = webKitClient()->sandboxSupport(); + + // if there is no sandbox, then we can assume the font + // was able to be loaded successfully already + return ss ? ss->ensureFontLoaded(font) : true; } #endif |