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

Side by Side Diff: Source/core/css/CSSRuleList.h

Issue 989173003: Fix template angle bracket syntax in css (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/css/CSSPropertySourceData.h ('k') | Source/core/css/CSSSegmentedFontFace.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 * (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, 2012 Apple Computer, Inc. 4 * Copyright (C) 2002, 2006, 2012 Apple Computer, Inc.
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 static PassRefPtrWillBeRawPtr<StaticCSSRuleList> create() 61 static PassRefPtrWillBeRawPtr<StaticCSSRuleList> create()
62 { 62 {
63 return adoptRefWillBeNoop(new StaticCSSRuleList()); 63 return adoptRefWillBeNoop(new StaticCSSRuleList());
64 } 64 }
65 65
66 #if !ENABLE(OILPAN) 66 #if !ENABLE(OILPAN)
67 virtual void ref() override { ++m_refCount; } 67 virtual void ref() override { ++m_refCount; }
68 virtual void deref() override; 68 virtual void deref() override;
69 #endif 69 #endif
70 70
71 WillBeHeapVector<RefPtrWillBeMember<CSSRule> >& rules() { return m_rules; } 71 WillBeHeapVector<RefPtrWillBeMember<CSSRule>>& rules() { return m_rules; }
72 72
73 virtual CSSStyleSheet* styleSheet() const override { return 0; } 73 virtual CSSStyleSheet* styleSheet() const override { return 0; }
74 74
75 DECLARE_VIRTUAL_TRACE(); 75 DECLARE_VIRTUAL_TRACE();
76 76
77 private: 77 private:
78 StaticCSSRuleList(); 78 StaticCSSRuleList();
79 virtual ~StaticCSSRuleList(); 79 virtual ~StaticCSSRuleList();
80 80
81 virtual unsigned length() const override { return m_rules.size(); } 81 virtual unsigned length() const override { return m_rules.size(); }
82 virtual CSSRule* item(unsigned index) const override { return index < m_rule s.size() ? m_rules[index].get() : 0; } 82 virtual CSSRule* item(unsigned index) const override { return index < m_rule s.size() ? m_rules[index].get() : 0; }
83 83
84 WillBeHeapVector<RefPtrWillBeMember<CSSRule> > m_rules; 84 WillBeHeapVector<RefPtrWillBeMember<CSSRule>> m_rules;
85 #if !ENABLE(OILPAN) 85 #if !ENABLE(OILPAN)
86 unsigned m_refCount; 86 unsigned m_refCount;
87 #endif 87 #endif
88 }; 88 };
89 89
90 template <class Rule> 90 template <class Rule>
91 class LiveCSSRuleList final : public CSSRuleList { 91 class LiveCSSRuleList final : public CSSRuleList {
92 public: 92 public:
93 static PassOwnPtrWillBeRawPtr<LiveCSSRuleList> create(Rule* rule) 93 static PassOwnPtrWillBeRawPtr<LiveCSSRuleList> create(Rule* rule)
94 { 94 {
(...skipping 17 matching lines...) Expand all
112 virtual unsigned length() const override { return m_rule->length(); } 112 virtual unsigned length() const override { return m_rule->length(); }
113 virtual CSSRule* item(unsigned index) const override { return m_rule->item(i ndex); } 113 virtual CSSRule* item(unsigned index) const override { return m_rule->item(i ndex); }
114 virtual CSSStyleSheet* styleSheet() const override { return m_rule->parentSt yleSheet(); } 114 virtual CSSStyleSheet* styleSheet() const override { return m_rule->parentSt yleSheet(); }
115 115
116 RawPtrWillBeMember<Rule> m_rule; 116 RawPtrWillBeMember<Rule> m_rule;
117 }; 117 };
118 118
119 } // namespace blink 119 } // namespace blink
120 120
121 #endif // CSSRuleList_h 121 #endif // CSSRuleList_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSPropertySourceData.h ('k') | Source/core/css/CSSSegmentedFontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698