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

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

Issue 241113002: Remove some dead code from html/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 return static_cast<LinkStyle*>(m_link.get()); 224 return static_cast<LinkStyle*>(m_link.get());
225 } 225 }
226 226
227 LinkImport* HTMLLinkElement::linkImport() const 227 LinkImport* HTMLLinkElement::linkImport() const
228 { 228 {
229 if (!m_link || m_link->type() != LinkResource::Import) 229 if (!m_link || m_link->type() != LinkResource::Import)
230 return 0; 230 return 0;
231 return static_cast<LinkImport*>(m_link.get()); 231 return static_cast<LinkImport*>(m_link.get());
232 } 232 }
233 233
234 bool HTMLLinkElement::importOwnsLoader() const
235 {
236 LinkImport* import = linkImport();
237 if (!import)
238 return false;
239 return import->ownsLoader();
240 }
241
242 Document* HTMLLinkElement::import() const 234 Document* HTMLLinkElement::import() const
243 { 235 {
244 if (LinkImport* link = linkImport()) 236 if (LinkImport* link = linkImport())
245 return link->importedDocument(); 237 return link->importedDocument();
246 return 0; 238 return 0;
247 } 239 }
248 240
249 void HTMLLinkElement::process() 241 void HTMLLinkElement::process()
250 { 242 {
251 if (LinkResource* link = linkResourceToProcess()) 243 if (LinkResource* link = linkResourceToProcess())
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 void LinkStyle::ownerRemoved() 684 void LinkStyle::ownerRemoved()
693 { 685 {
694 if (m_sheet) 686 if (m_sheet)
695 clearSheet(); 687 clearSheet();
696 688
697 if (styleSheetIsLoading()) 689 if (styleSheetIsLoading())
698 removePendingSheet(RemovePendingSheetNotifyLater); 690 removePendingSheet(RemovePendingSheetNotifyLater);
699 } 691 }
700 692
701 } // namespace WebCore 693 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698