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

Unified Diff: third_party/WebKit/Source/core/css/CSSValue.cpp

Issue 1658923004: PurgeMemory. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSValue.cpp b/third_party/WebKit/Source/core/css/CSSValue.cpp
index 7a300481dfd2c3587c04a91a2b2da05c8964d00f..740abd80a1c56ae428b157da63f2bee274093eca 100644
--- a/third_party/WebKit/Source/core/css/CSSValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSValue.cpp
@@ -629,4 +629,16 @@ DEFINE_TRACE(CSSValue)
ASSERT_NOT_REACHED();
}
+void CSSValue::purgeMemory()
+{
+ if (isImageValue()) {
+ toCSSImageValue(this)->purgeMemory();
+ return;
+ }
+ if (isImageSetValue()) {
+ toCSSImageSetValue(this)->purgeMemory();
+ return;
+ }
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValue.h ('k') | third_party/WebKit/Source/core/css/StylePropertySet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698