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 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1660 } | 1660 } |
1661 | 1661 |
1662 Editor::Command::Command() | 1662 Editor::Command::Command() |
1663 : m_command(0) | 1663 : m_command(0) |
1664 { | 1664 { |
1665 } | 1665 } |
1666 | 1666 |
1667 Editor::Command::Command(const EditorInternalCommand* command, EditorCommandSour
ce source, PassRefPtr<Frame> frame) | 1667 Editor::Command::Command(const EditorInternalCommand* command, EditorCommandSour
ce source, PassRefPtr<Frame> frame) |
1668 : m_command(command) | 1668 : m_command(command) |
1669 , m_source(source) | 1669 , m_source(source) |
1670 , m_frame(command ? frame : 0) | 1670 , m_frame(command ? frame : nullptr) |
1671 { | 1671 { |
1672 // Use separate assertions so we can tell which bad thing happened. | 1672 // Use separate assertions so we can tell which bad thing happened. |
1673 if (!command) | 1673 if (!command) |
1674 ASSERT(!m_frame); | 1674 ASSERT(!m_frame); |
1675 else | 1675 else |
1676 ASSERT(m_frame); | 1676 ASSERT(m_frame); |
1677 } | 1677 } |
1678 | 1678 |
1679 bool Editor::Command::execute(const String& parameter, Event* triggeringEvent) c
onst | 1679 bool Editor::Command::execute(const String& parameter, Event* triggeringEvent) c
onst |
1680 { | 1680 { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1730 return m_command->state(*m_frame, triggeringEvent) == TrueTriState ? "tr
ue" : "false"; | 1730 return m_command->state(*m_frame, triggeringEvent) == TrueTriState ? "tr
ue" : "false"; |
1731 return m_command->value(*m_frame, triggeringEvent); | 1731 return m_command->value(*m_frame, triggeringEvent); |
1732 } | 1732 } |
1733 | 1733 |
1734 bool Editor::Command::isTextInsertion() const | 1734 bool Editor::Command::isTextInsertion() const |
1735 { | 1735 { |
1736 return m_command && m_command->isTextInsertion; | 1736 return m_command && m_command->isTextInsertion; |
1737 } | 1737 } |
1738 | 1738 |
1739 } // namespace WebCore | 1739 } // namespace WebCore |
OLD | NEW |