OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 #include "core/editing/TextIterator.h" | 57 #include "core/editing/TextIterator.h" |
58 #include "core/editing/VisibleUnits.h" | 58 #include "core/editing/VisibleUnits.h" |
59 #include "core/editing/WrapContentsInDummySpanCommand.h" | 59 #include "core/editing/WrapContentsInDummySpanCommand.h" |
60 #include "core/editing/htmlediting.h" | 60 #include "core/editing/htmlediting.h" |
61 #include "core/editing/markup.h" | 61 #include "core/editing/markup.h" |
62 #include "core/html/HTMLElement.h" | 62 #include "core/html/HTMLElement.h" |
63 #include "core/page/Frame.h" | 63 #include "core/page/Frame.h" |
64 #include "core/rendering/InlineTextBox.h" | 64 #include "core/rendering/InlineTextBox.h" |
65 #include "core/rendering/RenderBlock.h" | 65 #include "core/rendering/RenderBlock.h" |
66 #include "core/rendering/RenderText.h" | 66 #include "core/rendering/RenderText.h" |
67 #include <wtf/unicode/CharacterNames.h> | |
68 | 67 |
69 using namespace std; | 68 using namespace std; |
70 | 69 |
71 namespace WebCore { | 70 namespace WebCore { |
72 | 71 |
73 using namespace HTMLNames; | 72 using namespace HTMLNames; |
74 | 73 |
75 PassRefPtr<EditCommandComposition> EditCommandComposition::create(Document* docu
ment, | 74 PassRefPtr<EditCommandComposition> EditCommandComposition::create(Document* docu
ment, |
76 const VisibleSelection& startingSelection, const VisibleSelection& endingSel
ection, EditAction editAction) | 75 const VisibleSelection& startingSelection, const VisibleSelection& endingSel
ection, EditAction editAction) |
77 { | 76 { |
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 return node.release(); | 1456 return node.release(); |
1458 } | 1457 } |
1459 | 1458 |
1460 PassRefPtr<Element> createBlockPlaceholderElement(Document* document) | 1459 PassRefPtr<Element> createBlockPlaceholderElement(Document* document) |
1461 { | 1460 { |
1462 RefPtr<Element> breakNode = document->createElement(brTag, false); | 1461 RefPtr<Element> breakNode = document->createElement(brTag, false); |
1463 return breakNode.release(); | 1462 return breakNode.release(); |
1464 } | 1463 } |
1465 | 1464 |
1466 } // namespace WebCore | 1465 } // namespace WebCore |
OLD | NEW |