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 13 matching lines...) Expand all Loading... |
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 "HTMLNames.h" | 33 #include "HTMLNames.h" |
34 #include "core/css/CSSComputedStyleDeclaration.h" | |
35 #include "core/css/CSSValueList.h" | 34 #include "core/css/CSSValueList.h" |
36 #include "core/css/StylePropertySet.h" | 35 #include "core/css/StylePropertySet.h" |
37 #include "core/dom/DocumentFragment.h" | 36 #include "core/dom/DocumentFragment.h" |
38 #include "core/dom/Event.h" | 37 #include "core/dom/Event.h" |
39 #include "core/dom/ExceptionCodePlaceholder.h" | 38 #include "core/dom/ExceptionCodePlaceholder.h" |
40 #include "core/dom/UserTypingGestureIndicator.h" | 39 #include "core/dom/UserTypingGestureIndicator.h" |
41 #include "core/editing/CreateLinkCommand.h" | 40 #include "core/editing/CreateLinkCommand.h" |
42 #include "core/editing/FormatBlockCommand.h" | 41 #include "core/editing/FormatBlockCommand.h" |
43 #include "core/editing/IndentOutdentCommand.h" | 42 #include "core/editing/IndentOutdentCommand.h" |
44 #include "core/editing/InsertListCommand.h" | 43 #include "core/editing/InsertListCommand.h" |
45 #include "core/editing/ReplaceSelectionCommand.h" | 44 #include "core/editing/ReplaceSelectionCommand.h" |
46 #include "core/editing/TypingCommand.h" | 45 #include "core/editing/TypingCommand.h" |
47 #include "core/editing/UnlinkCommand.h" | 46 #include "core/editing/UnlinkCommand.h" |
48 #include "core/editing/htmlediting.h" | |
49 #include "core/editing/markup.h" | 47 #include "core/editing/markup.h" |
50 #include "core/html/HTMLFontElement.h" | 48 #include "core/html/HTMLFontElement.h" |
51 #include "core/html/HTMLHRElement.h" | 49 #include "core/html/HTMLHRElement.h" |
52 #include "core/html/HTMLImageElement.h" | 50 #include "core/html/HTMLImageElement.h" |
53 #include "core/page/Chrome.h" | 51 #include "core/page/Chrome.h" |
54 #include "core/page/EditorClient.h" | 52 #include "core/page/EditorClient.h" |
55 #include "core/page/EventHandler.h" | 53 #include "core/page/EventHandler.h" |
56 #include "core/page/Frame.h" | 54 #include "core/page/Frame.h" |
57 #include "core/page/FrameView.h" | 55 #include "core/page/FrameView.h" |
58 #include "core/page/Page.h" | 56 #include "core/page/Page.h" |
(...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1729 return m_command->state(m_frame.get(), triggeringEvent) == TrueTriState
? "true" : "false"; | 1727 return m_command->state(m_frame.get(), triggeringEvent) == TrueTriState
? "true" : "false"; |
1730 return m_command->value(m_frame.get(), triggeringEvent); | 1728 return m_command->value(m_frame.get(), triggeringEvent); |
1731 } | 1729 } |
1732 | 1730 |
1733 bool Editor::Command::isTextInsertion() const | 1731 bool Editor::Command::isTextInsertion() const |
1734 { | 1732 { |
1735 return m_command && m_command->isTextInsertion; | 1733 return m_command && m_command->isTextInsertion; |
1736 } | 1734 } |
1737 | 1735 |
1738 } // namespace WebCore | 1736 } // namespace WebCore |
OLD | NEW |