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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 // 99) MacEditingBehavior is used a fallback. | 87 // 99) MacEditingBehavior is used a fallback. |
88 static EditingBehaviorType editingBehaviorTypeForPlatform() | 88 static EditingBehaviorType editingBehaviorTypeForPlatform() |
89 { | 89 { |
90 return | 90 return |
91 #if OS(MACOSX) | 91 #if OS(MACOSX) |
92 EditingMacBehavior | 92 EditingMacBehavior |
93 #elif OS(WINDOWS) | 93 #elif OS(WINDOWS) |
94 EditingWindowsBehavior | 94 EditingWindowsBehavior |
95 #elif OS(ANDROID) | 95 #elif OS(ANDROID) |
96 EditingAndroidBehavior | 96 EditingAndroidBehavior |
97 #elif OS(UNIX) | 97 #else |
98 EditingUnixBehavior | 98 EditingUnixBehavior |
abarth-chromium
2013/09/08 22:42:49
Why not be explicit and then have a #error in the
| |
99 #else | |
100 // Fallback | |
101 EditingMacBehavior | |
102 #endif | 99 #endif |
103 ; | 100 ; |
104 } | 101 } |
105 | 102 |
106 static const bool defaultUnifiedTextCheckerEnabled = false; | 103 static const bool defaultUnifiedTextCheckerEnabled = false; |
107 #if OS(MACOSX) | 104 #if OS(MACOSX) |
108 static const bool defaultSmartInsertDeleteEnabled = true; | 105 static const bool defaultSmartInsertDeleteEnabled = true; |
109 #else | 106 #else |
110 static const bool defaultSmartInsertDeleteEnabled = false; | 107 static const bool defaultSmartInsertDeleteEnabled = false; |
111 #endif | 108 #endif |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
386 { | 383 { |
387 if (m_viewportEnabled == enabled) | 384 if (m_viewportEnabled == enabled) |
388 return; | 385 return; |
389 | 386 |
390 m_viewportEnabled = enabled; | 387 m_viewportEnabled = enabled; |
391 if (m_page->mainFrame()) | 388 if (m_page->mainFrame()) |
392 m_page->mainFrame()->document()->updateViewportArguments(); | 389 m_page->mainFrame()->document()->updateViewportArguments(); |
393 } | 390 } |
394 | 391 |
395 } // namespace WebCore | 392 } // namespace WebCore |
OLD | NEW |