diff options
author | Ben Murdoch <benm@google.com> | 2011-07-27 13:53:42 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-08-16 16:40:55 +0100 |
commit | ce03c1c1203621e552d41a8b3831837636f364a9 (patch) | |
tree | d2ec3d82cadc9d5a66ea73ade2932de955e4618f /Source/WebKit/android/jni/WebCoreFrameBridge.h | |
parent | 0f0dadb092f4aaa1a34d293f9c4b2a14e3b3e3df (diff) | |
download | external_webkit-ce03c1c1203621e552d41a8b3831837636f364a9.zip external_webkit-ce03c1c1203621e552d41a8b3831837636f364a9.tar.gz external_webkit-ce03c1c1203621e552d41a8b3831837636f364a9.tar.bz2 |
Lazily decode assets for form controls.
Rather than decoding the graphics when we create a WebView, wait until
we actually need them. This saves about 50ms on native WebView creation time.
Requires frameworks/base change:
I5a2e87d03d73fa74ebb00c33567783225ed97d3a
Bug: 5084146
Change-Id: Ia6c17634f535ed75b2a0757ac4d53f1a0befb78a
Diffstat (limited to 'Source/WebKit/android/jni/WebCoreFrameBridge.h')
-rw-r--r-- | Source/WebKit/android/jni/WebCoreFrameBridge.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebKit/android/jni/WebCoreFrameBridge.h b/Source/WebKit/android/jni/WebCoreFrameBridge.h index f02c1e9..99ca459 100644 --- a/Source/WebKit/android/jni/WebCoreFrameBridge.h +++ b/Source/WebKit/android/jni/WebCoreFrameBridge.h @@ -158,8 +158,8 @@ class WebFrame : public WebCoreRefObject { bool shouldSaveFormData(); void saveFormData(WebCore::HTMLFormElement*); - const WebCore::RenderSkinAndroid* renderSkins() const { return m_renderSkins; } - void setRenderSkins(const WebCore::RenderSkinAndroid* skins) { m_renderSkins = skins; } + WebCore::RenderSkinAndroid* renderSkins() const { return m_renderSkins; } + void setRenderSkins(WebCore::RenderSkinAndroid* skins) { m_renderSkins = skins; } // Convert a URL from potential punycode I18nDomainName to safe to-be-displayed Unicode. static WTF::String convertIDNToUnicode(const WebCore::KURL& kurl); @@ -171,7 +171,7 @@ class WebFrame : public WebCoreRefObject { WTF::String mUserAgent; bool mBlockNetworkLoads; bool mUserInitiatedAction; - const WebCore::RenderSkinAndroid* m_renderSkins; + WebCore::RenderSkinAndroid* m_renderSkins; }; } // namespace android |