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

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

Issue 2387263004: Manually remove many instances of a comma quirk arising from the reformat. (Closed)
Patch Set: Created 4 years, 2 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, 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 25 matching lines...) Expand all
36 36
37 namespace blink { 37 namespace blink {
38 38
39 XSLStyleSheet::XSLStyleSheet(XSLImportRule* parentRule, 39 XSLStyleSheet::XSLStyleSheet(XSLImportRule* parentRule,
40 const String& originalURL, 40 const String& originalURL,
41 const KURL& finalURL) 41 const KURL& finalURL)
42 : m_ownerNode(nullptr), 42 : m_ownerNode(nullptr),
43 m_originalURL(originalURL), 43 m_originalURL(originalURL),
44 m_finalURL(finalURL), 44 m_finalURL(finalURL),
45 m_isDisabled(false), 45 m_isDisabled(false),
46 m_embedded(false) 46 m_embedded(false),
47 // Child sheets get marked as processed when the libxslt engine has finall y 47 // Child sheets get marked as processed when the libxslt engine has finall y
48 // seen them. 48 // seen them.
49 ,
50 m_processed(false), 49 m_processed(false),
51 m_stylesheetDoc(0), 50 m_stylesheetDoc(0),
52 m_stylesheetDocTaken(false), 51 m_stylesheetDocTaken(false),
53 m_compilationFailed(false), 52 m_compilationFailed(false),
54 m_parentStyleSheet(parentRule ? parentRule->parentStyleSheet() : 0), 53 m_parentStyleSheet(parentRule ? parentRule->parentStyleSheet() : 0),
55 m_ownerDocument(nullptr) {} 54 m_ownerDocument(nullptr) {}
56 55
57 XSLStyleSheet::XSLStyleSheet(Node* parentNode, 56 XSLStyleSheet::XSLStyleSheet(Node* parentNode,
58 const String& originalURL, 57 const String& originalURL,
59 const KURL& finalURL, 58 const KURL& finalURL,
60 bool embedded) 59 bool embedded)
61 : m_ownerNode(parentNode), 60 : m_ownerNode(parentNode),
62 m_originalURL(originalURL), 61 m_originalURL(originalURL),
63 m_finalURL(finalURL), 62 m_finalURL(finalURL),
64 m_isDisabled(false), 63 m_isDisabled(false),
65 m_embedded(embedded), 64 m_embedded(embedded),
66 m_processed(true) // The root sheet starts off processed. 65 m_processed(true), // The root sheet starts off processed.
67 ,
68 m_stylesheetDoc(0), 66 m_stylesheetDoc(0),
69 m_stylesheetDocTaken(false), 67 m_stylesheetDocTaken(false),
70 m_compilationFailed(false), 68 m_compilationFailed(false),
71 m_parentStyleSheet(nullptr), 69 m_parentStyleSheet(nullptr),
72 m_ownerDocument(nullptr) {} 70 m_ownerDocument(nullptr) {}
73 71
74 XSLStyleSheet::XSLStyleSheet(Document* ownerDocument, 72 XSLStyleSheet::XSLStyleSheet(Document* ownerDocument,
75 Node* styleSheetRootNode, 73 Node* styleSheetRootNode,
76 const String& originalURL, 74 const String& originalURL,
77 const KURL& finalURL, 75 const KURL& finalURL,
78 bool embedded) 76 bool embedded)
79 : m_ownerNode(styleSheetRootNode), 77 : m_ownerNode(styleSheetRootNode),
80 m_originalURL(originalURL), 78 m_originalURL(originalURL),
81 m_finalURL(finalURL), 79 m_finalURL(finalURL),
82 m_isDisabled(false), 80 m_isDisabled(false),
83 m_embedded(embedded), 81 m_embedded(embedded),
84 m_processed(true) // The root sheet starts off processed. 82 m_processed(true), // The root sheet starts off processed.
85 ,
86 m_stylesheetDoc(0), 83 m_stylesheetDoc(0),
87 m_stylesheetDocTaken(false), 84 m_stylesheetDocTaken(false),
88 m_compilationFailed(false), 85 m_compilationFailed(false),
89 m_parentStyleSheet(nullptr), 86 m_parentStyleSheet(nullptr),
90 m_ownerDocument(ownerDocument) {} 87 m_ownerDocument(ownerDocument) {}
91 88
92 XSLStyleSheet::~XSLStyleSheet() { 89 XSLStyleSheet::~XSLStyleSheet() {
93 if (!m_stylesheetDocTaken) 90 if (!m_stylesheetDocTaken)
94 xmlFreeDoc(m_stylesheetDoc); 91 xmlFreeDoc(m_stylesheetDoc);
95 } 92 }
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 310
314 DEFINE_TRACE(XSLStyleSheet) { 311 DEFINE_TRACE(XSLStyleSheet) {
315 visitor->trace(m_ownerNode); 312 visitor->trace(m_ownerNode);
316 visitor->trace(m_children); 313 visitor->trace(m_children);
317 visitor->trace(m_parentStyleSheet); 314 visitor->trace(m_parentStyleSheet);
318 visitor->trace(m_ownerDocument); 315 visitor->trace(m_ownerDocument);
319 StyleSheet::trace(visitor); 316 StyleSheet::trace(visitor);
320 } 317 }
321 318
322 } // namespace blink 319 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698