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

Side by Side Diff: Source/core/testing/Internals.h

Issue 1196163003: Fix animations not starting on detached elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test Created 5 years, 6 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/animation/StringKeyframe.cpp ('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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 ShadowRoot* shadowRoot(Element* host); 102 ShadowRoot* shadowRoot(Element* host);
103 ShadowRoot* youngestShadowRoot(Element* host); 103 ShadowRoot* youngestShadowRoot(Element* host);
104 ShadowRoot* oldestShadowRoot(Element* host); 104 ShadowRoot* oldestShadowRoot(Element* host);
105 ShadowRoot* youngerShadowRoot(Node* shadow, ExceptionState&); 105 ShadowRoot* youngerShadowRoot(Node* shadow, ExceptionState&);
106 String shadowRootType(const Node*, ExceptionState&) const; 106 String shadowRootType(const Node*, ExceptionState&) const;
107 bool hasShadowInsertionPoint(const Node*, ExceptionState&) const; 107 bool hasShadowInsertionPoint(const Node*, ExceptionState&) const;
108 bool hasContentElement(const Node*, ExceptionState&) const; 108 bool hasContentElement(const Node*, ExceptionState&) const;
109 size_t countElementShadow(const Node*, ExceptionState&) const; 109 size_t countElementShadow(const Node*, ExceptionState&) const;
110 const AtomicString& shadowPseudoId(Element*); 110 const AtomicString& shadowPseudoId(Element*);
111 111
112 // CSS Animation / Transition testing. 112 // Animation testing.
113 void pauseAnimations(double pauseTime, ExceptionState&); 113 void pauseAnimations(double pauseTime, ExceptionState&);
114 bool isCompositedAnimation(Animation*);
114 115
115 // Modifies m_desiredFrameStartTime in BitmapImage to advance the next frame time 116 // Modifies m_desiredFrameStartTime in BitmapImage to advance the next frame time
116 // for testing whether animated images work properly. 117 // for testing whether animated images work properly.
117 void advanceTimeForImage(Element* image, double deltaTimeInSeconds, Exceptio nState&); 118 void advanceTimeForImage(Element* image, double deltaTimeInSeconds, Exceptio nState&);
118 119
119 bool isValidContentSelect(Element* insertionPoint, ExceptionState&); 120 bool isValidContentSelect(Element* insertionPoint, ExceptionState&);
120 Node* treeScopeRootNode(Node*); 121 Node* treeScopeRootNode(Node*);
121 Node* parentTreeScope(Node*); 122 Node* parentTreeScope(Node*);
122 bool hasSelectorForIdInShadow(Element* host, const AtomicString& idValue, Ex ceptionState&); 123 bool hasSelectorForIdInShadow(Element* host, const AtomicString& idValue, Ex ceptionState&);
123 bool hasSelectorForClassInShadow(Element* host, const AtomicString& classNam e, ExceptionState&); 124 bool hasSelectorForClassInShadow(Element* host, const AtomicString& classNam e, ExceptionState&);
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 375
375 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 376 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
376 Member<InternalRuntimeFlags> m_runtimeFlags; 377 Member<InternalRuntimeFlags> m_runtimeFlags;
377 378
378 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 379 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
379 }; 380 };
380 381
381 } // namespace blink 382 } // namespace blink
382 383
383 #endif // Internals_h 384 #endif // Internals_h
OLDNEW
« no previous file with comments | « Source/core/animation/StringKeyframe.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698