OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. |
4 * Copyright (C) 2011 Igalia S.L. | 4 * Copyright (C) 2011 Igalia S.L. |
5 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 5 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 11 matching lines...) Expand all Loading... |
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "core/editing/markup.h" | 30 #include "core/editing/markup.h" |
31 | 31 |
32 #include "CDATASection.h" | |
33 #include "CSSPropertyNames.h" | 32 #include "CSSPropertyNames.h" |
34 #include "CSSValueKeywords.h" | 33 #include "CSSValueKeywords.h" |
35 #include "ChildListMutationScope.h" | |
36 #include "ContextFeatures.h" | |
37 #include "DocumentFragment.h" | |
38 #include "DocumentType.h" | |
39 #include "ExceptionCode.h" | |
40 #include "ExceptionCodePlaceholder.h" | |
41 #include "HTMLBodyElement.h" | 34 #include "HTMLBodyElement.h" |
42 #include "HTMLElement.h" | 35 #include "HTMLElement.h" |
43 #include "HTMLNames.h" | 36 #include "HTMLNames.h" |
44 #include "HTMLTextFormControlElement.h" | 37 #include "HTMLTextFormControlElement.h" |
45 #include "NodeTraversal.h" | |
46 #include "Range.h" | |
47 #include "XMLNSNames.h" | 38 #include "XMLNSNames.h" |
48 #include "core/css/CSSPrimitiveValue.h" | 39 #include "core/css/CSSPrimitiveValue.h" |
49 #include "core/css/CSSRule.h" | 40 #include "core/css/CSSRule.h" |
50 #include "core/css/CSSRuleList.h" | 41 #include "core/css/CSSRuleList.h" |
51 #include "core/css/CSSStyleRule.h" | 42 #include "core/css/CSSStyleRule.h" |
52 #include "core/css/CSSValue.h" | 43 #include "core/css/CSSValue.h" |
53 #include "core/css/StylePropertySet.h" | 44 #include "core/css/StylePropertySet.h" |
54 #include "core/css/StyleResolver.h" | 45 #include "core/css/StyleResolver.h" |
| 46 #include "core/dom/CDATASection.h" |
| 47 #include "core/dom/ChildListMutationScope.h" |
| 48 #include "core/dom/ContextFeatures.h" |
| 49 #include "core/dom/DocumentFragment.h" |
| 50 #include "core/dom/DocumentType.h" |
| 51 #include "core/dom/ExceptionCode.h" |
| 52 #include "core/dom/ExceptionCodePlaceholder.h" |
| 53 #include "core/dom/NodeTraversal.h" |
| 54 #include "core/dom/Range.h" |
55 #include "core/editing/Editor.h" | 55 #include "core/editing/Editor.h" |
56 #include "core/editing/MarkupAccumulator.h" | 56 #include "core/editing/MarkupAccumulator.h" |
57 #include "core/editing/TextIterator.h" | 57 #include "core/editing/TextIterator.h" |
58 #include "core/editing/VisibleSelection.h" | 58 #include "core/editing/VisibleSelection.h" |
59 #include "core/editing/VisibleUnits.h" | 59 #include "core/editing/VisibleUnits.h" |
60 #include "core/editing/htmlediting.h" | 60 #include "core/editing/htmlediting.h" |
61 #include "core/page/Frame.h" | 61 #include "core/page/Frame.h" |
62 #include "core/page/Settings.h" | 62 #include "core/page/Settings.h" |
63 #include "core/platform/KURL.h" | 63 #include "core/platform/KURL.h" |
64 #include "core/rendering/RenderBlock.h" | 64 #include "core/rendering/RenderBlock.h" |
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 if (hasOneChild(containerNode.get())) { | 1092 if (hasOneChild(containerNode.get())) { |
1093 containerNode->replaceChild(textNode.release(), containerNode->firstChil
d(), ec); | 1093 containerNode->replaceChild(textNode.release(), containerNode->firstChil
d(), ec); |
1094 return; | 1094 return; |
1095 } | 1095 } |
1096 | 1096 |
1097 containerNode->removeChildren(); | 1097 containerNode->removeChildren(); |
1098 containerNode->appendChild(textNode.release(), ec); | 1098 containerNode->appendChild(textNode.release(), ec); |
1099 } | 1099 } |
1100 | 1100 |
1101 } | 1101 } |
OLD | NEW |