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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSCrossfadeValue.h

Issue 1413233005: tracing: Report ResourceClients and the reason for not deletable for web-caches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reflected haraken's comments. Created 5 years, 1 month 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 : m_ownerValue(ownerValue) 90 : m_ownerValue(ownerValue)
91 , m_ready(false) { } 91 , m_ready(false) { }
92 92
93 ~CrossfadeSubimageObserverProxy() override { } 93 ~CrossfadeSubimageObserverProxy() override { }
94 DEFINE_INLINE_TRACE() 94 DEFINE_INLINE_TRACE()
95 { 95 {
96 visitor->trace(m_ownerValue); 96 visitor->trace(m_ownerValue);
97 } 97 }
98 98
99 void imageChanged(ImageResource*, const IntRect* = nullptr) override; 99 void imageChanged(ImageResource*, const IntRect* = nullptr) override;
100 String debugName() const override { return "CrossfadeSubimageObserverPro xy"; }
100 void setReady(bool ready) { m_ready = ready; } 101 void setReady(bool ready) { m_ready = ready; }
101 private: 102 private:
102 RawPtrWillBeMember<CSSCrossfadeValue> m_ownerValue; 103 RawPtrWillBeMember<CSSCrossfadeValue> m_ownerValue;
103 bool m_ready; 104 bool m_ready;
104 }; 105 };
105 106
106 void crossfadeChanged(const IntRect&); 107 void crossfadeChanged(const IntRect&);
107 108
108 RefPtrWillBeMember<CSSValue> m_fromValue; 109 RefPtrWillBeMember<CSSValue> m_fromValue;
109 RefPtrWillBeMember<CSSValue> m_toValue; 110 RefPtrWillBeMember<CSSValue> m_toValue;
110 RefPtrWillBeMember<CSSPrimitiveValue> m_percentageValue; 111 RefPtrWillBeMember<CSSPrimitiveValue> m_percentageValue;
111 112
112 ResourcePtr<ImageResource> m_cachedFromImage; 113 ResourcePtr<ImageResource> m_cachedFromImage;
113 ResourcePtr<ImageResource> m_cachedToImage; 114 ResourcePtr<ImageResource> m_cachedToImage;
114 115
115 RefPtr<Image> m_generatedImage; 116 RefPtr<Image> m_generatedImage;
116 117
117 CrossfadeSubimageObserverProxy m_crossfadeSubimageObserver; 118 CrossfadeSubimageObserverProxy m_crossfadeSubimageObserver;
118 }; 119 };
119 120
120 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCrossfadeValue, isCrossfadeValue()); 121 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCrossfadeValue, isCrossfadeValue());
121 122
122 } // namespace blink 123 } // namespace blink
123 124
124 #endif // CSSCrossfadeValue_h 125 #endif // CSSCrossfadeValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698