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

Side by Side Diff: third_party/WebKit/Source/core/frame/Settings.cpp

Issue 1849023003: Remove the MSAA WebSetting, which is not read or used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rm-alphadepthetc
Patch Set: Created 4 years, 8 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv ed.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 ; 51 ;
52 } 52 }
53 53
54 #if OS(WIN) 54 #if OS(WIN)
55 static const bool defaultSelectTrailingWhitespaceEnabled = true; 55 static const bool defaultSelectTrailingWhitespaceEnabled = true;
56 #else 56 #else
57 static const bool defaultSelectTrailingWhitespaceEnabled = false; 57 static const bool defaultSelectTrailingWhitespaceEnabled = false;
58 #endif 58 #endif
59 59
60 Settings::Settings() 60 Settings::Settings()
61 : m_openGLMultisamplingEnabled(false) 61 :
62 #if DEBUG_TEXT_AUTOSIZING_ON_DESKTOP 62 #if DEBUG_TEXT_AUTOSIZING_ON_DESKTOP
63 , m_textAutosizingWindowSizeOverride(320, 480) 63 , m_textAutosizingWindowSizeOverride(320, 480)
piman 2016/04/02 00:47:40 :, is unlikely to work...
danakj 2016/04/02 00:57:05 oops, rekt. preprocessor ftl
64 , m_textAutosizingEnabled(true) 64 , m_textAutosizingEnabled(true)
65 #else 65 #else
66 , m_textAutosizingEnabled(false) 66 , m_textAutosizingEnabled(false)
67 #endif 67 #endif
68 SETTINGS_INITIALIZER_LIST 68 SETTINGS_INITIALIZER_LIST
69 { 69 {
70 } 70 }
71 71
72 PassOwnPtr<Settings> Settings::create() 72 PassOwnPtr<Settings> Settings::create()
73 { 73 {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void Settings::setMockScrollbarsEnabled(bool flag) 109 void Settings::setMockScrollbarsEnabled(bool flag)
110 { 110 {
111 ScrollbarTheme::setMockScrollbarsEnabled(flag); 111 ScrollbarTheme::setMockScrollbarsEnabled(flag);
112 } 112 }
113 113
114 bool Settings::mockScrollbarsEnabled() 114 bool Settings::mockScrollbarsEnabled()
115 { 115 {
116 return ScrollbarTheme::mockScrollbarsEnabled(); 116 return ScrollbarTheme::mockScrollbarsEnabled();
117 } 117 }
118 118
119 void Settings::setOpenGLMultisamplingEnabled(bool flag)
120 {
121 if (m_openGLMultisamplingEnabled == flag)
122 return;
123
124 m_openGLMultisamplingEnabled = flag;
125 invalidate(SettingsDelegate::MultisamplingChange);
126 }
127
128 } // namespace blink 119 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Settings.h ('k') | third_party/WebKit/Source/core/frame/SettingsDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698