| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 3 (C) 1997 Torben Weis (weis@kde.org) | 3 (C) 1997 Torben Weis (weis@kde.org) |
| 4 (C) 1998 Waldo Bastian (bastian@kde.org) | 4 (C) 1998 Waldo Bastian (bastian@kde.org) |
| 5 (C) 1999 Lars Knoll (knoll@kde.org) | 5 (C) 1999 Lars Knoll (knoll@kde.org) |
| 6 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 if (m_hasPElementInScope == Unknown) | 143 if (m_hasPElementInScope == Unknown) |
| 144 checkIfHasPElementInScope(); | 144 checkIfHasPElementInScope(); |
| 145 return m_hasPElementInScope == InScope; | 145 return m_hasPElementInScope == InScope; |
| 146 } | 146 } |
| 147 | 147 |
| 148 void reportError(HTMLParserErrorCode errorCode, const AtomicString* tagName1
= 0, const AtomicString* tagName2 = 0, bool closeTags = false) | 148 void reportError(HTMLParserErrorCode errorCode, const AtomicString* tagName1
= 0, const AtomicString* tagName2 = 0, bool closeTags = false) |
| 149 { if (!m_reportErrors) return; reportErrorToConsole(errorCode, tagName1, tag
Name2, closeTags); } | 149 { if (!m_reportErrors) return; reportErrorToConsole(errorCode, tagName1, tag
Name2, closeTags); } |
| 150 | 150 |
| 151 void reportErrorToConsole(HTMLParserErrorCode, const AtomicString* tagName1,
const AtomicString* tagName2, bool closeTags); | 151 void reportErrorToConsole(HTMLParserErrorCode, const AtomicString* tagName1,
const AtomicString* tagName2, bool closeTags); |
| 152 | 152 |
| 153 Document* document; | 153 Document* m_document; |
| 154 | 154 |
| 155 // The currently active element (the one new elements will be added to). Can
be a document fragment, a document or an element. | 155 // The currently active element (the one new elements will be added to). Can
be a document fragment, a document or an element. |
| 156 Node* current; | 156 Node* m_current; |
| 157 // We can't ref a document, but we don't want to constantly check if a node
is a document just to decide whether to deref. | 157 // We can't ref a document, but we don't want to constantly check if a node
is a document just to decide whether to deref. |
| 158 bool didRefCurrent; | 158 bool m_didRefCurrent; |
| 159 | 159 |
| 160 HTMLStackElem* blockStack; | 160 HTMLStackElem* m_blockStack; |
| 161 | 161 |
| 162 enum ElementInScopeState { NotInScope, InScope, Unknown }; | 162 enum ElementInScopeState { NotInScope, InScope, Unknown }; |
| 163 ElementInScopeState m_hasPElementInScope; | 163 ElementInScopeState m_hasPElementInScope; |
| 164 | 164 |
| 165 RefPtr<HTMLFormElement> m_currentFormElement; // currently active form | 165 RefPtr<HTMLFormElement> m_currentFormElement; // currently active form |
| 166 RefPtr<HTMLMapElement> m_currentMapElement; // current map | 166 RefPtr<HTMLMapElement> m_currentMapElement; // current map |
| 167 HTMLHeadElement* head; // head element; needed for HTML which defines <base>
after </head> | 167 HTMLHeadElement* m_head; // head element; needed for HTML which defines <bas
e> after </head> |
| 168 RefPtr<Node> m_isindexElement; // a possible <isindex> element in the head | 168 RefPtr<Node> m_isindexElement; // a possible <isindex> element in the head |
| 169 | 169 |
| 170 bool inBody; | 170 bool m_inBody; |
| 171 bool haveContent; | 171 bool m_haveContent; |
| 172 bool haveFrameSet; | 172 bool m_haveFrameSet; |
| 173 | 173 |
| 174 AtomicString m_skipModeTag; // tells the parser to discard all tags until it
reaches the one specified | 174 AtomicString m_skipModeTag; // tells the parser to discard all tags until it
reaches the one specified |
| 175 | 175 |
| 176 bool m_isParsingFragment; | 176 bool m_isParsingFragment; |
| 177 bool m_reportErrors; | 177 bool m_reportErrors; |
| 178 bool m_handlingResidualStyleAcrossBlocks; | 178 bool m_handlingResidualStyleAcrossBlocks; |
| 179 int inStrayTableContent; | 179 int m_inStrayTableContent; |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 } | 182 } |
| 183 | 183 |
| 184 #endif // HTMLParser_h | 184 #endif // HTMLParser_h |
| OLD | NEW |