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

Unified Diff: third_party/WebKit/Source/core/page/PageSerializer.cpp

Issue 1369213002: Revert of Replace RawPtr with RefPtr on StylePendingImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/PageSerializer.cpp
diff --git a/third_party/WebKit/Source/core/page/PageSerializer.cpp b/third_party/WebKit/Source/core/page/PageSerializer.cpp
index 582f021b9f7fd4b1bcd582ba23ae12112feb9d1e..96d4a4220cefb9f71e00401f2d79b9e7dd80b2b3 100644
--- a/third_party/WebKit/Source/core/page/PageSerializer.cpp
+++ b/third_party/WebKit/Source/core/page/PageSerializer.cpp
@@ -530,9 +530,8 @@
{
if (cssValue->isImageValue()) {
CSSImageValue* imageValue = toCSSImageValue(cssValue);
- if (imageValue->isCachePending())
- return;
- StyleImage* styleImage = imageValue->cachedImage();
+ StyleImage* styleImage = imageValue->cachedOrPendingImage();
+ // Non cached-images are just place-holders and do not contain data.
if (!styleImage || !styleImage->isImageResource())
return;

Powered by Google App Engine
This is Rietveld 408576698