| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 if (createdByParser && document && document->scriptableDocumentParser() && !
document->isInDocumentWrite()) | 54 if (createdByParser && document && document->scriptableDocumentParser() && !
document->isInDocumentWrite()) |
| 55 m_startPosition = document->scriptableDocumentParser()->textPosition(); | 55 m_startPosition = document->scriptableDocumentParser()->textPosition(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 StyleElement::~StyleElement() | 58 StyleElement::~StyleElement() |
| 59 { | 59 { |
| 60 if (m_sheet) | 60 if (m_sheet) |
| 61 clearSheet(); | 61 clearSheet(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void StyleElement::insertedIntoDocument(Document* document, Element* element) | 64 void StyleElement::processStyleSheet(Document* document, Element* element) |
| 65 { | 65 { |
| 66 ASSERT(document); | 66 ASSERT(document); |
| 67 ASSERT(element); | 67 ASSERT(element); |
| 68 document->styleSheetCollection()->addStyleSheetCandidateNode(element, m_crea
tedByParser); | 68 document->styleSheetCollection()->addStyleSheetCandidateNode(element, m_crea
tedByParser); |
| 69 if (m_createdByParser) | 69 if (m_createdByParser) |
| 70 return; | 70 return; |
| 71 | 71 |
| 72 process(element); | 72 process(element); |
| 73 } | 73 } |
| 74 | 74 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 return true; | 199 return true; |
| 200 } | 200 } |
| 201 | 201 |
| 202 void StyleElement::startLoadingDynamicSheet(Document* document) | 202 void StyleElement::startLoadingDynamicSheet(Document* document) |
| 203 { | 203 { |
| 204 ASSERT(document); | 204 ASSERT(document); |
| 205 document->styleSheetCollection()->addPendingSheet(); | 205 document->styleSheetCollection()->addPendingSheet(); |
| 206 } | 206 } |
| 207 | 207 |
| 208 } | 208 } |
| OLD | NEW |