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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |