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

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

Issue 1544473004: Revert of SVGImage: check requestCount() to check all subresources are loaded (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 static bool isInSVGImage(const Node*); 52 static bool isInSVGImage(const Node*);
53 53
54 LayoutBox* embeddedContentBox() const; 54 LayoutBox* embeddedContentBox() const;
55 55
56 bool isSVGImage() const override { return true; } 56 bool isSVGImage() const override { return true; }
57 bool isTextureBacked() override { return false; } 57 bool isTextureBacked() override { return false; }
58 IntSize size() const override { return m_intrinsicSize; } 58 IntSize size() const override { return m_intrinsicSize; }
59 59
60 void assertSubresourcesLoaded() const;
61 bool currentFrameHasSingleSecurityOrigin() const override; 60 bool currentFrameHasSingleSecurityOrigin() const override;
62 61
63 void startAnimation(CatchUpAnimation = CatchUp) override; 62 void startAnimation(CatchUpAnimation = CatchUp) override;
64 void stopAnimation() override; 63 void stopAnimation() override;
65 void resetAnimation() override; 64 void resetAnimation() override;
66 65
67 // Advances an animated image. This will trigger an animation update for CSS 66 // Advances an animated image. This will trigger an animation update for CSS
68 // and advance the SMIL timeline by one frame. 67 // and advance the SMIL timeline by one frame.
69 void advanceAnimationForTesting() override; 68 void advanceAnimationForTesting() override;
70 69
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 m_image->setImageObserver(m_observer); 136 m_image->setImageObserver(m_observer);
138 } 137 }
139 private: 138 private:
140 Image* m_image; 139 Image* m_image;
141 ImageObserver* m_observer; 140 ImageObserver* m_observer;
142 }; 141 };
143 142
144 } 143 }
145 144
146 #endif // SVGImage_h 145 #endif // SVGImage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/ImageLoader.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