| 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 | 591 |
| 592 void Editor::redo() | 592 void Editor::redo() |
| 593 { | 593 { |
| 594 if (UndoStack* undoStack = this->undoStack()) | 594 if (UndoStack* undoStack = this->undoStack()) |
| 595 undoStack->redo(); | 595 undoStack->redo(); |
| 596 } | 596 } |
| 597 | 597 |
| 598 void Editor::setBaseWritingDirection(WritingDirection direction) | 598 void Editor::setBaseWritingDirection(WritingDirection direction) |
| 599 { | 599 { |
| 600 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); | 600 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
| 601 style->setProperty(CSSPropertyDirection, direction == LeftToRightWritingDire
ction ? "ltr" : direction == RightToLeftWritingDirection ? "rtl" : "inherit", fa
lse); | 601 style->setProperty(CSSPropertyDirection, direction == LeftToRightWritingDire
ction ? "ltr" : direction == RightToLeftWritingDirection ? "rtl" : "inherit"); |
| 602 } | 602 } |
| 603 | 603 |
| 604 void Editor::revealSelectionAfterEditingOperation(const ScrollAlignment& alignme
nt, RevealExtentOption revealExtentOption) | 604 void Editor::revealSelectionAfterEditingOperation(const ScrollAlignment& alignme
nt, RevealExtentOption revealExtentOption) |
| 605 { | 605 { |
| 606 if (m_preventRevealSelection) | 606 if (m_preventRevealSelection) |
| 607 return; | 607 return; |
| 608 | 608 |
| 609 m_frame.selection().revealSelection(alignment, revealExtentOption); | 609 m_frame.selection().revealSelection(alignment, revealExtentOption); |
| 610 } | 610 } |
| 611 | 611 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 return m_frame.spellChecker(); | 817 return m_frame.spellChecker(); |
| 818 } | 818 } |
| 819 | 819 |
| 820 void Editor::toggleOverwriteModeEnabled() | 820 void Editor::toggleOverwriteModeEnabled() |
| 821 { | 821 { |
| 822 m_overwriteModeEnabled = !m_overwriteModeEnabled; | 822 m_overwriteModeEnabled = !m_overwriteModeEnabled; |
| 823 frame().selection().setShouldShowBlockCursor(m_overwriteModeEnabled); | 823 frame().selection().setShouldShowBlockCursor(m_overwriteModeEnabled); |
| 824 } | 824 } |
| 825 | 825 |
| 826 } // namespace blink | 826 } // namespace blink |
| OLD | NEW |