OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "core/dom/RenderTreeBuilder.h" | 33 #include "core/dom/RenderTreeBuilder.h" |
34 #include "core/dom/shadow/ShadowRoot.h" | 34 #include "core/dom/shadow/ShadowRoot.h" |
35 #include "core/events/ScopedEventQueue.h" | 35 #include "core/events/ScopedEventQueue.h" |
36 #include "core/rendering/RenderCombineText.h" | 36 #include "core/rendering/RenderCombineText.h" |
37 #include "core/rendering/RenderText.h" | 37 #include "core/rendering/RenderText.h" |
38 #include "core/rendering/svg/RenderSVGInlineText.h" | 38 #include "core/rendering/svg/RenderSVGInlineText.h" |
39 #include "core/svg/SVGForeignObjectElement.h" | 39 #include "core/svg/SVGForeignObjectElement.h" |
40 #include "wtf/text/CString.h" | 40 #include "wtf/text/CString.h" |
41 #include "wtf/text/StringBuilder.h" | 41 #include "wtf/text/StringBuilder.h" |
42 | 42 |
| 43 using namespace std; |
| 44 |
43 namespace WebCore { | 45 namespace WebCore { |
44 | 46 |
45 PassRefPtrWillBeRawPtr<Text> Text::create(Document& document, const String& data
) | 47 PassRefPtrWillBeRawPtr<Text> Text::create(Document& document, const String& data
) |
46 { | 48 { |
47 return adoptRefWillBeRefCountedGarbageCollected(new Text(document, data, Cre
ateText)); | 49 return adoptRefWillBeRefCountedGarbageCollected(new Text(document, data, Cre
ateText)); |
48 } | 50 } |
49 | 51 |
50 PassRefPtrWillBeRawPtr<Text> Text::createEditingText(Document& document, const S
tring& data) | 52 PassRefPtrWillBeRawPtr<Text> Text::createEditingText(Document& document, const S
tring& data) |
51 { | 53 { |
52 return adoptRefWillBeRefCountedGarbageCollected(new Text(document, data, Cre
ateEditingText)); | 54 return adoptRefWillBeRefCountedGarbageCollected(new Text(document, data, Cre
ateEditingText)); |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 result.appendLiteral("; "); | 370 result.appendLiteral("; "); |
369 result.appendLiteral("value="); | 371 result.appendLiteral("value="); |
370 result.append(s); | 372 result.append(s); |
371 } | 373 } |
372 | 374 |
373 strncpy(buffer, result.toString().utf8().data(), length - 1); | 375 strncpy(buffer, result.toString().utf8().data(), length - 1); |
374 } | 376 } |
375 #endif | 377 #endif |
376 | 378 |
377 } // namespace WebCore | 379 } // namespace WebCore |
OLD | NEW |