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

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

Issue 270483003: Oilpan: Prepare to move HTMLFormElement, HTMLFormElement::PastNamesMap, FormKeyGenerator, and FormS… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // tokens produce only one DOM mutation. 206 // tokens produce only one DOM mutation.
207 typedef Vector<HTMLConstructionSiteTask, 1> TaskQueue; 207 typedef Vector<HTMLConstructionSiteTask, 1> TaskQueue;
208 208
209 void setCompatibilityMode(Document::CompatibilityMode); 209 void setCompatibilityMode(Document::CompatibilityMode);
210 void setCompatibilityModeFromDoctype(const String& name, const String& publi cId, const String& systemId); 210 void setCompatibilityModeFromDoctype(const String& name, const String& publi cId, const String& systemId);
211 211
212 void attachLater(ContainerNode* parent, PassRefPtr<Node> child, bool selfClo sing = false); 212 void attachLater(ContainerNode* parent, PassRefPtr<Node> child, bool selfClo sing = false);
213 213
214 void findFosterSite(HTMLConstructionSiteTask&); 214 void findFosterSite(HTMLConstructionSiteTask&);
215 215
216 PassRefPtr<Element> createHTMLElement(AtomicHTMLToken*); 216 PassRefPtrWillBeRawPtr<Element> createHTMLElement(AtomicHTMLToken*);
217 PassRefPtr<Element> createElement(AtomicHTMLToken*, const AtomicString& name spaceURI); 217 PassRefPtr<Element> createElement(AtomicHTMLToken*, const AtomicString& name spaceURI);
218 218
219 void mergeAttributesFromTokenIntoElement(AtomicHTMLToken*, Element*); 219 void mergeAttributesFromTokenIntoElement(AtomicHTMLToken*, Element*);
220 void dispatchDocumentElementAvailableIfNeeded(); 220 void dispatchDocumentElementAvailableIfNeeded();
221 221
222 void executeTask(HTMLConstructionSiteTask&); 222 void executeTask(HTMLConstructionSiteTask&);
223 void queueTask(const HTMLConstructionSiteTask&); 223 void queueTask(const HTMLConstructionSiteTask&);
224 224
225 Document* m_document; 225 Document* m_document;
226 226
227 // This is the root ContainerNode to which the parser attaches all newly 227 // This is the root ContainerNode to which the parser attaches all newly
228 // constructed nodes. It points to a DocumentFragment when parsing fragments 228 // constructed nodes. It points to a DocumentFragment when parsing fragments
229 // and a Document in all other cases. 229 // and a Document in all other cases.
230 ContainerNode* m_attachmentRoot; 230 ContainerNode* m_attachmentRoot;
231 231
232 RefPtr<HTMLStackItem> m_head; 232 RefPtr<HTMLStackItem> m_head;
233 RefPtr<HTMLFormElement> m_form; 233 RefPtrWillBePersistent<HTMLFormElement> m_form;
234 mutable HTMLElementStack m_openElements; 234 mutable HTMLElementStack m_openElements;
235 mutable HTMLFormattingElementList m_activeFormattingElements; 235 mutable HTMLFormattingElementList m_activeFormattingElements;
236 236
237 TaskQueue m_taskQueue; 237 TaskQueue m_taskQueue;
238 238
239 struct PendingText { 239 struct PendingText {
240 PendingText() 240 PendingText()
241 : whitespaceMode(WhitespaceUnknown) 241 : whitespaceMode(WhitespaceUnknown)
242 { 242 {
243 } 243 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // "whenever a node would be inserted into the current node, it must instead 291 // "whenever a node would be inserted into the current node, it must instead
292 // be foster parented." This flag tracks whether we're in that state. 292 // be foster parented." This flag tracks whether we're in that state.
293 bool m_redirectAttachToFosterParent; 293 bool m_redirectAttachToFosterParent;
294 294
295 bool m_inQuirksMode; 295 bool m_inQuirksMode;
296 }; 296 };
297 297
298 } // namespace WebCore 298 } // namespace WebCore
299 299
300 #endif 300 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698