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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2235643002: Code cleanup related to unified text checker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableUnifiedTextCheckerByDefault
Patch Set: Rebased on removal of grammar-checking code Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 // Enabled antialiasing of clips for 2d canvas if requested on the command 989 // Enabled antialiasing of clips for 2d canvas if requested on the command
990 // line. 990 // line.
991 settings->setAntialiasedClips2dCanvasEnabled( 991 settings->setAntialiasedClips2dCanvasEnabled(
992 prefs.antialiased_clips_2d_canvas_enabled); 992 prefs.antialiased_clips_2d_canvas_enabled);
993 993
994 // Set MSAA sample count for 2d canvas if requested on the command line (or 994 // Set MSAA sample count for 2d canvas if requested on the command line (or
995 // default value if not). 995 // default value if not).
996 settings->setAccelerated2dCanvasMSAASampleCount( 996 settings->setAccelerated2dCanvasMSAASampleCount(
997 prefs.accelerated_2d_canvas_msaa_sample_count); 997 prefs.accelerated_2d_canvas_msaa_sample_count);
998 998
999 settings->setUnifiedTextCheckerEnabled(prefs.unified_textchecker_enabled);
1000
1001 // Tabs to link is not part of the settings. WebCore calls 999 // Tabs to link is not part of the settings. WebCore calls
1002 // ChromeClient::tabsToLinks which is part of the glue code. 1000 // ChromeClient::tabsToLinks which is part of the glue code.
1003 web_view->setTabsToLinks(prefs.tabs_to_links); 1001 web_view->setTabsToLinks(prefs.tabs_to_links);
1004 1002
1005 settings->setAllowDisplayOfInsecureContent( 1003 settings->setAllowDisplayOfInsecureContent(
1006 prefs.allow_displaying_insecure_content); 1004 prefs.allow_displaying_insecure_content);
1007 settings->setAllowRunningOfInsecureContent( 1005 settings->setAllowRunningOfInsecureContent(
1008 prefs.allow_running_insecure_content); 1006 prefs.allow_running_insecure_content);
1009 settings->setDisableReadingFromCanvas(prefs.disable_reading_from_canvas); 1007 settings->setDisableReadingFromCanvas(prefs.disable_reading_from_canvas);
1010 settings->setStrictMixedContentChecking(prefs.strict_mixed_content_checking); 1008 settings->setStrictMixedContentChecking(prefs.strict_mixed_content_checking);
(...skipping 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after
3079 return render_frame->focused_pepper_plugin(); 3077 return render_frame->focused_pepper_plugin();
3080 } 3078 }
3081 frame = frame->traverseNext(false); 3079 frame = frame->traverseNext(false);
3082 } 3080 }
3083 3081
3084 return nullptr; 3082 return nullptr;
3085 } 3083 }
3086 #endif 3084 #endif
3087 3085
3088 } // namespace content 3086 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698