| 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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 } | 829 } |
| 830 | 830 |
| 831 Editor* Editor::create(LocalFrame& frame) { | 831 Editor* Editor::create(LocalFrame& frame) { |
| 832 return new Editor(frame); | 832 return new Editor(frame); |
| 833 } | 833 } |
| 834 | 834 |
| 835 Editor::Editor(LocalFrame& frame) | 835 Editor::Editor(LocalFrame& frame) |
| 836 : m_frame(&frame), | 836 : m_frame(&frame), |
| 837 m_undoStack(UndoStack::create()), | 837 m_undoStack(UndoStack::create()), |
| 838 m_preventRevealSelection(0), | 838 m_preventRevealSelection(0), |
| 839 m_shouldStartNewKillRingSequence(false) | 839 m_shouldStartNewKillRingSequence(false), |
| 840 // This is off by default, since most editors want this behavior (this mat
ches IE but not FF). | 840 // This is off by default, since most editors want this behavior (this mat
ches IE but not FF). |
| 841 , | |
| 842 m_shouldStyleWithCSS(false), | 841 m_shouldStyleWithCSS(false), |
| 843 m_killRing(wrapUnique(new KillRing)), | 842 m_killRing(wrapUnique(new KillRing)), |
| 844 m_areMarkedTextMatchesHighlighted(false), | 843 m_areMarkedTextMatchesHighlighted(false), |
| 845 m_defaultParagraphSeparator(EditorParagraphSeparatorIsDiv), | 844 m_defaultParagraphSeparator(EditorParagraphSeparatorIsDiv), |
| 846 m_overwriteModeEnabled(false) {} | 845 m_overwriteModeEnabled(false) {} |
| 847 | 846 |
| 848 Editor::~Editor() {} | 847 Editor::~Editor() {} |
| 849 | 848 |
| 850 void Editor::clear() { | 849 void Editor::clear() { |
| 851 frame().inputMethodController().clear(); | 850 frame().inputMethodController().clear(); |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1547 } | 1546 } |
| 1548 | 1547 |
| 1549 DEFINE_TRACE(Editor) { | 1548 DEFINE_TRACE(Editor) { |
| 1550 visitor->trace(m_frame); | 1549 visitor->trace(m_frame); |
| 1551 visitor->trace(m_lastEditCommand); | 1550 visitor->trace(m_lastEditCommand); |
| 1552 visitor->trace(m_undoStack); | 1551 visitor->trace(m_undoStack); |
| 1553 visitor->trace(m_mark); | 1552 visitor->trace(m_mark); |
| 1554 } | 1553 } |
| 1555 | 1554 |
| 1556 } // namespace blink | 1555 } // namespace blink |
| OLD | NEW |