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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 HTMLElement::removedFrom(insertionPoint); | 209 HTMLElement::removedFrom(insertionPoint); |
210 if (!insertionPoint->isConnected()) | 210 if (!insertionPoint->isConnected()) |
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 | 221 |
221 StyleSheet* removedSheet = sheet(); | 222 StyleSheet* removedSheet = sheet(); |
222 | 223 |
223 if (m_link) | 224 if (m_link) |
224 m_link->ownerRemoved(); | 225 m_link->ownerRemoved(); |
225 | 226 |
226 document().styleEngine().setNeedsActiveStyleUpdate(removedSheet, | 227 document().styleEngine().setNeedsActiveStyleUpdate(removedSheet, |
227 FullStyleUpdate); | 228 AnalyzedStyleUpdate); |
228 } | 229 } |
229 | 230 |
230 void HTMLLinkElement::finishParsingChildren() { | 231 void HTMLLinkElement::finishParsingChildren() { |
231 m_createdByParser = false; | 232 m_createdByParser = false; |
232 HTMLElement::finishParsingChildren(); | 233 HTMLElement::finishParsingChildren(); |
233 } | 234 } |
234 | 235 |
235 bool HTMLLinkElement::styleSheetIsLoading() const { | 236 bool HTMLLinkElement::styleSheetIsLoading() const { |
236 return linkStyle() && linkStyle()->styleSheetIsLoading(); | 237 return linkStyle() && linkStyle()->styleSheetIsLoading(); |
237 } | 238 } |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 LinkLoaderClient::trace(visitor); | 361 LinkLoaderClient::trace(visitor); |
361 DOMTokenListObserver::trace(visitor); | 362 DOMTokenListObserver::trace(visitor); |
362 } | 363 } |
363 | 364 |
364 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { | 365 DEFINE_TRACE_WRAPPERS(HTMLLinkElement) { |
365 visitor->traceWrappers(m_relList); | 366 visitor->traceWrappers(m_relList); |
366 HTMLElement::traceWrappers(visitor); | 367 HTMLElement::traceWrappers(visitor); |
367 } | 368 } |
368 | 369 |
369 } // namespace blink | 370 } // namespace blink |
OLD | NEW |