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

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

Issue 1306413003: Make classes and structures in core/html fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 Element* head() const { return m_head->element(); } 195 Element* head() const { return m_head->element(); }
196 HTMLStackItem* headStackItem() const { return m_head.get(); } 196 HTMLStackItem* headStackItem() const { return m_head.get(); }
197 197
198 void setForm(HTMLFormElement*); 198 void setForm(HTMLFormElement*);
199 HTMLFormElement* form() const { return m_form.get(); } 199 HTMLFormElement* form() const { return m_form.get(); }
200 PassRefPtrWillBeRawPtr<HTMLFormElement> takeForm(); 200 PassRefPtrWillBeRawPtr<HTMLFormElement> takeForm();
201 201
202 ParserContentPolicy parserContentPolicy() { return m_parserContentPolicy; } 202 ParserContentPolicy parserContentPolicy() { return m_parserContentPolicy; }
203 203
204 class RedirectToFosterParentGuard { 204 class RedirectToFosterParentGuard {
205 STACK_ALLOCATED();
205 WTF_MAKE_NONCOPYABLE(RedirectToFosterParentGuard); 206 WTF_MAKE_NONCOPYABLE(RedirectToFosterParentGuard);
206 public: 207 public:
207 RedirectToFosterParentGuard(HTMLConstructionSite& tree) 208 RedirectToFosterParentGuard(HTMLConstructionSite& tree)
208 : m_tree(tree) 209 : m_tree(tree)
209 , m_wasRedirectingBefore(tree.m_redirectAttachToFosterParent) 210 , m_wasRedirectingBefore(tree.m_redirectAttachToFosterParent)
210 { 211 {
211 m_tree.m_redirectAttachToFosterParent = true; 212 m_tree.m_redirectAttachToFosterParent = true;
212 } 213 }
213 214
214 ~RedirectToFosterParentGuard() 215 ~RedirectToFosterParentGuard()
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // "whenever a node would be inserted into the current node, it must instead 316 // "whenever a node would be inserted into the current node, it must instead
316 // be foster parented." This flag tracks whether we're in that state. 317 // be foster parented." This flag tracks whether we're in that state.
317 bool m_redirectAttachToFosterParent; 318 bool m_redirectAttachToFosterParent;
318 319
319 bool m_inQuirksMode; 320 bool m_inQuirksMode;
320 }; 321 };
321 322
322 } // namespace blink 323 } // namespace blink
323 324
324 #endif 325 #endif
OLDNEW
« no previous file with comments | « Source/core/html/parser/CompactHTMLToken.h ('k') | Source/core/html/parser/HTMLDocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698