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

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

Issue 16936002: [HTML Imports] Make HTMLLinkElement.import a Document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 return static_cast<LinkStyle*>(m_link.get()); 166 return static_cast<LinkStyle*>(m_link.get());
167 } 167 }
168 168
169 LinkImport* HTMLLinkElement::linkImport() const 169 LinkImport* HTMLLinkElement::linkImport() const
170 { 170 {
171 if (!m_link || m_link->type() != LinkResource::Import) 171 if (!m_link || m_link->type() != LinkResource::Import)
172 return 0; 172 return 0;
173 return static_cast<LinkImport*>(m_link.get()); 173 return static_cast<LinkImport*>(m_link.get());
174 } 174 }
175 175
176 DocumentFragment* HTMLLinkElement::import() const 176 Document* HTMLLinkElement::import() const
177 { 177 {
178 if (LinkImport* link = linkImport()) 178 if (LinkImport* link = linkImport())
179 return linkImport()->importedFragment(); 179 return linkImport()->importedDocument();
180 return 0; 180 return 0;
181 } 181 }
182 182
183 void HTMLLinkElement::process() 183 void HTMLLinkElement::process()
184 { 184 {
185 if (LinkResource* link = linkResourceToProcess()) 185 if (LinkResource* link = linkResourceToProcess())
186 link->process(); 186 link->process();
187 } 187 }
188 188
189 Node::InsertionNotificationRequest HTMLLinkElement::insertedInto(ContainerNode* insertionPoint) 189 Node::InsertionNotificationRequest HTMLLinkElement::insertedInto(ContainerNode* insertionPoint)
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 void LinkStyle::ownerRemoved() 611 void LinkStyle::ownerRemoved()
612 { 612 {
613 if (m_sheet) 613 if (m_sheet)
614 clearSheet(); 614 clearSheet();
615 615
616 if (styleSheetIsLoading()) 616 if (styleSheetIsLoading())
617 removePendingSheet(RemovePendingSheetNotifyLater); 617 removePendingSheet(RemovePendingSheetNotifyLater);
618 } 618 }
619 619
620 } // namespace WebCore 620 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698