| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void generateImpliedEndTagsWithExclusion(const AtomicString& tagName); | 136 void generateImpliedEndTagsWithExclusion(const AtomicString& tagName); |
| 137 | 137 |
| 138 bool inQuirksMode(); | 138 bool inQuirksMode(); |
| 139 | 139 |
| 140 bool isEmpty() const { return !m_openElements.stackDepth(); } | 140 bool isEmpty() const { return !m_openElements.stackDepth(); } |
| 141 HTMLElementStack::ElementRecord* currentElementRecord() const { return m_ope
nElements.topRecord(); } | 141 HTMLElementStack::ElementRecord* currentElementRecord() const { return m_ope
nElements.topRecord(); } |
| 142 Element* currentElement() const { return m_openElements.top(); } | 142 Element* currentElement() const { return m_openElements.top(); } |
| 143 ContainerNode* currentNode() const { return m_openElements.topNode(); } | 143 ContainerNode* currentNode() const { return m_openElements.topNode(); } |
| 144 HTMLStackItem* currentStackItem() const { return m_openElements.topStackItem
(); } | 144 HTMLStackItem* currentStackItem() const { return m_openElements.topStackItem
(); } |
| 145 HTMLStackItem* oneBelowTop() const { return m_openElements.oneBelowTop(); } | 145 HTMLStackItem* oneBelowTop() const { return m_openElements.oneBelowTop(); } |
| 146 Document* ownerDocumentForCurrentNode(); | 146 Document& ownerDocumentForCurrentNode(); |
| 147 HTMLElementStack* openElements() const { return &m_openElements; } | 147 HTMLElementStack* openElements() const { return &m_openElements; } |
| 148 HTMLFormattingElementList* activeFormattingElements() const { return &m_acti
veFormattingElements; } | 148 HTMLFormattingElementList* activeFormattingElements() const { return &m_acti
veFormattingElements; } |
| 149 bool currentIsRootNode() { return m_openElements.topNode() == m_openElements
.rootNode(); } | 149 bool currentIsRootNode() { return m_openElements.topNode() == m_openElements
.rootNode(); } |
| 150 | 150 |
| 151 Element* head() const { return m_head->element(); } | 151 Element* head() const { return m_head->element(); } |
| 152 HTMLStackItem* headStackItem() const { return m_head.get(); } | 152 HTMLStackItem* headStackItem() const { return m_head.get(); } |
| 153 | 153 |
| 154 void setForm(HTMLFormElement*); | 154 void setForm(HTMLFormElement*); |
| 155 HTMLFormElement* form() const { return m_form.get(); } | 155 HTMLFormElement* form() const { return m_form.get(); } |
| 156 PassRefPtr<HTMLFormElement> takeForm(); | 156 PassRefPtr<HTMLFormElement> takeForm(); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 // "whenever a node would be inserted into the current node, it must instead | 217 // "whenever a node would be inserted into the current node, it must instead |
| 218 // be foster parented." This flag tracks whether we're in that state. | 218 // be foster parented." This flag tracks whether we're in that state. |
| 219 bool m_redirectAttachToFosterParent; | 219 bool m_redirectAttachToFosterParent; |
| 220 | 220 |
| 221 bool m_inQuirksMode; | 221 bool m_inQuirksMode; |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 } // namespace WebCore | 224 } // namespace WebCore |
| 225 | 225 |
| 226 #endif | 226 #endif |
| OLD | NEW |