| 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 | |
| 45 namespace WebCore { | 43 namespace WebCore { |
| 46 | 44 |
| 47 PassRefPtrWillBeRawPtr<Text> Text::create(Document& document, const String& data
) | 45 PassRefPtrWillBeRawPtr<Text> Text::create(Document& document, const String& data
) |
| 48 { | 46 { |
| 49 return adoptRefWillBeRefCountedGarbageCollected(new Text(document, data, Cre
ateText)); | 47 return adoptRefWillBeRefCountedGarbageCollected(new Text(document, data, Cre
ateText)); |
| 50 } | 48 } |
| 51 | 49 |
| 52 PassRefPtrWillBeRawPtr<Text> Text::createEditingText(Document& document, const S
tring& data) | 50 PassRefPtrWillBeRawPtr<Text> Text::createEditingText(Document& document, const S
tring& data) |
| 53 { | 51 { |
| 54 return adoptRefWillBeRefCountedGarbageCollected(new Text(document, data, Cre
ateEditingText)); | 52 return adoptRefWillBeRefCountedGarbageCollected(new Text(document, data, Cre
ateEditingText)); |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 result.appendLiteral("; "); | 368 result.appendLiteral("; "); |
| 371 result.appendLiteral("value="); | 369 result.appendLiteral("value="); |
| 372 result.append(s); | 370 result.append(s); |
| 373 } | 371 } |
| 374 | 372 |
| 375 strncpy(buffer, result.toString().utf8().data(), length - 1); | 373 strncpy(buffer, result.toString().utf8().data(), length - 1); |
| 376 } | 374 } |
| 377 #endif | 375 #endif |
| 378 | 376 |
| 379 } // namespace WebCore | 377 } // namespace WebCore |
| OLD | NEW |