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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSKeyframesRule.cpp

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 * 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 , m_name(o.m_name) 46 , m_name(o.m_name)
47 , m_version(o.m_version) 47 , m_version(o.m_version)
48 , m_isPrefixed(o.m_isPrefixed) 48 , m_isPrefixed(o.m_isPrefixed)
49 { 49 {
50 } 50 }
51 51
52 StyleRuleKeyframes::~StyleRuleKeyframes() 52 StyleRuleKeyframes::~StyleRuleKeyframes()
53 { 53 {
54 } 54 }
55 55
56 void StyleRuleKeyframes::parserAppendKeyframe(RawPtr<StyleRuleKeyframe> keyframe ) 56 void StyleRuleKeyframes::parserAppendKeyframe(StyleRuleKeyframe* keyframe)
57 { 57 {
58 if (!keyframe) 58 if (!keyframe)
59 return; 59 return;
60 m_keyframes.append(keyframe); 60 m_keyframes.append(keyframe);
61 } 61 }
62 62
63 void StyleRuleKeyframes::wrapperAppendKeyframe(RawPtr<StyleRuleKeyframe> keyfram e) 63 void StyleRuleKeyframes::wrapperAppendKeyframe(StyleRuleKeyframe* keyframe)
64 { 64 {
65 m_keyframes.append(keyframe); 65 m_keyframes.append(keyframe);
66 styleChanged(); 66 styleChanged();
67 } 67 }
68 68
69 void StyleRuleKeyframes::wrapperRemoveKeyframe(unsigned index) 69 void StyleRuleKeyframes::wrapperRemoveKeyframe(unsigned index)
70 { 70 {
71 m_keyframes.remove(index); 71 m_keyframes.remove(index);
72 styleChanged(); 72 styleChanged();
73 } 73 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 m_keyframesRule->setName(name); 116 m_keyframesRule->setName(name);
117 } 117 }
118 118
119 void CSSKeyframesRule::appendRule(const String& ruleText) 119 void CSSKeyframesRule::appendRule(const String& ruleText)
120 { 120 {
121 ASSERT(m_childRuleCSSOMWrappers.size() == m_keyframesRule->keyframes().size( )); 121 ASSERT(m_childRuleCSSOMWrappers.size() == m_keyframesRule->keyframes().size( ));
122 122
123 CSSStyleSheet* styleSheet = parentStyleSheet(); 123 CSSStyleSheet* styleSheet = parentStyleSheet();
124 CSSParserContext context(parserContext(), UseCounter::getFrom(styleSheet)); 124 CSSParserContext context(parserContext(), UseCounter::getFrom(styleSheet));
125 RawPtr<StyleRuleKeyframe> keyframe = CSSParser::parseKeyframeRule(context, r uleText); 125 StyleRuleKeyframe* keyframe = CSSParser::parseKeyframeRule(context, ruleText );
126 if (!keyframe) 126 if (!keyframe)
127 return; 127 return;
128 128
129 CSSStyleSheet::RuleMutationScope mutationScope(this); 129 CSSStyleSheet::RuleMutationScope mutationScope(this);
130 130
131 m_keyframesRule->wrapperAppendKeyframe(keyframe); 131 m_keyframesRule->wrapperAppendKeyframe(keyframe);
132 132
133 m_childRuleCSSOMWrappers.grow(length()); 133 m_childRuleCSSOMWrappers.grow(length());
134 } 134 }
135 135
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 DEFINE_TRACE(CSSKeyframesRule) 217 DEFINE_TRACE(CSSKeyframesRule)
218 { 218 {
219 CSSRule::trace(visitor); 219 CSSRule::trace(visitor);
220 visitor->trace(m_childRuleCSSOMWrappers); 220 visitor->trace(m_childRuleCSSOMWrappers);
221 visitor->trace(m_keyframesRule); 221 visitor->trace(m_keyframesRule);
222 visitor->trace(m_ruleListCSSOMWrapper); 222 visitor->trace(m_ruleListCSSOMWrapper);
223 } 223 }
224 224
225 } // namespace blink 225 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSKeyframesRule.h ('k') | third_party/WebKit/Source/core/css/CSSMatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698