| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 } | 923 } |
| 924 | 924 |
| 925 Editor::Editor(LocalFrame& frame) | 925 Editor::Editor(LocalFrame& frame) |
| 926 : m_frame(&frame), | 926 : m_frame(&frame), |
| 927 m_undoStack(UndoStack::create()), | 927 m_undoStack(UndoStack::create()), |
| 928 m_preventRevealSelection(0), | 928 m_preventRevealSelection(0), |
| 929 m_shouldStartNewKillRingSequence(false), | 929 m_shouldStartNewKillRingSequence(false), |
| 930 // This is off by default, since most editors want this behavior (this | 930 // This is off by default, since most editors want this behavior (this |
| 931 // matches IE but not FF). | 931 // matches IE but not FF). |
| 932 m_shouldStyleWithCSS(false), | 932 m_shouldStyleWithCSS(false), |
| 933 m_killRing(wrapUnique(new KillRing)), | 933 m_killRing(WTF::wrapUnique(new KillRing)), |
| 934 m_areMarkedTextMatchesHighlighted(false), | 934 m_areMarkedTextMatchesHighlighted(false), |
| 935 m_defaultParagraphSeparator(EditorParagraphSeparatorIsDiv), | 935 m_defaultParagraphSeparator(EditorParagraphSeparatorIsDiv), |
| 936 m_overwriteModeEnabled(false) {} | 936 m_overwriteModeEnabled(false) {} |
| 937 | 937 |
| 938 Editor::~Editor() {} | 938 Editor::~Editor() {} |
| 939 | 939 |
| 940 void Editor::clear() { | 940 void Editor::clear() { |
| 941 frame().inputMethodController().clear(); | 941 frame().inputMethodController().clear(); |
| 942 m_shouldStyleWithCSS = false; | 942 m_shouldStyleWithCSS = false; |
| 943 m_defaultParagraphSeparator = EditorParagraphSeparatorIsDiv; | 943 m_defaultParagraphSeparator = EditorParagraphSeparatorIsDiv; |
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1660 } | 1660 } |
| 1661 | 1661 |
| 1662 DEFINE_TRACE(Editor) { | 1662 DEFINE_TRACE(Editor) { |
| 1663 visitor->trace(m_frame); | 1663 visitor->trace(m_frame); |
| 1664 visitor->trace(m_lastEditCommand); | 1664 visitor->trace(m_lastEditCommand); |
| 1665 visitor->trace(m_undoStack); | 1665 visitor->trace(m_undoStack); |
| 1666 visitor->trace(m_mark); | 1666 visitor->trace(m_mark); |
| 1667 } | 1667 } |
| 1668 | 1668 |
| 1669 } // namespace blink | 1669 } // namespace blink |
| OLD | NEW |