Skip to content

Commit

Permalink
Remove from MiniBrowser code things already done by WebView class.
Browse files Browse the repository at this point in the history
Reviewed by: Marcelo Lira
  • Loading branch information
hugopl committed Jul 17, 2013
1 parent df1a6a9 commit a62e74d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Tools/MiniBrowser/nix/MiniBrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,11 @@ MiniBrowser::MiniBrowser(GMainLoop* mainLoop, const Options& options)
g_main_loop_ref(m_mainLoop);

WKPreferencesRef preferences = WKPageGroupGetPreferences(m_pageGroup.get());
WKPreferencesSetAcceleratedCompositingEnabled(preferences, true);
WKPreferencesSetFrameFlatteningEnabled(preferences, true);
WKPreferencesSetDeveloperExtrasEnabled(preferences, true);
WKPreferencesSetWebGLEnabled(preferences, true);
WKPreferencesSetOfflineWebApplicationCacheEnabled(preferences, true);

char* debugVisualsEnvironment = getenv("WEBKIT_SHOW_COMPOSITING_DEBUG_VISUALS");
bool showDebugVisuals = debugVisualsEnvironment && !strcmp(debugVisualsEnvironment, "1");
if (showDebugVisuals) {
cout << "Showing debug visuals...\n";
WKPreferencesSetCompositingBordersVisible(preferences, true);
WKPreferencesSetCompositingRepaintCountersVisible(preferences, true);
}

m_view = WKViewCreate(m_context.get(), m_pageGroup.get());

NIXViewClient nixViewClient;
Expand Down

0 comments on commit a62e74d

Please sign in to comment.