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

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

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 10 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, 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 void clearDocuments(); 91 void clearDocuments();
92 92
93 void markAsProcessed(); 93 void markAsProcessed();
94 bool processed() const { return m_processed; } 94 bool processed() const { return m_processed; }
95 95
96 String type() const override { return "text/xml"; } 96 String type() const override { return "text/xml"; }
97 bool disabled() const override { return m_isDisabled; } 97 bool disabled() const override { return m_isDisabled; }
98 void setDisabled(bool b) override { m_isDisabled = b; } 98 void setDisabled(bool b) override { m_isDisabled = b; }
99 Node* ownerNode() const override { return m_ownerNode; } 99 Node* ownerNode() const override { return m_ownerNode; }
100 String href() const override { return m_originalURL; } 100 String href() const override { return m_originalURL; }
101 String title() const override { return emptyString(); } 101 String title() const override { return emptyString; }
102 102
103 void clearOwnerNode() override { m_ownerNode = nullptr; } 103 void clearOwnerNode() override { m_ownerNode = nullptr; }
104 KURL baseURL() const override { return m_finalURL; } 104 KURL baseURL() const override { return m_finalURL; }
105 bool isLoading() const override; 105 bool isLoading() const override;
106 106
107 DECLARE_VIRTUAL_TRACE(); 107 DECLARE_VIRTUAL_TRACE();
108 108
109 private: 109 private:
110 XSLStyleSheet(Node* parentNode, 110 XSLStyleSheet(Node* parentNode,
111 const String& originalURL, 111 const String& originalURL,
(...skipping 28 matching lines...) Expand all
140 140
141 DEFINE_TYPE_CASTS(XSLStyleSheet, 141 DEFINE_TYPE_CASTS(XSLStyleSheet,
142 StyleSheet, 142 StyleSheet,
143 sheet, 143 sheet,
144 !sheet->isCSSStyleSheet(), 144 !sheet->isCSSStyleSheet(),
145 !sheet.isCSSStyleSheet()); 145 !sheet.isCSSStyleSheet());
146 146
147 } // namespace blink 147 } // namespace blink
148 148
149 #endif // XSLStyleSheet_h 149 #endif // XSLStyleSheet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698