| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 HTMLStackItem* oneBelowTop() const { return m_openElements.oneBelowTop(); } | 189 HTMLStackItem* oneBelowTop() const { return m_openElements.oneBelowTop(); } |
| 190 Document& ownerDocumentForCurrentNode(); | 190 Document& ownerDocumentForCurrentNode(); |
| 191 HTMLElementStack* openElements() const { return &m_openElements; } | 191 HTMLElementStack* openElements() const { return &m_openElements; } |
| 192 HTMLFormattingElementList* activeFormattingElements() const { return &m_acti
veFormattingElements; } | 192 HTMLFormattingElementList* activeFormattingElements() const { return &m_acti
veFormattingElements; } |
| 193 bool currentIsRootNode() { return m_openElements.topNode() == m_openElements
.rootNode(); } | 193 bool currentIsRootNode() { return m_openElements.topNode() == m_openElements
.rootNode(); } |
| 194 | 194 |
| 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; | 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 STACK_ALLOCATED(); |
| 206 WTF_MAKE_NONCOPYABLE(RedirectToFosterParentGuard); | 206 WTF_MAKE_NONCOPYABLE(RedirectToFosterParentGuard); |
| 207 public: | 207 public: |
| 208 RedirectToFosterParentGuard(HTMLConstructionSite& tree) | 208 RedirectToFosterParentGuard(HTMLConstructionSite& tree) |
| 209 : m_tree(tree) | 209 : m_tree(tree) |
| (...skipping 106 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 | 316 // "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. | 317 // be foster parented." This flag tracks whether we're in that state. |
| 318 bool m_redirectAttachToFosterParent; | 318 bool m_redirectAttachToFosterParent; |
| 319 | 319 |
| 320 bool m_inQuirksMode; | 320 bool m_inQuirksMode; |
| 321 }; | 321 }; |
| 322 | 322 |
| 323 } // namespace blink | 323 } // namespace blink |
| 324 | 324 |
| 325 #endif | 325 #endif |
| OLD | NEW |