| 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 13 matching lines...) Expand all Loading... |
| 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 "CSSPropertyNames.h" | 32 #include "CSSPropertyNames.h" |
| 33 #include "CSSValueKeywords.h" | 33 #include "CSSValueKeywords.h" |
| 34 #include "HTMLBodyElement.h" | |
| 35 #include "HTMLElement.h" | |
| 36 #include "HTMLNames.h" | 34 #include "HTMLNames.h" |
| 37 #include "HTMLTextFormControlElement.h" | |
| 38 #include "XMLNSNames.h" | 35 #include "XMLNSNames.h" |
| 39 #include "core/css/CSSPrimitiveValue.h" | 36 #include "core/css/CSSPrimitiveValue.h" |
| 40 #include "core/css/CSSRule.h" | 37 #include "core/css/CSSRule.h" |
| 41 #include "core/css/CSSRuleList.h" | 38 #include "core/css/CSSRuleList.h" |
| 42 #include "core/css/CSSStyleRule.h" | 39 #include "core/css/CSSStyleRule.h" |
| 43 #include "core/css/CSSValue.h" | 40 #include "core/css/CSSValue.h" |
| 44 #include "core/css/StylePropertySet.h" | 41 #include "core/css/StylePropertySet.h" |
| 45 #include "core/css/StyleResolver.h" | 42 #include "core/css/StyleResolver.h" |
| 46 #include "core/dom/CDATASection.h" | 43 #include "core/dom/CDATASection.h" |
| 47 #include "core/dom/ChildListMutationScope.h" | 44 #include "core/dom/ChildListMutationScope.h" |
| 48 #include "core/dom/ContextFeatures.h" | 45 #include "core/dom/ContextFeatures.h" |
| 49 #include "core/dom/DocumentFragment.h" | 46 #include "core/dom/DocumentFragment.h" |
| 50 #include "core/dom/DocumentType.h" | 47 #include "core/dom/DocumentType.h" |
| 51 #include "core/dom/ExceptionCode.h" | 48 #include "core/dom/ExceptionCode.h" |
| 52 #include "core/dom/ExceptionCodePlaceholder.h" | 49 #include "core/dom/ExceptionCodePlaceholder.h" |
| 53 #include "core/dom/NodeTraversal.h" | 50 #include "core/dom/NodeTraversal.h" |
| 54 #include "core/dom/Range.h" | 51 #include "core/dom/Range.h" |
| 55 #include "core/editing/Editor.h" | 52 #include "core/editing/Editor.h" |
| 56 #include "core/editing/MarkupAccumulator.h" | 53 #include "core/editing/MarkupAccumulator.h" |
| 57 #include "core/editing/TextIterator.h" | 54 #include "core/editing/TextIterator.h" |
| 58 #include "core/editing/VisibleSelection.h" | 55 #include "core/editing/VisibleSelection.h" |
| 59 #include "core/editing/VisibleUnits.h" | 56 #include "core/editing/VisibleUnits.h" |
| 60 #include "core/editing/htmlediting.h" | 57 #include "core/editing/htmlediting.h" |
| 58 #include "core/html/HTMLBodyElement.h" |
| 59 #include "core/html/HTMLElement.h" |
| 60 #include "core/html/HTMLTextFormControlElement.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" |
| 65 #include "core/rendering/RenderObject.h" | 65 #include "core/rendering/RenderObject.h" |
| 66 #include <wtf/StdLibExtras.h> | 66 #include <wtf/StdLibExtras.h> |
| 67 #include <wtf/text/StringBuilder.h> | 67 #include <wtf/text/StringBuilder.h> |
| 68 #include <wtf/unicode/CharacterNames.h> | 68 #include <wtf/unicode/CharacterNames.h> |
| 69 | 69 |
| 70 using namespace std; | 70 using namespace std; |
| (...skipping 1021 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 |