| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "core/html/parser/HTMLMetaCharsetParser.h" | 26 #include "core/html/parser/HTMLMetaCharsetParser.h" |
| 27 | 27 |
| 28 #include "core/HTMLNames.h" | 28 #include "core/HTMLNames.h" |
| 29 #include "core/html/parser/HTMLParserIdioms.h" | 29 #include "core/html/parser/HTMLParserIdioms.h" |
| 30 #include "core/html/parser/HTMLParserOptions.h" | 30 #include "core/html/parser/HTMLParserOptions.h" |
| 31 #include "core/html/parser/HTMLTokenizer.h" | 31 #include "core/html/parser/HTMLTokenizer.h" |
| 32 #include "wtf/text/TextEncodingRegistry.h" | 32 #include "wtf/text/TextEncodingRegistry.h" |
| 33 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
| 34 | 34 |
| 35 using namespace WTF; | |
| 36 | |
| 37 namespace blink { | 35 namespace blink { |
| 38 | 36 |
| 39 using namespace HTMLNames; | 37 using namespace HTMLNames; |
| 40 | 38 |
| 41 HTMLMetaCharsetParser::HTMLMetaCharsetParser() | 39 HTMLMetaCharsetParser::HTMLMetaCharsetParser() |
| 42 : m_tokenizer(HTMLTokenizer::create(HTMLParserOptions(0))), | 40 : m_tokenizer(HTMLTokenizer::create(HTMLParserOptions(0))), |
| 43 m_assumedCodec(newTextCodec(Latin1Encoding())), | 41 m_assumedCodec(newTextCodec(Latin1Encoding())), |
| 44 m_inHeadSection(true), | 42 m_inHeadSection(true), |
| 45 m_doneChecking(false) {} | 43 m_doneChecking(false) {} |
| 46 | 44 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 return true; | 119 return true; |
| 122 } | 120 } |
| 123 | 121 |
| 124 m_token.clear(); | 122 m_token.clear(); |
| 125 } | 123 } |
| 126 | 124 |
| 127 return false; | 125 return false; |
| 128 } | 126 } |
| 129 | 127 |
| 130 } // namespace blink | 128 } // namespace blink |
| OLD | NEW |