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

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

Issue 2352193004: Document* -> Document& for loadSubimages and friends. (Closed)
Patch Set: Added constness Created 4 years, 3 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void advanceAnimationForTesting() override; 78 void advanceAnimationForTesting() override;
79 SVGImageChromeClient& chromeClientForTesting(); 79 SVGImageChromeClient& chromeClientForTesting();
80 80
81 sk_sp<SkImage> imageForCurrentFrame() override; 81 sk_sp<SkImage> imageForCurrentFrame() override;
82 82
83 // Does the SVG image/document contain any animations? 83 // Does the SVG image/document contain any animations?
84 bool hasAnimations() const; 84 bool hasAnimations() const;
85 // Service CSS and SMIL animations. 85 // Service CSS and SMIL animations.
86 void serviceAnimations(double monotonicAnimationStartTime); 86 void serviceAnimations(double monotonicAnimationStartTime);
87 87
88 void updateUseCounters(Document&) const; 88 void updateUseCounters(const Document&) const;
89 89
90 // The defaultObjectSize is assumed to be unzoomed, i.e. it should 90 // The defaultObjectSize is assumed to be unzoomed, i.e. it should
91 // not have the effective zoom level applied. The returned size is 91 // not have the effective zoom level applied. The returned size is
92 // thus also independent of current zoom level. 92 // thus also independent of current zoom level.
93 FloatSize concreteObjectSize(const FloatSize& defaultObjectSize) const; 93 FloatSize concreteObjectSize(const FloatSize& defaultObjectSize) const;
94 94
95 bool hasIntrinsicDimensions() const; 95 bool hasIntrinsicDimensions() const;
96 96
97 private: 97 private:
98 // Accesses m_page. 98 // Accesses m_page.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 { 168 {
169 m_image->setImageObserverDisabled(false); 169 m_image->setImageObserverDisabled(false);
170 } 170 }
171 private: 171 private:
172 Image* m_image; 172 Image* m_image;
173 }; 173 };
174 174
175 } // namespace blink 175 } // namespace blink
176 176
177 #endif // SVGImage_h 177 #endif // SVGImage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleFetchedImage.cpp ('k') | third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698