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 29 matching lines...) Expand all Loading... |
40 #include "wtf/text/TextPosition.h" | 40 #include "wtf/text/TextPosition.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class AtomicHTMLToken; | 44 class AtomicHTMLToken; |
45 class DocumentFragment; | 45 class DocumentFragment; |
46 class Element; | 46 class Element; |
47 class HTMLDocument; | 47 class HTMLDocument; |
48 class HTMLDocumentParser; | 48 class HTMLDocumentParser; |
49 | 49 |
50 class HTMLTreeBuilder FINAL : public NoBaseWillBeGarbageCollectedFinalized<HTMLT
reeBuilder> { | 50 class HTMLTreeBuilder final : public NoBaseWillBeGarbageCollectedFinalized<HTMLT
reeBuilder> { |
51 WTF_MAKE_NONCOPYABLE(HTMLTreeBuilder); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOV
ED; | 51 WTF_MAKE_NONCOPYABLE(HTMLTreeBuilder); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOV
ED; |
52 public: | 52 public: |
53 static PassOwnPtrWillBeRawPtr<HTMLTreeBuilder> create(HTMLDocumentParser* pa
rser, HTMLDocument* document, ParserContentPolicy parserContentPolicy, bool repo
rtErrors, const HTMLParserOptions& options) | 53 static PassOwnPtrWillBeRawPtr<HTMLTreeBuilder> create(HTMLDocumentParser* pa
rser, HTMLDocument* document, ParserContentPolicy parserContentPolicy, bool repo
rtErrors, const HTMLParserOptions& options) |
54 { | 54 { |
55 return adoptPtrWillBeNoop(new HTMLTreeBuilder(parser, document, parserCo
ntentPolicy, reportErrors, options)); | 55 return adoptPtrWillBeNoop(new HTMLTreeBuilder(parser, document, parserCo
ntentPolicy, reportErrors, options)); |
56 } | 56 } |
57 static PassOwnPtrWillBeRawPtr<HTMLTreeBuilder> create(HTMLDocumentParser* pa
rser, DocumentFragment* fragment, Element* contextElement, ParserContentPolicy p
arserContentPolicy, const HTMLParserOptions& options) | 57 static PassOwnPtrWillBeRawPtr<HTMLTreeBuilder> create(HTMLDocumentParser* pa
rser, DocumentFragment* fragment, Element* contextElement, ParserContentPolicy p
arserContentPolicy, const HTMLParserOptions& options) |
58 { | 58 { |
59 return adoptPtrWillBeNoop(new HTMLTreeBuilder(parser, fragment, contextE
lement, parserContentPolicy, options)); | 59 return adoptPtrWillBeNoop(new HTMLTreeBuilder(parser, fragment, contextE
lement, parserContentPolicy, options)); |
60 } | 60 } |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 RefPtrWillBeMember<Element> m_scriptToProcess; // <script> tag which needs p
rocessing before resuming the parser. | 237 RefPtrWillBeMember<Element> m_scriptToProcess; // <script> tag which needs p
rocessing before resuming the parser. |
238 TextPosition m_scriptToProcessStartPosition; // Starting line number of the
script tag needing processing. | 238 TextPosition m_scriptToProcessStartPosition; // Starting line number of the
script tag needing processing. |
239 | 239 |
240 HTMLParserOptions m_options; | 240 HTMLParserOptions m_options; |
241 }; | 241 }; |
242 | 242 |
243 } | 243 } |
244 | 244 |
245 #endif | 245 #endif |
OLD | NEW |