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

Side by Side Diff: third_party/WebKit/Source/core/css/StyleRule.h

Issue 2230813003: Removed unused destroy() methods in CSSValue and StyleRule (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2006, 2008, 2012, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2008, 2012, 2013 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // causes C2248 error : 'blink::StyleRuleBase::~StyleRuleBase' : cannot 78 // causes C2248 error : 'blink::StyleRuleBase::~StyleRuleBase' : cannot
79 // access protected member declared in class 'blink::StyleRuleBase' when 79 // access protected member declared in class 'blink::StyleRuleBase' when
80 // compiling 'source\wtf\refcounted.h' by using msvc. 80 // compiling 'source\wtf\refcounted.h' by using msvc.
81 ~StyleRuleBase() { } 81 ~StyleRuleBase() { }
82 82
83 protected: 83 protected:
84 StyleRuleBase(RuleType type) : m_type(type) { } 84 StyleRuleBase(RuleType type) : m_type(type) { }
85 StyleRuleBase(const StyleRuleBase& o) : m_type(o.m_type) { } 85 StyleRuleBase(const StyleRuleBase& o) : m_type(o.m_type) { }
86 86
87 private: 87 private:
88 void destroy();
89
90 CSSRule* createCSSOMWrapper(CSSStyleSheet* parentSheet, CSSRule* parentRule) const; 88 CSSRule* createCSSOMWrapper(CSSStyleSheet* parentSheet, CSSRule* parentRule) const;
91 89
92 unsigned m_type : 5; 90 unsigned m_type : 5;
93 }; 91 };
94 92
95 class CORE_EXPORT StyleRule : public StyleRuleBase { 93 class CORE_EXPORT StyleRule : public StyleRuleBase {
96 public: 94 public:
97 // Adopts the selector list 95 // Adopts the selector list
98 static StyleRule* create(CSSSelectorList selectorList, StylePropertySet* pro perties) 96 static StyleRule* create(CSSSelectorList selectorList, StylePropertySet* pro perties)
99 { 97 {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace); 270 DEFINE_STYLE_RULE_TYPE_CASTS(FontFace);
273 DEFINE_STYLE_RULE_TYPE_CASTS(Page); 271 DEFINE_STYLE_RULE_TYPE_CASTS(Page);
274 DEFINE_STYLE_RULE_TYPE_CASTS(Media); 272 DEFINE_STYLE_RULE_TYPE_CASTS(Media);
275 DEFINE_STYLE_RULE_TYPE_CASTS(Supports); 273 DEFINE_STYLE_RULE_TYPE_CASTS(Supports);
276 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport); 274 DEFINE_STYLE_RULE_TYPE_CASTS(Viewport);
277 DEFINE_STYLE_RULE_TYPE_CASTS(Charset); 275 DEFINE_STYLE_RULE_TYPE_CASTS(Charset);
278 276
279 } // namespace blink 277 } // namespace blink
280 278
281 #endif // StyleRule_h 279 #endif // StyleRule_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValue.cpp ('k') | third_party/WebKit/Source/core/css/StyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698