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 reserv
ed. | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) | 6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) |
7 * Copyright (C) 2011 Google Inc. All rights reserved. | 7 * Copyright (C) 2011 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 document().styleEngine().addStyleSheetCandidateNode(this, m_createdByParser)
; | 275 document().styleEngine().addStyleSheetCandidateNode(this, m_createdByParser)
; |
276 | 276 |
277 process(); | 277 process(); |
278 | 278 |
279 if (m_link) | 279 if (m_link) |
280 m_link->ownerInserted(); | 280 m_link->ownerInserted(); |
281 | 281 |
282 return InsertionDone; | 282 return InsertionDone; |
283 } | 283 } |
284 | 284 |
285 void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint) | 285 void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint, Node* next) |
286 { | 286 { |
287 HTMLElement::removedFrom(insertionPoint); | 287 HTMLElement::removedFrom(insertionPoint, next); |
288 if (!insertionPoint->inDocument()) | 288 if (!insertionPoint->inDocument()) |
289 return; | 289 return; |
290 | 290 |
291 m_linkLoader.released(); | 291 m_linkLoader.released(); |
292 | 292 |
293 if (m_isInShadowTree) { | 293 if (m_isInShadowTree) { |
294 ASSERT(!linkStyle() || !linkStyle()->hasSheet()); | 294 ASSERT(!linkStyle() || !linkStyle()->hasSheet()); |
295 return; | 295 return; |
296 } | 296 } |
297 document().styleEngine().removeStyleSheetCandidateNode(this); | 297 document().styleEngine().removeStyleSheetCandidateNode(this); |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 removePendingSheet(); | 760 removePendingSheet(); |
761 } | 761 } |
762 | 762 |
763 DEFINE_TRACE(LinkStyle) | 763 DEFINE_TRACE(LinkStyle) |
764 { | 764 { |
765 visitor->trace(m_sheet); | 765 visitor->trace(m_sheet); |
766 LinkResource::trace(visitor); | 766 LinkResource::trace(visitor); |
767 } | 767 } |
768 | 768 |
769 } // namespace blink | 769 } // namespace blink |
OLD | NEW |