Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1587)

Unified Diff: content/browser/tab_contents/tab_contents.cc

Issue 7779022: Allow gpu features for about:blank (unlike other about: schemes) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged up for relanding Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents.cc
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index ac7404c2009aee9974977d8d0e06149ff0ccf8ed..79fba861be2f1e48c0237d0249565f5eb31c6706 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -1818,7 +1818,8 @@ WebPreferences TabContents::GetWebkitPrefs() {
// Allow accelerated compositing for keyboard and log in screen.
GetURL().SchemeIs(chrome::kChromeUIScheme) ||
#endif
- GetURL().SchemeIs(chrome::kAboutScheme)) &&
+ (GetURL().SchemeIs(chrome::kAboutScheme) &&
+ GetURL().spec() != chrome::kAboutBlankURL)) &&
!web_prefs.allow_webui_compositing) {
web_prefs.accelerated_compositing_enabled = false;
web_prefs.accelerated_2d_canvas_enabled = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698