OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "config.h" | 27 #include "config.h" |
28 #include "core/html/parser/HTMLTreeBuilder.h" | 28 #include "core/html/parser/HTMLTreeBuilder.h" |
29 | 29 |
30 #include "HTMLNames.h" | 30 #include "HTMLNames.h" |
31 #include "MathMLNames.h" | 31 #include "MathMLNames.h" |
32 #include "SVGNames.h" | 32 #include "SVGNames.h" |
33 #include "XLinkNames.h" | 33 #include "XLinkNames.h" |
34 #include "XMLNSNames.h" | 34 #include "XMLNSNames.h" |
35 #include "XMLNames.h" | 35 #include "XMLNames.h" |
36 #include "core/dom/DocumentFragment.h" | 36 #include "core/dom/DocumentFragment.h" |
37 #include "core/html/HTMLDocument.h" | |
38 #include "core/html/HTMLFormElement.h" | 37 #include "core/html/HTMLFormElement.h" |
39 #include "core/html/parser/AtomicHTMLToken.h" | 38 #include "core/html/parser/AtomicHTMLToken.h" |
40 #include "core/html/parser/HTMLDocumentParser.h" | 39 #include "core/html/parser/HTMLDocumentParser.h" |
41 #include "core/html/parser/HTMLParserIdioms.h" | 40 #include "core/html/parser/HTMLParserIdioms.h" |
42 #include "core/html/parser/HTMLStackItem.h" | 41 #include "core/html/parser/HTMLStackItem.h" |
43 #include "core/html/parser/HTMLToken.h" | 42 #include "core/html/parser/HTMLToken.h" |
44 #include "core/html/parser/HTMLTokenizer.h" | 43 #include "core/html/parser/HTMLTokenizer.h" |
45 #include "core/platform/LocalizedStrings.h" | 44 #include "core/platform/LocalizedStrings.h" |
46 #include "core/platform/NotImplemented.h" | 45 #include "core/platform/NotImplemented.h" |
47 #include <wtf/MainThread.h> | 46 #include "wtf/MainThread.h" |
48 #include <wtf/unicode/CharacterNames.h> | 47 #include "wtf/unicode/CharacterNames.h" |
49 | 48 |
50 namespace WebCore { | 49 namespace WebCore { |
51 | 50 |
52 using namespace HTMLNames; | 51 using namespace HTMLNames; |
53 | 52 |
54 namespace { | 53 namespace { |
55 | 54 |
56 inline bool isHTMLSpaceOrReplacementCharacter(UChar character) | 55 inline bool isHTMLSpaceOrReplacementCharacter(UChar character) |
57 { | 56 { |
58 return isHTMLSpace(character) || character == replacementCharacter; | 57 return isHTMLSpace(character) || character == replacementCharacter; |
(...skipping 2748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2807 ASSERT(m_isAttached); | 2806 ASSERT(m_isAttached); |
2808 // Warning, this may detach the parser. Do not do anything else after this. | 2807 // Warning, this may detach the parser. Do not do anything else after this. |
2809 m_tree.finishedParsing(); | 2808 m_tree.finishedParsing(); |
2810 } | 2809 } |
2811 | 2810 |
2812 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) | 2811 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) |
2813 { | 2812 { |
2814 } | 2813 } |
2815 | 2814 |
2816 } | 2815 } |
OLD | NEW |