| 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 12 matching lines...) Expand all Loading... |
| 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 #include "core/editing/Editor.h" | 29 #include "core/editing/Editor.h" |
| 30 | 30 |
| 31 #include "CSSPropertyNames.h" | 31 #include "CSSPropertyNames.h" |
| 32 #include "CSSValueKeywords.h" | 32 #include "CSSValueKeywords.h" |
| 33 #include "HTMLFontElement.h" | |
| 34 #include "HTMLHRElement.h" | |
| 35 #include "HTMLImageElement.h" | |
| 36 #include "HTMLNames.h" | 33 #include "HTMLNames.h" |
| 37 #include "core/css/CSSComputedStyleDeclaration.h" | 34 #include "core/css/CSSComputedStyleDeclaration.h" |
| 38 #include "core/css/CSSValueList.h" | 35 #include "core/css/CSSValueList.h" |
| 39 #include "core/css/StylePropertySet.h" | 36 #include "core/css/StylePropertySet.h" |
| 40 #include "core/dom/DocumentFragment.h" | 37 #include "core/dom/DocumentFragment.h" |
| 41 #include "core/dom/Event.h" | 38 #include "core/dom/Event.h" |
| 42 #include "core/dom/ExceptionCodePlaceholder.h" | 39 #include "core/dom/ExceptionCodePlaceholder.h" |
| 43 #include "core/dom/UserTypingGestureIndicator.h" | 40 #include "core/dom/UserTypingGestureIndicator.h" |
| 44 #include "core/editing/CreateLinkCommand.h" | 41 #include "core/editing/CreateLinkCommand.h" |
| 45 #include "core/editing/FormatBlockCommand.h" | 42 #include "core/editing/FormatBlockCommand.h" |
| 46 #include "core/editing/IndentOutdentCommand.h" | 43 #include "core/editing/IndentOutdentCommand.h" |
| 47 #include "core/editing/InsertListCommand.h" | 44 #include "core/editing/InsertListCommand.h" |
| 48 #include "core/editing/ReplaceSelectionCommand.h" | 45 #include "core/editing/ReplaceSelectionCommand.h" |
| 49 #include "core/editing/TypingCommand.h" | 46 #include "core/editing/TypingCommand.h" |
| 50 #include "core/editing/UnlinkCommand.h" | 47 #include "core/editing/UnlinkCommand.h" |
| 51 #include "core/editing/htmlediting.h" | 48 #include "core/editing/htmlediting.h" |
| 52 #include "core/editing/markup.h" | 49 #include "core/editing/markup.h" |
| 50 #include "core/html/HTMLFontElement.h" |
| 51 #include "core/html/HTMLHRElement.h" |
| 52 #include "core/html/HTMLImageElement.h" |
| 53 #include "core/page/Chrome.h" | 53 #include "core/page/Chrome.h" |
| 54 #include "core/page/EditorClient.h" | 54 #include "core/page/EditorClient.h" |
| 55 #include "core/page/EventHandler.h" | 55 #include "core/page/EventHandler.h" |
| 56 #include "core/page/Frame.h" | 56 #include "core/page/Frame.h" |
| 57 #include "core/page/FrameView.h" | 57 #include "core/page/FrameView.h" |
| 58 #include "core/page/Page.h" | 58 #include "core/page/Page.h" |
| 59 #include "core/page/Settings.h" | 59 #include "core/page/Settings.h" |
| 60 #include "core/platform/KillRing.h" | 60 #include "core/platform/KillRing.h" |
| 61 #include "core/platform/Pasteboard.h" | 61 #include "core/platform/Pasteboard.h" |
| 62 #include "core/platform/Scrollbar.h" | 62 #include "core/platform/Scrollbar.h" |
| (...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 return m_command->state(m_frame.get(), triggeringEvent) == TrueTriState
? "true" : "false"; | 1729 return m_command->state(m_frame.get(), triggeringEvent) == TrueTriState
? "true" : "false"; |
| 1730 return m_command->value(m_frame.get(), triggeringEvent); | 1730 return m_command->value(m_frame.get(), triggeringEvent); |
| 1731 } | 1731 } |
| 1732 | 1732 |
| 1733 bool Editor::Command::isTextInsertion() const | 1733 bool Editor::Command::isTextInsertion() const |
| 1734 { | 1734 { |
| 1735 return m_command && m_command->isTextInsertion; | 1735 return m_command && m_command->isTextInsertion; |
| 1736 } | 1736 } |
| 1737 | 1737 |
| 1738 } // namespace WebCore | 1738 } // namespace WebCore |
| OLD | NEW |