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

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

Issue 143463011: [import] support document.stylesheets in imported documents. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Landing Created 6 years, 11 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
« no previous file with comments | « Source/core/html/HTMLLinkElement.h ('k') | Source/core/html/LinkImport.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 return static_cast<LinkStyle*>(m_link.get()); 167 return static_cast<LinkStyle*>(m_link.get());
168 } 168 }
169 169
170 LinkImport* HTMLLinkElement::linkImport() const 170 LinkImport* HTMLLinkElement::linkImport() const
171 { 171 {
172 if (!m_link || m_link->type() != LinkResource::Import) 172 if (!m_link || m_link->type() != LinkResource::Import)
173 return 0; 173 return 0;
174 return static_cast<LinkImport*>(m_link.get()); 174 return static_cast<LinkImport*>(m_link.get());
175 } 175 }
176 176
177 bool HTMLLinkElement::importOwnsLoader() const
178 {
179 LinkImport* import = linkImport();
180 if (!import)
181 return false;
182 return import->ownsLoader();
183 }
184
177 Document* HTMLLinkElement::import() const 185 Document* HTMLLinkElement::import() const
178 { 186 {
179 if (LinkImport* link = linkImport()) 187 if (LinkImport* link = linkImport())
180 return link->importedDocument(); 188 return link->importedDocument();
181 return 0; 189 return 0;
182 } 190 }
183 191
184 void HTMLLinkElement::process() 192 void HTMLLinkElement::process()
185 { 193 {
186 if (LinkResource* link = linkResourceToProcess()) 194 if (LinkResource* link = linkResourceToProcess())
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 void LinkStyle::ownerRemoved() 614 void LinkStyle::ownerRemoved()
607 { 615 {
608 if (m_sheet) 616 if (m_sheet)
609 clearSheet(); 617 clearSheet();
610 618
611 if (styleSheetIsLoading()) 619 if (styleSheetIsLoading())
612 removePendingSheet(RemovePendingSheetNotifyLater); 620 removePendingSheet(RemovePendingSheetNotifyLater);
613 } 621 }
614 622
615 } // namespace WebCore 623 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLLinkElement.h ('k') | Source/core/html/LinkImport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698