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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "DocumentFragment.h" | 42 #include "DocumentFragment.h" |
43 #include "DocumentType.h" | 43 #include "DocumentType.h" |
44 #include "Editor.h" | 44 #include "Editor.h" |
45 #include "ExceptionCode.h" | 45 #include "ExceptionCode.h" |
46 #include "ExceptionCodePlaceholder.h" | 46 #include "ExceptionCodePlaceholder.h" |
47 #include "Frame.h" | 47 #include "Frame.h" |
48 #include "HTMLBodyElement.h" | 48 #include "HTMLBodyElement.h" |
49 #include "HTMLElement.h" | 49 #include "HTMLElement.h" |
50 #include "HTMLNames.h" | 50 #include "HTMLNames.h" |
51 #include "HTMLTextFormControlElement.h" | 51 #include "HTMLTextFormControlElement.h" |
52 #include "KURL.h" | |
53 #include "MarkupAccumulator.h" | 52 #include "MarkupAccumulator.h" |
54 #include "NodeTraversal.h" | 53 #include "NodeTraversal.h" |
55 #include "Range.h" | 54 #include "Range.h" |
56 #include "RenderBlock.h" | 55 #include "RenderBlock.h" |
57 #include "RenderObject.h" | 56 #include "RenderObject.h" |
58 #include "Settings.h" | 57 #include "Settings.h" |
59 #include "StylePropertySet.h" | 58 #include "StylePropertySet.h" |
60 #include "StyleResolver.h" | 59 #include "StyleResolver.h" |
61 #include "TextIterator.h" | 60 #include "TextIterator.h" |
62 #include "VisibleSelection.h" | 61 #include "VisibleSelection.h" |
63 #include "VisibleUnits.h" | 62 #include "VisibleUnits.h" |
64 #include "XMLNSNames.h" | 63 #include "XMLNSNames.h" |
| 64 #include "core/platform/KURL.h" |
65 #include "htmlediting.h" | 65 #include "htmlediting.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; |
71 | 71 |
72 namespace WebCore { | 72 namespace WebCore { |
73 | 73 |
74 using namespace HTMLNames; | 74 using namespace HTMLNames; |
(...skipping 1017 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 |