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

Unified Diff: Source/core/dom/StyleSheetCandidate.cpp

Issue 179873020: [import] The first <link rel=import> should win in the cascading order computation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Landing Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/DocumentStyleSheetCollector.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleSheetCandidate.cpp
diff --git a/Source/core/dom/StyleSheetCandidate.cpp b/Source/core/dom/StyleSheetCandidate.cpp
index 73d5eb37d45644f3b82e3bbb81d1813376a22916..8e59675b7b0478b19475df22fa6e06bdee74b612 100644
--- a/Source/core/dom/StyleSheetCandidate.cpp
+++ b/Source/core/dom/StyleSheetCandidate.cpp
@@ -58,12 +58,7 @@ bool StyleSheetCandidate::isImport() const
Document* StyleSheetCandidate::importedDocument() const
{
ASSERT(isImport());
- // The stylesheet update traversal shouldn't go into shared import
- // to prevent it from stepping into cycle.
- HTMLLinkElement& element = toHTMLLinkElement(m_node);
- if (!element.importOwnsLoader())
- return 0;
- return element.import();
+ return toHTMLLinkElement(m_node).import();
}
bool StyleSheetCandidate::isAlternate() const
« no previous file with comments | « Source/core/dom/DocumentStyleSheetCollector.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698