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

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

Issue 169303003: CSP 1.1: Revert CSSOM changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 6 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
« no previous file with comments | « Source/core/css/CSSGroupingRule.cpp ('k') | Source/core/css/CSSKeyframesRule.cpp » ('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 18 matching lines...) Expand all
29 #include "core/css/CSSRule.h" 29 #include "core/css/CSSRule.h"
30 #include "core/css/StyleRule.h" 30 #include "core/css/StyleRule.h"
31 #include "wtf/Forward.h" 31 #include "wtf/Forward.h"
32 #include "wtf/text/AtomicString.h" 32 #include "wtf/text/AtomicString.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 class CSSRuleList; 36 class CSSRuleList;
37 class StyleKeyframe; 37 class StyleKeyframe;
38 class CSSKeyframeRule; 38 class CSSKeyframeRule;
39 class ExceptionState;
40 39
41 class StyleRuleKeyframes FINAL : public StyleRuleBase { 40 class StyleRuleKeyframes FINAL : public StyleRuleBase {
42 public: 41 public:
43 static PassRefPtr<StyleRuleKeyframes> create() { return adoptRef(new StyleRu leKeyframes()); } 42 static PassRefPtr<StyleRuleKeyframes> create() { return adoptRef(new StyleRu leKeyframes()); }
44 43
45 ~StyleRuleKeyframes(); 44 ~StyleRuleKeyframes();
46 45
47 const Vector<RefPtr<StyleKeyframe> >& keyframes() const { return m_keyframes ; } 46 const Vector<RefPtr<StyleKeyframe> >& keyframes() const { return m_keyframes ; }
48 47
49 void parserAppendKeyframe(PassRefPtr<StyleKeyframe>); 48 void parserAppendKeyframe(PassRefPtr<StyleKeyframe>);
(...skipping 29 matching lines...) Expand all
79 78
80 virtual CSSRule::Type type() const OVERRIDE { return KEYFRAMES_RULE; } 79 virtual CSSRule::Type type() const OVERRIDE { return KEYFRAMES_RULE; }
81 virtual String cssText() const OVERRIDE; 80 virtual String cssText() const OVERRIDE;
82 virtual void reattach(StyleRuleBase*) OVERRIDE; 81 virtual void reattach(StyleRuleBase*) OVERRIDE;
83 82
84 String name() const { return m_keyframesRule->name(); } 83 String name() const { return m_keyframesRule->name(); }
85 void setName(const String&); 84 void setName(const String&);
86 85
87 CSSRuleList* cssRules(); 86 CSSRuleList* cssRules();
88 87
89 void insertRule(const String& rule, ExceptionState&); 88 void insertRule(const String& rule);
90 void deleteRule(const String& key); 89 void deleteRule(const String& key);
91 CSSKeyframeRule* findRule(const String& key); 90 CSSKeyframeRule* findRule(const String& key);
92 91
93 // For IndexedGetter and CSSRuleList. 92 // For IndexedGetter and CSSRuleList.
94 unsigned length() const; 93 unsigned length() const;
95 CSSKeyframeRule* item(unsigned index) const; 94 CSSKeyframeRule* item(unsigned index) const;
96 95
97 bool isVendorPrefixed() const { return m_isPrefixed; } 96 bool isVendorPrefixed() const { return m_isPrefixed; }
98 void setVendorPrefixed(bool isPrefixed) { m_isPrefixed = isPrefixed; } 97 void setVendorPrefixed(bool isPrefixed) { m_isPrefixed = isPrefixed; }
99 98
100 private: 99 private:
101 CSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent); 100 CSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent);
102 101
103 RefPtr<StyleRuleKeyframes> m_keyframesRule; 102 RefPtr<StyleRuleKeyframes> m_keyframesRule;
104 mutable Vector<RefPtr<CSSKeyframeRule> > m_childRuleCSSOMWrappers; 103 mutable Vector<RefPtr<CSSKeyframeRule> > m_childRuleCSSOMWrappers;
105 mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper; 104 mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper;
106 bool m_isPrefixed; 105 bool m_isPrefixed;
107 }; 106 };
108 107
109 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframesRule, KEYFRAMES_RULE); 108 DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframesRule, KEYFRAMES_RULE);
110 109
111 } // namespace WebCore 110 } // namespace WebCore
112 111
113 #endif // CSSKeyframesRule_h 112 #endif // CSSKeyframesRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSGroupingRule.cpp ('k') | Source/core/css/CSSKeyframesRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698