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

Unified Diff: third_party/WebKit/Source/core/style/StyleImage.h

Issue 1896893004: Hook up style invalidation for CSS Paint API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-paint-register
Patch Set: . Created 4 years, 8 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/style/StyleImage.h
diff --git a/third_party/WebKit/Source/core/style/StyleImage.h b/third_party/WebKit/Source/core/style/StyleImage.h
index bdd526d17d5263f8ccdf3f78983d18d31a9382e6..1cf15d2b9aa351aee55a0177c7b98341e087832e 100644
--- a/third_party/WebKit/Source/core/style/StyleImage.h
+++ b/third_party/WebKit/Source/core/style/StyleImage.h
@@ -77,6 +77,7 @@ public:
ALWAYS_INLINE bool isGeneratedImage() const { return m_isGeneratedImage; }
ALWAYS_INLINE bool isImageResourceSet() const { return m_isImageResourceSet; }
ALWAYS_INLINE bool isInvalidImage() const { return m_isInvalidImage; }
+ ALWAYS_INLINE bool isPaintImage() const { return m_isPaintImage; }
DEFINE_INLINE_VIRTUAL_TRACE() { }
@@ -87,6 +88,7 @@ protected:
, m_isGeneratedImage(false)
, m_isImageResourceSet(false)
, m_isInvalidImage(false)
+ , m_isPaintImage(false)
{
}
bool m_isImageResource:1;
@@ -94,6 +96,7 @@ protected:
bool m_isGeneratedImage:1;
bool m_isImageResourceSet:1;
bool m_isInvalidImage:1;
+ bool m_isPaintImage:1;
static LayoutSize applyZoom(const LayoutSize&, float multiplier);
LayoutSize imageSizeForSVGImage(SVGImage*, float multiplier, const LayoutSize& defaultObjectSize) const;

Powered by Google App Engine
This is Rietveld 408576698