Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: Source/WebCore/editing/Editor.cpp

Issue 7005023: Merge 86132 - 2011-05-10 MORITA Hajime <morrita@google.com> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/editing/SpellChecker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/editing/SpellChecker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698