OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights |
| 4 * reserved. |
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve
d. | 6 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights |
| 7 * reserved. |
6 * | 8 * |
7 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
11 * | 13 * |
12 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Library General Public License for more details. | 17 * Library General Public License for more details. |
16 * | 18 * |
17 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
18 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
21 */ | 23 */ |
22 | 24 |
23 #ifndef CSSMarkup_h | 25 #ifndef CSSMarkup_h |
24 #define CSSMarkup_h | 26 #define CSSMarkup_h |
25 | 27 |
26 #include "wtf/text/WTFString.h" | 28 #include "wtf/text/WTFString.h" |
27 | 29 |
28 // Helper functions for converting from CSSValues to text. | 30 // Helper functions for converting from CSSValues to text. |
29 | 31 |
30 namespace blink { | 32 namespace blink { |
31 | 33 |
32 // Common serializing methods. See: http://dev.w3.org/csswg/cssom/#common-serial
izing-idioms | 34 // Common serializing methods. See: |
| 35 // http://dev.w3.org/csswg/cssom/#common-serializing-idioms |
33 void serializeIdentifier(const String& identifier, | 36 void serializeIdentifier(const String& identifier, |
34 StringBuilder& appendTo, | 37 StringBuilder& appendTo, |
35 bool skipStartChecks = false); | 38 bool skipStartChecks = false); |
36 void serializeString(const String&, StringBuilder& appendTo); | 39 void serializeString(const String&, StringBuilder& appendTo); |
37 String serializeString(const String&); | 40 String serializeString(const String&); |
38 String serializeURI(const String&); | 41 String serializeURI(const String&); |
39 String serializeFontFamily(const String&); | 42 String serializeFontFamily(const String&); |
40 | 43 |
41 } // namespace blink | 44 } // namespace blink |
42 | 45 |
43 #endif // CSSMarkup_h | 46 #endif // CSSMarkup_h |
OLD | NEW |