| 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(WIN) | 93 #elif OS(WIN) |
| 94 EditingWindowsBehavior | 94 EditingWindowsBehavior |
| 95 #elif OS(ANDROID) | 95 #elif OS(ANDROID) |
| 96 EditingAndroidBehavior | 96 EditingAndroidBehavior |
| 97 #elif OS(UNIX) | 97 #elif OS(POSIX) |
| 98 EditingUnixBehavior | 98 EditingUnixBehavior |
| 99 #else | 99 #else |
| 100 // Fallback | 100 // Fallback |
| 101 EditingMacBehavior | 101 EditingMacBehavior |
| 102 #endif | 102 #endif |
| 103 ; | 103 ; |
| 104 } | 104 } |
| 105 | 105 |
| 106 static const bool defaultUnifiedTextCheckerEnabled = false; | 106 static const bool defaultUnifiedTextCheckerEnabled = false; |
| 107 #if OS(MACOSX) | 107 #if OS(MACOSX) |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 { | 386 { |
| 387 if (m_viewportEnabled == enabled) | 387 if (m_viewportEnabled == enabled) |
| 388 return; | 388 return; |
| 389 | 389 |
| 390 m_viewportEnabled = enabled; | 390 m_viewportEnabled = enabled; |
| 391 if (m_page->mainFrame()) | 391 if (m_page->mainFrame()) |
| 392 m_page->mainFrame()->document()->updateViewportArguments(); | 392 m_page->mainFrame()->document()->updateViewportArguments(); |
| 393 } | 393 } |
| 394 | 394 |
| 395 } // namespace WebCore | 395 } // namespace WebCore |
| OLD | NEW |