From da3d7e4c5c71e71ba7b8e1517e6d14bf747f591e Mon Sep 17 00:00:00 2001 From: "chrishtr@chromium.org" Date: Fri, 8 Aug 2014 21:31:30 +0000 Subject: Cache the current WebPreferences on RenderViewHostImpl (try #2). This makes lookups of a WebPreferences field fast. In order do this, add code to listen to all preferences updates in order to recompute the cache. The first version was rolled back because some code in Blink that listened for inspector prefs updates incorrectly sent the preference update back to Chromium, causing an infinite loop. BUG=390799 Review URL: https://codereview.chromium.org/444843002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288438 0039d316-1c4b-4281-b951-d872f2087c98 --- content/public/test/web_contents_tester.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/public/test/web_contents_tester.h') diff --git a/content/public/test/web_contents_tester.h b/content/public/test/web_contents_tester.h index 73ccb7e..c3b52fc 100644 --- a/content/public/test/web_contents_tester.h +++ b/content/public/test/web_contents_tester.h @@ -86,8 +86,8 @@ class WebContentsTester { const Referrer& referrer, PageTransition transition) = 0; - // Promote GetWebkitPrefs to public. - virtual WebPreferences TestGetWebkitPrefs() = 0; + // Promote ComputeWebkitPrefs to public. + virtual WebPreferences TestComputeWebkitPrefs() = 0; }; } // namespace content -- cgit v1.1