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

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

Issue 2566403003: Migrate WTF::Vector::append() to ::push_back() [part 3 of N] (Closed)
Patch Set: Created 4 years 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 m_keyframes(o.m_keyframes), 43 m_keyframes(o.m_keyframes),
44 m_name(o.m_name), 44 m_name(o.m_name),
45 m_version(o.m_version), 45 m_version(o.m_version),
46 m_isPrefixed(o.m_isPrefixed) {} 46 m_isPrefixed(o.m_isPrefixed) {}
47 47
48 StyleRuleKeyframes::~StyleRuleKeyframes() {} 48 StyleRuleKeyframes::~StyleRuleKeyframes() {}
49 49
50 void StyleRuleKeyframes::parserAppendKeyframe(StyleRuleKeyframe* keyframe) { 50 void StyleRuleKeyframes::parserAppendKeyframe(StyleRuleKeyframe* keyframe) {
51 if (!keyframe) 51 if (!keyframe)
52 return; 52 return;
53 m_keyframes.append(keyframe); 53 m_keyframes.push_back(keyframe);
54 } 54 }
55 55
56 void StyleRuleKeyframes::wrapperAppendKeyframe(StyleRuleKeyframe* keyframe) { 56 void StyleRuleKeyframes::wrapperAppendKeyframe(StyleRuleKeyframe* keyframe) {
57 m_keyframes.append(keyframe); 57 m_keyframes.push_back(keyframe);
58 styleChanged(); 58 styleChanged();
59 } 59 }
60 60
61 void StyleRuleKeyframes::wrapperRemoveKeyframe(unsigned index) { 61 void StyleRuleKeyframes::wrapperRemoveKeyframe(unsigned index) {
62 m_keyframes.remove(index); 62 m_keyframes.remove(index);
63 styleChanged(); 63 styleChanged();
64 } 64 }
65 65
66 int StyleRuleKeyframes::findKeyframeIndex(const String& key) const { 66 int StyleRuleKeyframes::findKeyframeIndex(const String& key) const {
67 std::unique_ptr<Vector<double>> keys = CSSParser::parseKeyframeKeyList(key); 67 std::unique_ptr<Vector<double>> keys = CSSParser::parseKeyframeKeyList(key);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 } 190 }
191 191
192 DEFINE_TRACE(CSSKeyframesRule) { 192 DEFINE_TRACE(CSSKeyframesRule) {
193 CSSRule::trace(visitor); 193 CSSRule::trace(visitor);
194 visitor->trace(m_childRuleCSSOMWrappers); 194 visitor->trace(m_childRuleCSSOMWrappers);
195 visitor->trace(m_keyframesRule); 195 visitor->trace(m_keyframesRule);
196 visitor->trace(m_ruleListCSSOMWrapper); 196 visitor->trace(m_ruleListCSSOMWrapper);
197 } 197 }
198 198
199 } // namespace blink 199 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageSetValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSSegmentedFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698