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

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

Issue 1161323007: Use nullptr instead of 0 in xml and xmlhttprequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comment & modified in other files which assigned "0" to ptr. Created 5 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
« no previous file with comments | « Source/core/xml/XPathResult.cpp ('k') | Source/core/xml/XSLStyleSheetLibxslt.cpp » ('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 * 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 parent->checkLoaded(); 65 parent->checkLoaded();
66 } 66 }
67 67
68 bool XSLImportRule::isLoading() 68 bool XSLImportRule::isLoading()
69 { 69 {
70 return m_loading || (m_styleSheet && m_styleSheet->isLoading()); 70 return m_loading || (m_styleSheet && m_styleSheet->isLoading());
71 } 71 }
72 72
73 void XSLImportRule::loadSheet() 73 void XSLImportRule::loadSheet()
74 { 74 {
75 Document* ownerDocument = 0; 75 Document* ownerDocument = nullptr;
76 XSLStyleSheet* rootSheet = parentStyleSheet(); 76 XSLStyleSheet* rootSheet = parentStyleSheet();
77 77
78 if (rootSheet) { 78 if (rootSheet) {
79 while (XSLStyleSheet* parentSheet = rootSheet->parentStyleSheet()) 79 while (XSLStyleSheet* parentSheet = rootSheet->parentStyleSheet())
80 rootSheet = parentSheet; 80 rootSheet = parentSheet;
81 } 81 }
82 82
83 if (rootSheet) 83 if (rootSheet)
84 ownerDocument = rootSheet->ownerDocument(); 84 ownerDocument = rootSheet->ownerDocument();
85 85
(...skipping 23 matching lines...) Expand all
109 setXSLStyleSheet(absHref, resource->response().url(), UTF8Encoding().dec ode(data->data(), data->size())); 109 setXSLStyleSheet(absHref, resource->response().url(), UTF8Encoding().dec ode(data->data(), data->size()));
110 } 110 }
111 111
112 DEFINE_TRACE(XSLImportRule) 112 DEFINE_TRACE(XSLImportRule)
113 { 113 {
114 visitor->trace(m_parentStyleSheet); 114 visitor->trace(m_parentStyleSheet);
115 visitor->trace(m_styleSheet); 115 visitor->trace(m_styleSheet);
116 } 116 }
117 117
118 } // namespace blink 118 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/xml/XPathResult.cpp ('k') | Source/core/xml/XSLStyleSheetLibxslt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698