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

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

Issue 2588103002: Simplify Image::isTextureBacked() (Closed)
Patch Set: rebase Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h » ('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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 public: 58 public:
59 static PassRefPtr<SVGImage> create(ImageObserver* observer) { 59 static PassRefPtr<SVGImage> create(ImageObserver* observer) {
60 return adoptRef(new SVGImage(observer)); 60 return adoptRef(new SVGImage(observer));
61 } 61 }
62 62
63 static bool isInSVGImage(const Node*); 63 static bool isInSVGImage(const Node*);
64 64
65 LayoutReplaced* embeddedReplacedContent() const; 65 LayoutReplaced* embeddedReplacedContent() const;
66 66
67 bool isSVGImage() const override { return true; } 67 bool isSVGImage() const override { return true; }
68 bool isTextureBacked() override { return false; }
69 IntSize size() const override { return m_intrinsicSize; } 68 IntSize size() const override { return m_intrinsicSize; }
70 69
71 bool currentFrameHasSingleSecurityOrigin() const override; 70 bool currentFrameHasSingleSecurityOrigin() const override;
72 71
73 void startAnimation(CatchUpAnimation = CatchUp) override; 72 void startAnimation(CatchUpAnimation = CatchUp) override;
74 void resetAnimation() override; 73 void resetAnimation() override;
75 74
76 // 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
77 // and advance the SMIL timeline by one frame. 76 // and advance the SMIL timeline by one frame.
78 void advanceAnimationForTesting() override; 77 void advanceAnimationForTesting() override;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 183
185 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); } 184 ~ImageObserverDisabler() { m_image->setImageObserverDisabled(false); }
186 185
187 private: 186 private:
188 Image* m_image; 187 Image* m_image;
189 }; 188 };
190 189
191 } // namespace blink 190 } // namespace blink
192 191
193 #endif // SVGImage_h 192 #endif // SVGImage_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/graphics/SVGImageForContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698