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

Side by Side Diff: Source/core/svg/graphics/SVGImage.h

Issue 188903003: Revert "Drive SVG Animations via requestAnimationFrame" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/SMILTimeContainer.cpp ('k') | Source/core/svg/graphics/SVGImage.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) 2006 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2009 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 virtual void startAnimation(bool /*catchUpIfNecessary*/ = true) OVERRIDE; 61 virtual void startAnimation(bool /*catchUpIfNecessary*/ = true) OVERRIDE;
62 virtual void stopAnimation() OVERRIDE; 62 virtual void stopAnimation() OVERRIDE;
63 virtual void resetAnimation() OVERRIDE; 63 virtual void resetAnimation() OVERRIDE;
64 64
65 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() OVERRIDE; 65 virtual PassRefPtr<NativeImageSkia> nativeImageForCurrentFrame() OVERRIDE;
66 66
67 // Returns the SVG image document's frame. 67 // Returns the SVG image document's frame.
68 FrameView* frameView() const; 68 FrameView* frameView() const;
69 69
70 // Does the SVG image/document contain any animations?
71 bool hasAnimations() const;
72
73 private: 70 private:
74 friend class AXRenderObject; 71 friend class AXRenderObject;
75 friend class SVGImageChromeClient; 72 friend class SVGImageChromeClient;
76 friend class SVGImageForContainer; 73 friend class SVGImageForContainer;
77 74
78 virtual ~SVGImage(); 75 virtual ~SVGImage();
79 76
80 77
81 virtual String filenameExtension() const OVERRIDE; 78 virtual String filenameExtension() const OVERRIDE;
82 79
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 m_image->setImageObserver(m_observer); 120 m_image->setImageObserver(m_observer);
124 } 121 }
125 private: 122 private:
126 Image* m_image; 123 Image* m_image;
127 ImageObserver* m_observer; 124 ImageObserver* m_observer;
128 }; 125 };
129 126
130 } 127 }
131 128
132 #endif // SVGImage_h 129 #endif // SVGImage_h
OLDNEW
« no previous file with comments | « Source/core/svg/animation/SMILTimeContainer.cpp ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698