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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void StyleElement::removedFromDocument(Document& document, Element* element) | 69 void StyleElement::removedFromDocument(Document& document, Element* element) |
70 { | 70 { |
71 removedFromDocument(document, element, 0, document); | 71 removedFromDocument(document, element, 0, document); |
72 } | 72 } |
73 | 73 |
74 void StyleElement::removedFromDocument(Document& document, Element* element, Con
tainerNode* scopingNode, TreeScope& treeScope) | 74 void StyleElement::removedFromDocument(Document& document, Element* element, Con
tainerNode* scopingNode, TreeScope& treeScope) |
75 { | 75 { |
76 ASSERT(element); | 76 ASSERT(element); |
77 document.styleEngine()->removeStyleSheetCandidateNode(element, scopingNode,
treeScope); | 77 document.styleEngine()->removeStyleSheetCandidateNode(element, scopingNode,
treeScope); |
78 | 78 |
79 RefPtr<StyleSheet> removedSheet = m_sheet; | 79 RefPtrWillBeRawPtr<StyleSheet> removedSheet = m_sheet.get(); |
80 | 80 |
81 if (m_sheet) | 81 if (m_sheet) |
82 clearSheet(element); | 82 clearSheet(element); |
83 | 83 |
84 document.removedStyleSheet(removedSheet.get(), RecalcStyleDeferred, Analyzed
StyleUpdate); | 84 document.removedStyleSheet(removedSheet.get(), RecalcStyleDeferred, Analyzed
StyleUpdate); |
85 } | 85 } |
86 | 86 |
87 void StyleElement::clearDocumentData(Document& document, Element* element) | 87 void StyleElement::clearDocumentData(Document& document, Element* element) |
88 { | 88 { |
89 if (m_sheet) | 89 if (m_sheet) |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 document.styleEngine()->removePendingSheet(m_sheet->ownerNode()); | 173 document.styleEngine()->removePendingSheet(m_sheet->ownerNode()); |
174 return true; | 174 return true; |
175 } | 175 } |
176 | 176 |
177 void StyleElement::startLoadingDynamicSheet(Document& document) | 177 void StyleElement::startLoadingDynamicSheet(Document& document) |
178 { | 178 { |
179 document.styleEngine()->addPendingSheet(); | 179 document.styleEngine()->addPendingSheet(); |
180 } | 180 } |
181 | 181 |
182 } | 182 } |
OLD | NEW |