| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 if (!insertionPoint->isConnected()) | 75 if (!insertionPoint->isConnected()) |
| 76 return; | 76 return; |
| 77 | 77 |
| 78 Document& document = element.document(); | 78 Document& document = element.document(); |
| 79 if (m_registeredAsCandidate) { | 79 if (m_registeredAsCandidate) { |
| 80 document.styleEngine().removeStyleSheetCandidateNode(element, | 80 document.styleEngine().removeStyleSheetCandidateNode(element, |
| 81 *insertionPoint); | 81 *insertionPoint); |
| 82 m_registeredAsCandidate = false; | 82 m_registeredAsCandidate = false; |
| 83 } | 83 } |
| 84 | 84 |
| 85 if (m_sheet) { | 85 if (m_sheet) |
| 86 clearSheet(element); | 86 clearSheet(element); |
| 87 if (element.isConnected()) { | |
| 88 // TODO(rune@opera.com): resolverChanged() can be removed once stylesheet | |
| 89 // updates are async. https://crbug.com/567021 | |
| 90 document.styleEngine().resolverChanged(AnalyzedStyleUpdate); | |
| 91 } | |
| 92 } | |
| 93 } | 87 } |
| 94 | 88 |
| 95 StyleElement::ProcessingResult StyleElement::childrenChanged(Element& element) { | 89 StyleElement::ProcessingResult StyleElement::childrenChanged(Element& element) { |
| 96 if (m_createdByParser) | 90 if (m_createdByParser) |
| 97 return ProcessingSuccessful; | 91 return ProcessingSuccessful; |
| 98 | 92 |
| 99 return process(element); | 93 return process(element); |
| 100 } | 94 } |
| 101 | 95 |
| 102 StyleElement::ProcessingResult StyleElement::finishParsingChildren( | 96 StyleElement::ProcessingResult StyleElement::finishParsingChildren( |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 195 |
| 202 void StyleElement::startLoadingDynamicSheet(Document& document) { | 196 void StyleElement::startLoadingDynamicSheet(Document& document) { |
| 203 document.styleEngine().addPendingSheet(m_styleEngineContext); | 197 document.styleEngine().addPendingSheet(m_styleEngineContext); |
| 204 } | 198 } |
| 205 | 199 |
| 206 DEFINE_TRACE(StyleElement) { | 200 DEFINE_TRACE(StyleElement) { |
| 207 visitor->trace(m_sheet); | 201 visitor->trace(m_sheet); |
| 208 } | 202 } |
| 209 | 203 |
| 210 } // namespace blink | 204 } // namespace blink |
| OLD | NEW |