| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 , m_linkLoader(this) | 136 , m_linkLoader(this) |
| 137 , m_sizes(DOMSettableTokenList::create()) | 137 , m_sizes(DOMSettableTokenList::create()) |
| 138 , m_createdByParser(createdByParser) | 138 , m_createdByParser(createdByParser) |
| 139 , m_isInShadowTree(false) | 139 , m_isInShadowTree(false) |
| 140 { | 140 { |
| 141 ScriptWrappable::init(this); | 141 ScriptWrappable::init(this); |
| 142 } | 142 } |
| 143 | 143 |
| 144 PassRefPtrWillBeRawPtr<HTMLLinkElement> HTMLLinkElement::create(Document& docume
nt, bool createdByParser) | 144 PassRefPtrWillBeRawPtr<HTMLLinkElement> HTMLLinkElement::create(Document& docume
nt, bool createdByParser) |
| 145 { | 145 { |
| 146 return adoptRefWillBeRefCountedGarbageCollected(new HTMLLinkElement(document
, createdByParser)); | 146 return adoptRefWillBeNoop(new HTMLLinkElement(document, createdByParser)); |
| 147 } | 147 } |
| 148 | 148 |
| 149 HTMLLinkElement::~HTMLLinkElement() | 149 HTMLLinkElement::~HTMLLinkElement() |
| 150 { | 150 { |
| 151 #if !ENABLE(OILPAN) | 151 #if !ENABLE(OILPAN) |
| 152 m_link.clear(); | 152 m_link.clear(); |
| 153 | 153 |
| 154 if (inDocument()) | 154 if (inDocument()) |
| 155 document().styleEngine()->removeStyleSheetCandidateNode(this); | 155 document().styleEngine()->removeStyleSheetCandidateNode(this); |
| 156 #endif | 156 #endif |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 removePendingSheet(); | 709 removePendingSheet(); |
| 710 } | 710 } |
| 711 | 711 |
| 712 void LinkStyle::trace(Visitor* visitor) | 712 void LinkStyle::trace(Visitor* visitor) |
| 713 { | 713 { |
| 714 visitor->trace(m_sheet); | 714 visitor->trace(m_sheet); |
| 715 LinkResource::trace(visitor); | 715 LinkResource::trace(visitor); |
| 716 } | 716 } |
| 717 | 717 |
| 718 } // namespace WebCore | 718 } // namespace WebCore |
| OLD | NEW |