Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: Source/core/html/HTMLLinkElement.cpp

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 PassRefPtr<HTMLLinkElement> HTMLLinkElement::create(Document& document, bool cre atedByParser) 143 PassRefPtr<HTMLLinkElement> HTMLLinkElement::create(Document& document, bool cre atedByParser)
144 { 144 {
145 return adoptRef(new HTMLLinkElement(document, createdByParser)); 145 return adoptRef(new HTMLLinkElement(document, createdByParser));
146 } 146 }
147 147
148 HTMLLinkElement::~HTMLLinkElement() 148 HTMLLinkElement::~HTMLLinkElement()
149 { 149 {
150 m_link.clear(); 150 m_link.clear();
151 151
152 #if !ENABLE(OILPAN)
152 if (inDocument()) 153 if (inDocument())
153 document().styleEngine()->removeStyleSheetCandidateNode(this); 154 document().styleEngine()->removeStyleSheetCandidateNode(this);
155 #endif
154 156
155 linkLoadEventSender().cancelEvent(this); 157 linkLoadEventSender().cancelEvent(this);
156 } 158 }
157 159
158 void HTMLLinkElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value) 160 void HTMLLinkElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value)
159 { 161 {
160 if (name == relAttr) { 162 if (name == relAttr) {
161 m_relAttribute = LinkRelAttribute(value); 163 m_relAttribute = LinkRelAttribute(value);
162 process(); 164 process();
163 } else if (name == hrefAttr) { 165 } else if (name == hrefAttr) {
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 void LinkStyle::ownerRemoved() 686 void LinkStyle::ownerRemoved()
685 { 687 {
686 if (m_sheet) 688 if (m_sheet)
687 clearSheet(); 689 clearSheet();
688 690
689 if (styleSheetIsLoading()) 691 if (styleSheetIsLoading())
690 removePendingSheet(RemovePendingSheetNotifyLater); 692 removePendingSheet(RemovePendingSheetNotifyLater);
691 } 693 }
692 694
693 } // namespace WebCore 695 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698