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

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

Issue 2727133002: Remove ColorBehavior argument to Image::imageForCurrentFrame (Closed)
Patch Set: Rebase Created 3 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 bool currentFrameHasSingleSecurityOrigin() const override; 70 bool currentFrameHasSingleSecurityOrigin() const override;
71 71
72 void startAnimation(CatchUpAnimation = CatchUp) override; 72 void startAnimation(CatchUpAnimation = CatchUp) override;
73 void resetAnimation() override; 73 void resetAnimation() override;
74 74
75 // Advances an animated image. This will trigger an animation update for CSS 75 // Advances an animated image. This will trigger an animation update for CSS
76 // and advance the SMIL timeline by one frame. 76 // and advance the SMIL timeline by one frame.
77 void advanceAnimationForTesting() override; 77 void advanceAnimationForTesting() override;
78 SVGImageChromeClient& chromeClientForTesting(); 78 SVGImageChromeClient& chromeClientForTesting();
79 79
80 sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) override; 80 sk_sp<SkImage> imageForCurrentFrame() override;
81 81
82 // Does the SVG image/document contain any animations? 82 // Does the SVG image/document contain any animations?
83 bool hasAnimations() const; 83 bool hasAnimations() const;
84 // Service CSS and SMIL animations. 84 // Service CSS and SMIL animations.
85 void serviceAnimations(double monotonicAnimationStartTime); 85 void serviceAnimations(double monotonicAnimationStartTime);
86 86
87 void updateUseCounters(const Document&) const; 87 void updateUseCounters(const Document&) const;
88 88
89 // The defaultObjectSize is assumed to be unzoomed, i.e. it should 89 // The defaultObjectSize is assumed to be unzoomed, i.e. it should
90 // not have the effective zoom level applied. The returned size is 90 // not have the effective zoom level applied. The returned size is
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); } 183 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); }
184 184
185 private: 185 private:
186 Image* m_image; 186 Image* m_image;
187 }; 187 };
188 188
189 } // namespace blink 189 } // namespace blink
190 190
191 #endif // SVGImage_h 191 #endif // SVGImage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698