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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 class AtomicHTMLToken; | 103 class AtomicHTMLToken; |
104 class Document; | 104 class Document; |
105 class Element; | 105 class Element; |
106 class HTMLFormElement; | 106 class HTMLFormElement; |
107 | 107 |
108 class HTMLConstructionSite final { | 108 class HTMLConstructionSite final { |
109 WTF_MAKE_NONCOPYABLE(HTMLConstructionSite); | 109 WTF_MAKE_NONCOPYABLE(HTMLConstructionSite); |
110 DISALLOW_NEW(); | 110 DISALLOW_NEW(); |
111 public: | 111 public: |
112 HTMLConstructionSite(Document*, ParserContentPolicy); | 112 HTMLConstructionSite(Document&, ParserContentPolicy); |
113 HTMLConstructionSite(DocumentFragment*, ParserContentPolicy); | |
114 ~HTMLConstructionSite(); | 113 ~HTMLConstructionSite(); |
115 DECLARE_TRACE(); | 114 DECLARE_TRACE(); |
116 | 115 |
| 116 void initFragmentParsing(DocumentFragment*); |
| 117 |
117 void detach(); | 118 void detach(); |
118 | 119 |
119 // executeQueuedTasks empties the queue but does not flush pending text. | 120 // executeQueuedTasks empties the queue but does not flush pending text. |
120 // NOTE: Possible reentrancy via JavaScript execution. | 121 // NOTE: Possible reentrancy via JavaScript execution. |
121 void executeQueuedTasks(); | 122 void executeQueuedTasks(); |
122 | 123 |
123 // flushPendingText turns pending text into queued Text insertions, but does
not execute them. | 124 // flushPendingText turns pending text into queued Text insertions, but does
not execute them. |
124 void flushPendingText(FlushMode); | 125 void flushPendingText(FlushMode); |
125 | 126 |
126 // Called before every token in HTMLTreeBuilder::processToken, thus inlined: | 127 // Called before every token in HTMLTreeBuilder::processToken, thus inlined: |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // "whenever a node would be inserted into the current node, it must instead | 317 // "whenever a node would be inserted into the current node, it must instead |
317 // be foster parented." This flag tracks whether we're in that state. | 318 // be foster parented." This flag tracks whether we're in that state. |
318 bool m_redirectAttachToFosterParent; | 319 bool m_redirectAttachToFosterParent; |
319 | 320 |
320 bool m_inQuirksMode; | 321 bool m_inQuirksMode; |
321 }; | 322 }; |
322 | 323 |
323 } // namespace blink | 324 } // namespace blink |
324 | 325 |
325 #endif | 326 #endif |
OLD | NEW |