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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/animation/SVGSMILElement.h ('k') | Source/core/testing/Internals.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) 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 SVGSMILElement::Condition::Condition(Type type, BeginOrEnd beginOrEnd, const Str ing& baseID, const String& name, SMILTime offset, int repeats) 118 SVGSMILElement::Condition::Condition(Type type, BeginOrEnd beginOrEnd, const Str ing& baseID, const String& name, SMILTime offset, int repeats)
119 : m_type(type) 119 : m_type(type)
120 , m_beginOrEnd(beginOrEnd) 120 , m_beginOrEnd(beginOrEnd)
121 , m_baseID(baseID) 121 , m_baseID(baseID)
122 , m_name(name) 122 , m_name(name)
123 , m_offset(offset) 123 , m_offset(offset)
124 , m_repeats(repeats) 124 , m_repeats(repeats)
125 { 125 {
126 } 126 }
127 127
128 SVGSMILElement::SVGSMILElement(const QualifiedName& tagName, Document* doc) 128 SVGSMILElement::SVGSMILElement(const QualifiedName& tagName, Document& doc)
129 : SVGElement(tagName, doc) 129 : SVGElement(tagName, doc)
130 , m_attributeName(anyQName()) 130 , m_attributeName(anyQName())
131 , m_targetElement(0) 131 , m_targetElement(0)
132 , m_conditionsConnected(false) 132 , m_conditionsConnected(false)
133 , m_hasEndEventConditions(false) 133 , m_hasEndEventConditions(false)
134 , m_isWaitingForFirstInterval(true) 134 , m_isWaitingForFirstInterval(true)
135 , m_intervalBegin(SMILTime::unresolved()) 135 , m_intervalBegin(SMILTime::unresolved())
136 , m_intervalEnd(SMILTime::unresolved()) 136 , m_intervalEnd(SMILTime::unresolved())
137 , m_previousIntervalBegin(SMILTime::unresolved()) 137 , m_previousIntervalBegin(SMILTime::unresolved())
138 , m_activeState(Inactive) 138 , m_activeState(Inactive)
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 } 1233 }
1234 1234
1235 void SVGSMILElement::dispatchPendingEvent(SMILEventSender* eventSender) 1235 void SVGSMILElement::dispatchPendingEvent(SMILEventSender* eventSender)
1236 { 1236 {
1237 ASSERT(eventSender == &smilEndEventSender() || eventSender == &smilBeginEven tSender() || eventSender == &smilRepeatEventSender()); 1237 ASSERT(eventSender == &smilEndEventSender() || eventSender == &smilBeginEven tSender() || eventSender == &smilRepeatEventSender());
1238 const AtomicString& eventType = eventSender->eventType(); 1238 const AtomicString& eventType = eventSender->eventType();
1239 dispatchEvent(Event::create(eventType)); 1239 dispatchEvent(Event::create(eventType));
1240 } 1240 }
1241 1241
1242 } 1242 }
OLDNEW
« no previous file with comments | « Source/core/svg/animation/SVGSMILElement.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698