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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 if (!insertionPoint->inDocument()) | 263 if (!insertionPoint->inDocument()) |
264 return InsertionDone; | 264 return InsertionDone; |
265 | 265 |
266 m_isInShadowTree = isInShadowTree(); | 266 m_isInShadowTree = isInShadowTree(); |
267 if (m_isInShadowTree) | 267 if (m_isInShadowTree) |
268 return InsertionDone; | 268 return InsertionDone; |
269 | 269 |
270 document().styleEngine()->addStyleSheetCandidateNode(this, m_createdByParser
); | 270 document().styleEngine()->addStyleSheetCandidateNode(this, m_createdByParser
); |
271 | 271 |
272 process(); | 272 process(); |
| 273 |
| 274 if (m_link) |
| 275 m_link->ownerInserted(); |
| 276 |
273 return InsertionDone; | 277 return InsertionDone; |
274 } | 278 } |
275 | 279 |
276 void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint) | 280 void HTMLLinkElement::removedFrom(ContainerNode* insertionPoint) |
277 { | 281 { |
278 HTMLElement::removedFrom(insertionPoint); | 282 HTMLElement::removedFrom(insertionPoint); |
279 if (!insertionPoint->inDocument()) | 283 if (!insertionPoint->inDocument()) |
280 return; | 284 return; |
281 | 285 |
282 m_linkLoader.released(); | 286 m_linkLoader.released(); |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 removePendingSheet(); | 713 removePendingSheet(); |
710 } | 714 } |
711 | 715 |
712 void LinkStyle::trace(Visitor* visitor) | 716 void LinkStyle::trace(Visitor* visitor) |
713 { | 717 { |
714 visitor->trace(m_sheet); | 718 visitor->trace(m_sheet); |
715 LinkResource::trace(visitor); | 719 LinkResource::trace(visitor); |
716 } | 720 } |
717 | 721 |
718 } // namespace WebCore | 722 } // namespace WebCore |
OLD | NEW |