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

Side by Side Diff: Source/core/xml/XSLStyleSheet.h

Issue 133983002: Update XML classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/XSLImportRule.h ('k') | Source/core/xml/parser/XMLDocumentParser.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, 2006, 2008, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 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 18 matching lines...) Expand all
29 #include "wtf/PassRefPtr.h" 29 #include "wtf/PassRefPtr.h"
30 30
31 #include <libxml/tree.h> 31 #include <libxml/tree.h>
32 #include <libxslt/transform.h> 32 #include <libxslt/transform.h>
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 class ResourceFetcher; 36 class ResourceFetcher;
37 class XSLImportRule; 37 class XSLImportRule;
38 38
39 class XSLStyleSheet : public StyleSheet { 39 class XSLStyleSheet FINAL : public StyleSheet {
40 public: 40 public:
41 static PassRefPtr<XSLStyleSheet> create(XSLImportRule* parentImport, const S tring& originalURL, const KURL& finalURL) 41 static PassRefPtr<XSLStyleSheet> create(XSLImportRule* parentImport, const S tring& originalURL, const KURL& finalURL)
42 { 42 {
43 ASSERT(RuntimeEnabledFeatures::xsltEnabled()); 43 ASSERT(RuntimeEnabledFeatures::xsltEnabled());
44 return adoptRef(new XSLStyleSheet(parentImport, originalURL, finalURL)); 44 return adoptRef(new XSLStyleSheet(parentImport, originalURL, finalURL));
45 } 45 }
46 static PassRefPtr<XSLStyleSheet> create(ProcessingInstruction* parentNode, c onst String& originalURL, const KURL& finalURL) 46 static PassRefPtr<XSLStyleSheet> create(ProcessingInstruction* parentNode, c onst String& originalURL, const KURL& finalURL)
47 { 47 {
48 ASSERT(RuntimeEnabledFeatures::xsltEnabled()); 48 ASSERT(RuntimeEnabledFeatures::xsltEnabled());
49 return adoptRef(new XSLStyleSheet(parentNode, originalURL, finalURL, fal se)); 49 return adoptRef(new XSLStyleSheet(parentNode, originalURL, finalURL, fal se));
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool m_compilationFailed; 118 bool m_compilationFailed;
119 119
120 XSLStyleSheet* m_parentStyleSheet; 120 XSLStyleSheet* m_parentStyleSheet;
121 }; 121 };
122 122
123 DEFINE_TYPE_CASTS(XSLStyleSheet, StyleSheet, sheet, !sheet->isCSSStyleSheet(), ! sheet.isCSSStyleSheet()); 123 DEFINE_TYPE_CASTS(XSLStyleSheet, StyleSheet, sheet, !sheet->isCSSStyleSheet(), ! sheet.isCSSStyleSheet());
124 124
125 } // namespace WebCore 125 } // namespace WebCore
126 126
127 #endif // XSLStyleSheet_h 127 #endif // XSLStyleSheet_h
OLDNEW
« no previous file with comments | « Source/core/xml/XSLImportRule.h ('k') | Source/core/xml/parser/XMLDocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698