Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.h

Issue 2126043003: Refactor HTMLTreeBuilder/HTMLConstructionSite ctor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase / add comment Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698