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

Unified Diff: third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h

Issue 2592613002: LayoutSVGImage should work correctly even when image size is unavailable (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h b/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
index 8ef0838e179e4cc97762b7f85cdebdcd4341cb87..2cafe274fdddd13894f411bd3d6fc38f56ce01b9 100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
@@ -85,6 +85,10 @@ class CORE_EXPORT ImageResourceContent final
void addObserver(ImageResourceObserver*);
void removeObserver(ImageResourceObserver*);
+ bool isSizeAvailable() const {
+ return m_sizeAvailable == Image::SizeAvailable;
+ }
+
DECLARE_TRACE();
// Redirecting methods to Resource.

Powered by Google App Engine
This is Rietveld 408576698