| OLD | NEW |
| 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 Loading... |
| 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) | |
| 62 #if DEBUG_TEXT_AUTOSIZING_ON_DESKTOP | 61 #if DEBUG_TEXT_AUTOSIZING_ON_DESKTOP |
| 63 , m_textAutosizingWindowSizeOverride(320, 480) | 62 : m_textAutosizingWindowSizeOverride(320, 480) |
| 64 , m_textAutosizingEnabled(true) | 63 , m_textAutosizingEnabled(true) |
| 65 #else | 64 #else |
| 66 , m_textAutosizingEnabled(false) | 65 : m_textAutosizingEnabled(false) |
| 67 #endif | 66 #endif |
| 68 SETTINGS_INITIALIZER_LIST | 67 SETTINGS_INITIALIZER_LIST |
| 69 { | 68 { |
| 70 } | 69 } |
| 71 | 70 |
| 72 PassOwnPtr<Settings> Settings::create() | 71 PassOwnPtr<Settings> Settings::create() |
| 73 { | 72 { |
| 74 return adoptPtr(new Settings); | 73 return adoptPtr(new Settings); |
| 75 } | 74 } |
| 76 | 75 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 void Settings::setMockScrollbarsEnabled(bool flag) | 108 void Settings::setMockScrollbarsEnabled(bool flag) |
| 110 { | 109 { |
| 111 ScrollbarTheme::setMockScrollbarsEnabled(flag); | 110 ScrollbarTheme::setMockScrollbarsEnabled(flag); |
| 112 } | 111 } |
| 113 | 112 |
| 114 bool Settings::mockScrollbarsEnabled() | 113 bool Settings::mockScrollbarsEnabled() |
| 115 { | 114 { |
| 116 return ScrollbarTheme::mockScrollbarsEnabled(); | 115 return ScrollbarTheme::mockScrollbarsEnabled(); |
| 117 } | 116 } |
| 118 | 117 |
| 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 | 118 } // namespace blink |
| OLD | NEW |