OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
6 * reserved. | 6 * reserved. |
7 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) | 7 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) |
8 * Copyright (C) 2011 Google Inc. All rights reserved. | 8 * Copyright (C) 2011 Google Inc. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 return; | 211 return; |
212 | 212 |
213 m_linkLoader->released(); | 213 m_linkLoader->released(); |
214 | 214 |
215 if (!wasConnected) { | 215 if (!wasConnected) { |
216 DCHECK(!linkStyle() || !linkStyle()->hasSheet()); | 216 DCHECK(!linkStyle() || !linkStyle()->hasSheet()); |
217 return; | 217 return; |
218 } | 218 } |
219 document().styleEngine().removeStyleSheetCandidateNode(*this, | 219 document().styleEngine().removeStyleSheetCandidateNode(*this, |
220 *insertionPoint); | 220 *insertionPoint); |
221 | |
222 if (m_link) | 221 if (m_link) |
223 m_link->ownerRemoved(); | 222 m_link->ownerRemoved(); |
224 | |
225 // TODO(rune@opera.com): resolverChanged() can be removed once stylesheet | |
226 // updates are async. https://crbug.com/567021 | |
227 document().styleEngine().resolverChanged(AnalyzedStyleUpdate); | |
228 } | 223 } |
229 | 224 |
230 void HTMLLinkElement::finishParsingChildren() { | 225 void HTMLLinkElement::finishParsingChildren() { |
231 m_createdByParser = false; | 226 m_createdByParser = false; |
232 HTMLElement::finishParsingChildren(); | 227 HTMLElement::finishParsingChildren(); |
233 } | 228 } |
234 | 229 |
235 bool HTMLLinkElement::styleSheetIsLoading() const { | 230 bool HTMLLinkElement::styleSheetIsLoading() const { |
236 return linkStyle() && linkStyle()->styleSheetIsLoading(); | 231 return linkStyle() && linkStyle()->styleSheetIsLoading(); |
237 } | 232 } |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 LinkLoaderClient::trace(visitor); | 358 LinkLoaderClient::trace(visitor); |
364 DOMTokenListObserver::trace(visitor); | 359 DOMTokenListObserver::trace(visitor); |
365 } | 360 } |
366 | 361 |
367 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { | 362 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { |
368 visitor->traceWrappers(m_relList); | 363 visitor->traceWrappers(m_relList); |
369 HTMLElement::traceWrappers(visitor); | 364 HTMLElement::traceWrappers(visitor); |
370 } | 365 } |
371 | 366 |
372 } // namespace blink | 367 } // namespace blink |
OLD | NEW |