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 18 matching lines...) Expand all Loading... |
29 #include "core/dom/shadow/ShadowRoot.h" | 29 #include "core/dom/shadow/ShadowRoot.h" |
30 #include "core/rendering/RenderCombineText.h" | 30 #include "core/rendering/RenderCombineText.h" |
31 #include "core/rendering/RenderText.h" | 31 #include "core/rendering/RenderText.h" |
32 | 32 |
33 #if ENABLE(SVG) | 33 #if ENABLE(SVG) |
34 #include "SVGNames.h" | 34 #include "SVGNames.h" |
35 #include "core/rendering/svg/RenderSVGInlineText.h" | 35 #include "core/rendering/svg/RenderSVGInlineText.h" |
36 #endif | 36 #endif |
37 | 37 |
38 #include "core/css/resolver/StyleResolver.h" | 38 #include "core/css/resolver/StyleResolver.h" |
39 #include "core/rendering/style/StyleInheritedData.h" | |
40 #include <wtf/text/CString.h> | 39 #include <wtf/text/CString.h> |
41 #include <wtf/text/StringBuilder.h> | 40 #include <wtf/text/StringBuilder.h> |
42 | 41 |
43 using namespace std; | 42 using namespace std; |
44 | 43 |
45 namespace WebCore { | 44 namespace WebCore { |
46 | 45 |
47 PassRefPtr<Text> Text::create(Document* document, const String& data) | 46 PassRefPtr<Text> Text::create(Document* document, const String& data) |
48 { | 47 { |
49 return adoptRef(new Text(document, data, CreateText)); | 48 return adoptRef(new Text(document, data, CreateText)); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 result.appendLiteral("; "); | 348 result.appendLiteral("; "); |
350 result.appendLiteral("value="); | 349 result.appendLiteral("value="); |
351 result.append(s); | 350 result.append(s); |
352 } | 351 } |
353 | 352 |
354 strncpy(buffer, result.toString().utf8().data(), length - 1); | 353 strncpy(buffer, result.toString().utf8().data(), length - 1); |
355 } | 354 } |
356 #endif | 355 #endif |
357 | 356 |
358 } // namespace WebCore | 357 } // namespace WebCore |
OLD | NEW |