| 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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 } | 892 } |
| 893 | 893 |
| 894 Editor* Editor::create(LocalFrame& frame) { | 894 Editor* Editor::create(LocalFrame& frame) { |
| 895 return new Editor(frame); | 895 return new Editor(frame); |
| 896 } | 896 } |
| 897 | 897 |
| 898 Editor::Editor(LocalFrame& frame) | 898 Editor::Editor(LocalFrame& frame) |
| 899 : m_frame(&frame), | 899 : m_frame(&frame), |
| 900 m_undoStack(UndoStack::create()), | 900 m_undoStack(UndoStack::create()), |
| 901 m_preventRevealSelection(0), | 901 m_preventRevealSelection(0), |
| 902 m_shouldStartNewKillRingSequence(false) | 902 m_shouldStartNewKillRingSequence(false), |
| 903 // This is off by default, since most editors want this behavior (this mat
ches IE but not FF). | 903 // This is off by default, since most editors want this behavior (this mat
ches IE but not FF). |
| 904 , | |
| 905 m_shouldStyleWithCSS(false), | 904 m_shouldStyleWithCSS(false), |
| 906 m_killRing(wrapUnique(new KillRing)), | 905 m_killRing(wrapUnique(new KillRing)), |
| 907 m_areMarkedTextMatchesHighlighted(false), | 906 m_areMarkedTextMatchesHighlighted(false), |
| 908 m_defaultParagraphSeparator(EditorParagraphSeparatorIsDiv), | 907 m_defaultParagraphSeparator(EditorParagraphSeparatorIsDiv), |
| 909 m_overwriteModeEnabled(false) {} | 908 m_overwriteModeEnabled(false) {} |
| 910 | 909 |
| 911 Editor::~Editor() {} | 910 Editor::~Editor() {} |
| 912 | 911 |
| 913 void Editor::clear() { | 912 void Editor::clear() { |
| 914 frame().inputMethodController().clear(); | 913 frame().inputMethodController().clear(); |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1612 } | 1611 } |
| 1613 | 1612 |
| 1614 DEFINE_TRACE(Editor) { | 1613 DEFINE_TRACE(Editor) { |
| 1615 visitor->trace(m_frame); | 1614 visitor->trace(m_frame); |
| 1616 visitor->trace(m_lastEditCommand); | 1615 visitor->trace(m_lastEditCommand); |
| 1617 visitor->trace(m_undoStack); | 1616 visitor->trace(m_undoStack); |
| 1618 visitor->trace(m_mark); | 1617 visitor->trace(m_mark); |
| 1619 } | 1618 } |
| 1620 | 1619 |
| 1621 } // namespace blink | 1620 } // namespace blink |
| OLD | NEW |