| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // 99) MacEditingBehavior is used a fallback. | 86 // 99) MacEditingBehavior is used a fallback. |
| 87 static EditingBehaviorType editingBehaviorTypeForPlatform() | 87 static EditingBehaviorType editingBehaviorTypeForPlatform() |
| 88 { | 88 { |
| 89 return | 89 return |
| 90 #if OS(MACOSX) | 90 #if OS(MACOSX) |
| 91 EditingMacBehavior | 91 EditingMacBehavior |
| 92 #elif OS(WIN) | 92 #elif OS(WIN) |
| 93 EditingWindowsBehavior | 93 EditingWindowsBehavior |
| 94 #elif OS(ANDROID) | 94 #elif OS(ANDROID) |
| 95 EditingAndroidBehavior | 95 EditingAndroidBehavior |
| 96 #elif OS(POSIX) | 96 #else // Rest of the UNIX-like systems |
| 97 EditingUnixBehavior | 97 EditingUnixBehavior |
| 98 #else | |
| 99 // Fallback | |
| 100 EditingMacBehavior | |
| 101 #endif | 98 #endif |
| 102 ; | 99 ; |
| 103 } | 100 } |
| 104 | 101 |
| 105 static const bool defaultUnifiedTextCheckerEnabled = false; | 102 static const bool defaultUnifiedTextCheckerEnabled = false; |
| 106 #if OS(MACOSX) | 103 #if OS(MACOSX) |
| 107 static const bool defaultSmartInsertDeleteEnabled = true; | 104 static const bool defaultSmartInsertDeleteEnabled = true; |
| 108 #else | 105 #else |
| 109 static const bool defaultSmartInsertDeleteEnabled = false; | 106 static const bool defaultSmartInsertDeleteEnabled = false; |
| 110 #endif | 107 #endif |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 { | 373 { |
| 377 if (m_viewportEnabled == enabled) | 374 if (m_viewportEnabled == enabled) |
| 378 return; | 375 return; |
| 379 | 376 |
| 380 m_viewportEnabled = enabled; | 377 m_viewportEnabled = enabled; |
| 381 if (m_page->mainFrame()) | 378 if (m_page->mainFrame()) |
| 382 m_page->mainFrame()->document()->updateViewportArguments(); | 379 m_page->mainFrame()->document()->updateViewportArguments(); |
| 383 } | 380 } |
| 384 | 381 |
| 385 } // namespace WebCore | 382 } // namespace WebCore |
| OLD | NEW |