diff --git a/cef1/libcef/browser_webkit_init.cc b/cef1/libcef/browser_webkit_init.cc index 5884937df..9580d69f9 100644 --- a/cef1/libcef/browser_webkit_init.cc +++ b/cef1/libcef/browser_webkit_init.cc @@ -12,6 +12,7 @@ #include "base/metrics/stats_counters.h" #include "base/path_service.h" #include "base/utf_string_conversions.h" +#include "third_party/WebKit/Source/Platform/chromium/public/WebHyphenator.h" #include "third_party/WebKit/Source/Platform/chromium/public/WebPrerenderingSupport.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" @@ -21,6 +22,12 @@ #include "webkit/plugins/npapi/plugin_list.h" +// Stub implementation of WebKit::WebHyphenator. +class BrowserHyphenator : public WebKit::WebHyphenator { + public: + virtual ~BrowserHyphenator() {} +}; + // Stub implementation of WebKit::WebPrerenderingSupport. class BrowserPrerenderingSupport : public WebKit::WebPrerenderingSupport { public: @@ -110,6 +117,12 @@ WebKit::WebFileSystem* BrowserWebKitInit::fileSystem() { return file_system; } +WebKit::WebHyphenator* BrowserWebKitInit::hyphenator() { + if (!hyphenator_.get()) + hyphenator_.reset(new BrowserHyphenator); + return hyphenator_.get(); +} + bool BrowserWebKitInit::sandboxEnabled() { return false; } diff --git a/cef1/libcef/browser_webkit_init.h b/cef1/libcef/browser_webkit_init.h index 9c162ca54..2e8dbf373 100644 --- a/cef1/libcef/browser_webkit_init.h +++ b/cef1/libcef/browser_webkit_init.h @@ -23,6 +23,7 @@ #include "webkit/glue/webfileutilities_impl.h" #include "webkit/glue/webkitplatformsupport_impl.h" +class BrowserHyphenator; class BrowserPrerenderingSupport; namespace WebKit { @@ -41,6 +42,7 @@ class BrowserWebKitInit : public webkit_glue::WebKitPlatformSupportImpl { virtual WebKit::WebBlobRegistry* blobRegistry() OVERRIDE; virtual WebKit::WebCookieJar* cookieJar() OVERRIDE; virtual WebKit::WebFileSystem* fileSystem() OVERRIDE; + virtual WebKit::WebHyphenator* hyphenator() OVERRIDE; virtual bool sandboxEnabled() OVERRIDE; virtual WebKit::Platform::FileHandle databaseOpenFile( const WebKit::WebString& vfs_file_name, int desired_flags) OVERRIDE; @@ -105,6 +107,7 @@ class BrowserWebKitInit : public webkit_glue::WebKitPlatformSupportImpl { BrowserWebCookieJarImpl cookie_jar_; scoped_refptr blob_registry_; scoped_ptr prerendering_support_; + scoped_ptr hyphenator_; }; #endif // CEF_LIBCEF_BROWSER_WEBKIT_INIT_H_