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

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

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> Created 5 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) 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 resolveFirstInterval(); 341 resolveFirstInterval();
342 342
343 if (m_timeContainer) 343 if (m_timeContainer)
344 m_timeContainer->notifyIntervalsChanged(); 344 m_timeContainer->notifyIntervalsChanged();
345 345
346 buildPendingResource(); 346 buildPendingResource();
347 347
348 return InsertionDone; 348 return InsertionDone;
349 } 349 }
350 350
351 void SVGSMILElement::removedFrom(ContainerNode* rootParent) 351 void SVGSMILElement::removedFrom(ContainerNode* rootParent, Node* next)
352 { 352 {
353 if (rootParent->inDocument()) { 353 if (rootParent->inDocument()) {
354 clearResourceAndEventBaseReferences(); 354 clearResourceAndEventBaseReferences();
355 clearConditions(); 355 clearConditions();
356 setTargetElement(nullptr); 356 setTargetElement(nullptr);
357 setAttributeName(anyQName()); 357 setAttributeName(anyQName());
358 animationAttributeChanged(); 358 animationAttributeChanged();
359 m_timeContainer = nullptr; 359 m_timeContainer = nullptr;
360 } 360 }
361 361
362 SVGElement::removedFrom(rootParent); 362 SVGElement::removedFrom(rootParent, next);
363 } 363 }
364 364
365 bool SVGSMILElement::hasValidAttributeName() 365 bool SVGSMILElement::hasValidAttributeName()
366 { 366 {
367 return attributeName() != anyQName(); 367 return attributeName() != anyQName();
368 } 368 }
369 369
370 SMILTime SVGSMILElement::parseOffsetValue(const String& data) 370 SMILTime SVGSMILElement::parseOffsetValue(const String& data)
371 { 371 {
372 bool ok; 372 bool ok;
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 visitor->trace(m_targetElement); 1363 visitor->trace(m_targetElement);
1364 visitor->trace(m_timeContainer); 1364 visitor->trace(m_timeContainer);
1365 visitor->trace(m_conditions); 1365 visitor->trace(m_conditions);
1366 visitor->trace(m_syncBaseDependents); 1366 visitor->trace(m_syncBaseDependents);
1367 #endif 1367 #endif
1368 SVGElement::trace(visitor); 1368 SVGElement::trace(visitor);
1369 SVGTests::trace(visitor); 1369 SVGTests::trace(visitor);
1370 } 1370 }
1371 1371
1372 } // namespace blink 1372 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698