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

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

Issue 22893004: Add explicit keyword to constructors that take one argument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
« no previous file with comments | « Source/core/css/CSSInitialValue.h ('k') | Source/core/css/CSSLineBoxContainValue.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 * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 String name() const { return m_name; } 52 String name() const { return m_name; }
53 void setName(const String& name) { m_name = AtomicString(name); } 53 void setName(const String& name) { m_name = AtomicString(name); }
54 54
55 int findKeyframeIndex(const String& key) const; 55 int findKeyframeIndex(const String& key) const;
56 56
57 PassRefPtr<StyleRuleKeyframes> copy() const { return adoptRef(new StyleRuleK eyframes(*this)); } 57 PassRefPtr<StyleRuleKeyframes> copy() const { return adoptRef(new StyleRuleK eyframes(*this)); }
58 58
59 private: 59 private:
60 StyleRuleKeyframes(); 60 StyleRuleKeyframes();
61 StyleRuleKeyframes(const StyleRuleKeyframes&); 61 explicit StyleRuleKeyframes(const StyleRuleKeyframes&);
62 62
63 Vector<RefPtr<StyleKeyframe> > m_keyframes; 63 Vector<RefPtr<StyleKeyframe> > m_keyframes;
64 AtomicString m_name; 64 AtomicString m_name;
65 }; 65 };
66 66
67 class CSSKeyframesRule : public CSSRule { 67 class CSSKeyframesRule : public CSSRule {
68 public: 68 public:
69 static PassRefPtr<CSSKeyframesRule> create(StyleRuleKeyframes* rule, CSSStyl eSheet* sheet) { return adoptRef(new CSSKeyframesRule(rule, sheet)); } 69 static PassRefPtr<CSSKeyframesRule> create(StyleRuleKeyframes* rule, CSSStyl eSheet* sheet) { return adoptRef(new CSSKeyframesRule(rule, sheet)); }
70 70
71 virtual ~CSSKeyframesRule(); 71 virtual ~CSSKeyframesRule();
(...skipping 19 matching lines...) Expand all
91 CSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent); 91 CSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent);
92 92
93 RefPtr<StyleRuleKeyframes> m_keyframesRule; 93 RefPtr<StyleRuleKeyframes> m_keyframesRule;
94 mutable Vector<RefPtr<CSSKeyframeRule> > m_childRuleCSSOMWrappers; 94 mutable Vector<RefPtr<CSSKeyframeRule> > m_childRuleCSSOMWrappers;
95 mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper; 95 mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper;
96 }; 96 };
97 97
98 } // namespace WebCore 98 } // namespace WebCore
99 99
100 #endif // CSSKeyframesRule_h 100 #endif // CSSKeyframesRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSInitialValue.h ('k') | Source/core/css/CSSLineBoxContainValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698