| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef HTMLParserIdioms_h | 25 #ifndef HTMLParserIdioms_h |
| 26 #define HTMLParserIdioms_h | 26 #define HTMLParserIdioms_h |
| 27 | 27 |
| 28 #include "core/CoreExport.h" | 28 #include "core/CoreExport.h" |
| 29 #include "core/dom/QualifiedName.h" | 29 #include "core/dom/QualifiedName.h" |
| 30 #include "platform/Decimal.h" | 30 #include "platform/Decimal.h" |
| 31 #include "wtf/Forward.h" | 31 #include "platform/wtf/Forward.h" |
| 32 #include "wtf/text/WTFString.h" | 32 #include "platform/wtf/text/WTFString.h" |
| 33 | 33 |
| 34 namespace WTF { | 34 namespace WTF { |
| 35 class TextEncoding; | 35 class TextEncoding; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 // Strip leading and trailing whitespace as defined by the HTML specification. | 40 // Strip leading and trailing whitespace as defined by the HTML specification. |
| 41 String StripLeadingAndTrailingHTMLSpaces(const String&); | 41 String StripLeadingAndTrailingHTMLSpaces(const String&); |
| 42 | 42 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 inline static String AttemptStaticStringCreation(const String str) { | 128 inline static String AttemptStaticStringCreation(const String str) { |
| 129 if (!str.Is8Bit()) | 129 if (!str.Is8Bit()) |
| 130 return AttemptStaticStringCreation(str.Characters16(), str.length(), | 130 return AttemptStaticStringCreation(str.Characters16(), str.length(), |
| 131 kForce16Bit); | 131 kForce16Bit); |
| 132 return AttemptStaticStringCreation(str.Characters8(), str.length()); | 132 return AttemptStaticStringCreation(str.Characters8(), str.length()); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace blink | 135 } // namespace blink |
| 136 | 136 |
| 137 #endif // HTMLParserIdioms_h | 137 #endif // HTMLParserIdioms_h |
| OLD | NEW |