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

Side by Side Diff: third_party/WebKit/Source/core/xml/XSLImportRule.cpp

Issue 2274573004: Replace ASSERT*() with DCHECK*() in core/xml/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * This file is part of the XSL implementation. 2 * This file is part of the XSL implementation.
3 * 3 *
4 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 return; 93 return;
94 } 94 }
95 95
96 ResourceLoaderOptions fetchOptions(ResourceFetcher::defaultResourceOptions() ); 96 ResourceLoaderOptions fetchOptions(ResourceFetcher::defaultResourceOptions() );
97 FetchRequest request(ResourceRequest(ownerDocument->completeURL(absHref)), F etchInitiatorTypeNames::xml, fetchOptions); 97 FetchRequest request(ResourceRequest(ownerDocument->completeURL(absHref)), F etchInitiatorTypeNames::xml, fetchOptions);
98 request.setOriginRestriction(FetchRequest::RestrictToSameOrigin); 98 request.setOriginRestriction(FetchRequest::RestrictToSameOrigin);
99 XSLStyleSheetResource* resource = XSLStyleSheetResource::fetchSynchronously( request, ownerDocument->fetcher()); 99 XSLStyleSheetResource* resource = XSLStyleSheetResource::fetchSynchronously( request, ownerDocument->fetcher());
100 if (!resource || !resource->sheet()) 100 if (!resource || !resource->sheet())
101 return; 101 return;
102 102
103 ASSERT(!m_styleSheet); 103 DCHECK(!m_styleSheet);
104 setXSLStyleSheet(absHref, resource->response().url(), resource->sheet()); 104 setXSLStyleSheet(absHref, resource->response().url(), resource->sheet());
105 } 105 }
106 106
107 DEFINE_TRACE(XSLImportRule) 107 DEFINE_TRACE(XSLImportRule)
108 { 108 {
109 visitor->trace(m_parentStyleSheet); 109 visitor->trace(m_parentStyleSheet);
110 visitor->trace(m_styleSheet); 110 visitor->trace(m_styleSheet);
111 } 111 }
112 112
113 } // namespace blink 113 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/xml/XSLImportRule.h ('k') | third_party/WebKit/Source/core/xml/XSLStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698