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

Side by Side Diff: third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 SVGSMILElement::Condition::Condition(Type type, BeginOrEnd beginOrEnd, const Str ing& baseID, const String& name, SMILTime offset, int repeat) 170 SVGSMILElement::Condition::Condition(Type type, BeginOrEnd beginOrEnd, const Str ing& baseID, const String& name, SMILTime offset, int repeat)
171 : m_type(type) 171 : m_type(type)
172 , m_beginOrEnd(beginOrEnd) 172 , m_beginOrEnd(beginOrEnd)
173 , m_baseID(baseID) 173 , m_baseID(baseID)
174 , m_name(name) 174 , m_name(name)
175 , m_offset(offset) 175 , m_offset(offset)
176 , m_repeat(repeat) 176 , m_repeat(repeat)
177 { 177 {
178 } 178 }
179 179
180 ConditionEventListener* SVGSMILElement::Condition::eventListener() const
181 {
182 return m_eventListener.get();
183 }
184
180 SVGSMILElement::SVGSMILElement(const QualifiedName& tagName, Document& doc) 185 SVGSMILElement::SVGSMILElement(const QualifiedName& tagName, Document& doc)
181 : SVGElement(tagName, doc) 186 : SVGElement(tagName, doc)
182 , SVGTests(this) 187 , SVGTests(this)
183 , m_attributeName(anyQName()) 188 , m_attributeName(anyQName())
184 , m_targetElement(nullptr) 189 , m_targetElement(nullptr)
185 , m_syncBaseConditionsConnected(false) 190 , m_syncBaseConditionsConnected(false)
186 , m_hasEndEventConditions(false) 191 , m_hasEndEventConditions(false)
187 , m_isWaitingForFirstInterval(true) 192 , m_isWaitingForFirstInterval(true)
188 , m_isScheduled(false) 193 , m_isScheduled(false)
189 , m_interval(SMILInterval(SMILTime::unresolved(), SMILTime::unresolved())) 194 , m_interval(SMILInterval(SMILTime::unresolved(), SMILTime::unresolved()))
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 1289
1285 SMILTime elapsed = this->elapsed(); 1290 SMILTime elapsed = this->elapsed();
1286 if (elapsed.isUnresolved()) 1291 if (elapsed.isUnresolved())
1287 return; 1292 return;
1288 if (condition->beginOrEnd() == Begin) 1293 if (condition->beginOrEnd() == Begin)
1289 addBeginTime(elapsed, elapsed + condition->offset()); 1294 addBeginTime(elapsed, elapsed + condition->offset());
1290 else 1295 else
1291 addEndTime(elapsed, elapsed + condition->offset()); 1296 addEndTime(elapsed, elapsed + condition->offset());
1292 } 1297 }
1293 1298
1299 SMILTimeContainer* SVGSMILElement::timeContainer() const
1300 {
1301 return m_timeContainer.get();
1302 }
1303
1294 void SVGSMILElement::beginByLinkActivation() 1304 void SVGSMILElement::beginByLinkActivation()
1295 { 1305 {
1296 SMILTime elapsed = this->elapsed(); 1306 SMILTime elapsed = this->elapsed();
1297 if (elapsed.isUnresolved()) 1307 if (elapsed.isUnresolved())
1298 return; 1308 return;
1299 addBeginTime(elapsed, elapsed); 1309 addBeginTime(elapsed, elapsed);
1300 } 1310 }
1301 1311
1302 void SVGSMILElement::endedActiveInterval() 1312 void SVGSMILElement::endedActiveInterval()
1303 { 1313 {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 visitor->trace(m_targetElement); 1373 visitor->trace(m_targetElement);
1364 visitor->trace(m_timeContainer); 1374 visitor->trace(m_timeContainer);
1365 visitor->trace(m_conditions); 1375 visitor->trace(m_conditions);
1366 visitor->trace(m_syncBaseDependents); 1376 visitor->trace(m_syncBaseDependents);
1367 #endif 1377 #endif
1368 SVGElement::trace(visitor); 1378 SVGElement::trace(visitor);
1369 SVGTests::trace(visitor); 1379 SVGTests::trace(visitor);
1370 } 1380 }
1371 1381
1372 } // namespace blink 1382 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698