| OLD | NEW |
| 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 * Copyright (C) 2009 Igalia S.L. | 4 * Copyright (C) 2009 Igalia S.L. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 } | 1110 } |
| 1111 | 1111 |
| 1112 static bool executeTranspose(LocalFrame& frame, Event*, EditorCommandSource, con
st String&) | 1112 static bool executeTranspose(LocalFrame& frame, Event*, EditorCommandSource, con
st String&) |
| 1113 { | 1113 { |
| 1114 frame.editor().transpose(); | 1114 frame.editor().transpose(); |
| 1115 return true; | 1115 return true; |
| 1116 } | 1116 } |
| 1117 | 1117 |
| 1118 static bool executeUnderline(LocalFrame& frame, Event*, EditorCommandSource sour
ce, const String&) | 1118 static bool executeUnderline(LocalFrame& frame, Event*, EditorCommandSource sour
ce, const String&) |
| 1119 { | 1119 { |
| 1120 RefPtrWillBeRawPtr<CSSPrimitiveValue> underline = CSSPrimitiveValue::createI
dentifier(CSSValueUnderline); | 1120 CSSPrimitiveValue underline = CSSPrimitiveValue::createIdentifier(CSSValueUn
derline); |
| 1121 return executeToggleStyleInList(frame, source, EditActionUnderline, CSSPrope
rtyWebkitTextDecorationsInEffect, CSSValue(*underline)); | 1121 return executeToggleStyleInList(frame, source, EditActionUnderline, CSSPrope
rtyWebkitTextDecorationsInEffect, underline); |
| 1122 } | 1122 } |
| 1123 | 1123 |
| 1124 static bool executeUndo(LocalFrame& frame, Event*, EditorCommandSource, const St
ring&) | 1124 static bool executeUndo(LocalFrame& frame, Event*, EditorCommandSource, const St
ring&) |
| 1125 { | 1125 { |
| 1126 frame.editor().undo(); | 1126 frame.editor().undo(); |
| 1127 return true; | 1127 return true; |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 static bool executeUnlink(LocalFrame& frame, Event*, EditorCommandSource, const
String&) | 1130 static bool executeUnlink(LocalFrame& frame, Event*, EditorCommandSource, const
String&) |
| 1131 { | 1131 { |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1788 { | 1788 { |
| 1789 return m_command && m_command->isTextInsertion; | 1789 return m_command && m_command->isTextInsertion; |
| 1790 } | 1790 } |
| 1791 | 1791 |
| 1792 int Editor::Command::idForHistogram() const | 1792 int Editor::Command::idForHistogram() const |
| 1793 { | 1793 { |
| 1794 return isSupported() ? m_command->idForUserMetrics : 0; | 1794 return isSupported() ? m_command->idForUserMetrics : 0; |
| 1795 } | 1795 } |
| 1796 | 1796 |
| 1797 } // namespace blink | 1797 } // namespace blink |
| OLD | NEW |