OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 } | 1044 } |
1045 | 1045 |
1046 Editor::Editor(Frame* frame) | 1046 Editor::Editor(Frame* frame) |
1047 : m_frame(frame) | 1047 : m_frame(frame) |
1048 , m_deleteButtonController(adoptPtr(new DeleteButtonController(frame))) | 1048 , m_deleteButtonController(adoptPtr(new DeleteButtonController(frame))) |
1049 , m_ignoreCompositionSelectionChange(false) | 1049 , m_ignoreCompositionSelectionChange(false) |
1050 , m_shouldStartNewKillRingSequence(false) | 1050 , m_shouldStartNewKillRingSequence(false) |
1051 // This is off by default, since most editors want this behavior (this match
es IE but not FF). | 1051 // This is off by default, since most editors want this behavior (this match
es IE but not FF). |
1052 , m_shouldStyleWithCSS(false) | 1052 , m_shouldStyleWithCSS(false) |
1053 , m_killRing(adoptPtr(new KillRing)) | 1053 , m_killRing(adoptPtr(new KillRing)) |
1054 , m_spellChecker(adoptPtr(new SpellChecker(frame, frame->page() ? frame->pag
e()->editorClient()->textChecker() : 0))) | 1054 , m_spellChecker(adoptPtr(new SpellChecker(frame))) |
1055 , m_spellingCorrector(adoptPtr(new SpellingCorrectionController(frame))) | 1055 , m_spellingCorrector(adoptPtr(new SpellingCorrectionController(frame))) |
1056 , m_areMarkedTextMatchesHighlighted(false) | 1056 , m_areMarkedTextMatchesHighlighted(false) |
1057 { | 1057 { |
1058 } | 1058 } |
1059 | 1059 |
1060 Editor::~Editor() | 1060 Editor::~Editor() |
1061 { | 1061 { |
1062 } | 1062 } |
1063 | 1063 |
1064 void Editor::clear() | 1064 void Editor::clear() |
(...skipping 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3277 checkingTypes |= TextCheckingTypeReplacement; | 3277 checkingTypes |= TextCheckingTypeReplacement; |
3278 if (shouldMarkSpelling && isAutomaticSpellingCorrectionEnabled()) | 3278 if (shouldMarkSpelling && isAutomaticSpellingCorrectionEnabled()) |
3279 checkingTypes |= TextCheckingTypeCorrection; | 3279 checkingTypes |= TextCheckingTypeCorrection; |
3280 } | 3280 } |
3281 #endif | 3281 #endif |
3282 | 3282 |
3283 return checkingTypes; | 3283 return checkingTypes; |
3284 } | 3284 } |
3285 | 3285 |
3286 } // namespace WebCore | 3286 } // namespace WebCore |
OLD | NEW |