| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Rob Buis | 2 * Copyright (C) 2006, 2007 Rob Buis |
| 3 * Copyright (C) 2008 Apple, Inc. All rights reserved. | 3 * Copyright (C) 2008 Apple, Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 | 112 |
| 113 void StyleElement::clearDocumentData(Document& document, Element* element) | 113 void StyleElement::clearDocumentData(Document& document, Element* element) |
| 114 { | 114 { |
| 115 if (m_sheet) | 115 if (m_sheet) |
| 116 m_sheet->clearOwnerNode(); | 116 m_sheet->clearOwnerNode(); |
| 117 | 117 |
| 118 if (m_registeredAsCandidate) { | 118 if (m_registeredAsCandidate) { |
| 119 ASSERT(element->inDocument()); | 119 ASSERT(element->inDocument()); |
| 120 document.styleEngine().removeStyleSheetCandidateNode(element, element->t
reeScope()); | 120 document.styleEngine().removeStyleSheetCandidateNode(element, element->t
reeScope()); |
| 121 m_registeredAsCandidate = false; |
| 121 } | 122 } |
| 122 } | 123 } |
| 123 | 124 |
| 124 StyleElement::ProcessingResult StyleElement::childrenChanged(Element* element) | 125 StyleElement::ProcessingResult StyleElement::childrenChanged(Element* element) |
| 125 { | 126 { |
| 126 ASSERT(element); | 127 ASSERT(element); |
| 127 if (m_createdByParser) | 128 if (m_createdByParser) |
| 128 return ProcessingSuccessful; | 129 return ProcessingSuccessful; |
| 129 | 130 |
| 130 return process(element); | 131 return process(element); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 { | 227 { |
| 227 document.styleEngine().addPendingSheet(); | 228 document.styleEngine().addPendingSheet(); |
| 228 } | 229 } |
| 229 | 230 |
| 230 DEFINE_TRACE(StyleElement) | 231 DEFINE_TRACE(StyleElement) |
| 231 { | 232 { |
| 232 visitor->trace(m_sheet); | 233 visitor->trace(m_sheet); |
| 233 } | 234 } |
| 234 | 235 |
| 235 } | 236 } |
| OLD | NEW |