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

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

Issue 698923002: Enable Oilpan for core/xml/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Non-Oilpan fixes Created 6 years, 1 month 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/XSLStyleSheet.h ('k') | Source/core/xml/XSLTProcessor.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 * 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, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2008, 2012 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 loadChildSheet(String::fromUTF8((const char*)uriRef)); 228 loadChildSheet(String::fromUTF8((const char*)uriRef));
229 xmlFree(uriRef); 229 xmlFree(uriRef);
230 } 230 }
231 curr = curr->next; 231 curr = curr->next;
232 } 232 }
233 } 233 }
234 } 234 }
235 235
236 void XSLStyleSheet::loadChildSheet(const String& href) 236 void XSLStyleSheet::loadChildSheet(const String& href)
237 { 237 {
238 OwnPtrWillBeRawPtr<XSLImportRule> childRule = XSLImportRule::create(this, hr ef); 238 XSLImportRule* childRule = XSLImportRule::create(this, href);
239 XSLImportRule* c = childRule.get(); 239 m_children.append(childRule);
240 m_children.append(childRule.release()); 240 childRule->loadSheet();
241 c->loadSheet();
242 } 241 }
243 242
244 xsltStylesheetPtr XSLStyleSheet::compileStyleSheet() 243 xsltStylesheetPtr XSLStyleSheet::compileStyleSheet()
245 { 244 {
246 // FIXME: Hook up error reporting for the stylesheet compilation process. 245 // FIXME: Hook up error reporting for the stylesheet compilation process.
247 if (m_embedded) 246 if (m_embedded)
248 return xsltLoadStylesheetPI(document()); 247 return xsltLoadStylesheetPI(document());
249 248
250 // Certain libxslt versions are corrupting the xmlDoc on compilation 249 // Certain libxslt versions are corrupting the xmlDoc on compilation
251 // failures - hence attempting to recompile after a failure is unsafe. 250 // failures - hence attempting to recompile after a failure is unsafe.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 void XSLStyleSheet::trace(Visitor* visitor) 326 void XSLStyleSheet::trace(Visitor* visitor)
328 { 327 {
329 visitor->trace(m_ownerNode); 328 visitor->trace(m_ownerNode);
330 visitor->trace(m_children); 329 visitor->trace(m_children);
331 visitor->trace(m_parentStyleSheet); 330 visitor->trace(m_parentStyleSheet);
332 visitor->trace(m_ownerDocument); 331 visitor->trace(m_ownerDocument);
333 StyleSheet::trace(visitor); 332 StyleSheet::trace(visitor);
334 } 333 }
335 334
336 } // namespace blink 335 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/xml/XSLStyleSheet.h ('k') | Source/core/xml/XSLTProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698