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

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

Issue 1782833008: Add paint() function as valid CSS <image> type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: name->customCSSText Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/CSSPaintValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
index e1bf09753bb5211f6cd4c653fe7f8149ecf99acc..3baa986900752be92d29cf5392ba33a993c654e1 100644
--- a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
@@ -27,6 +27,7 @@
#include "core/css/CSSCrossfadeValue.h"
#include "core/css/CSSGradientValue.h"
+#include "core/css/CSSPaintValue.h"
#include "platform/graphics/Image.h"
namespace blink {
@@ -132,6 +133,8 @@ PassRefPtr<Image> CSSImageGeneratorValue::image(const LayoutObject* layoutObject
return toCSSCrossfadeValue(this)->image(layoutObject, size);
case LinearGradientClass:
return toCSSLinearGradientValue(this)->image(layoutObject, size);
+ case PaintClass:
+ return toCSSPaintValue(this)->image(layoutObject, size);
case RadialGradientClass:
return toCSSRadialGradientValue(this)->image(layoutObject, size);
default:
@@ -147,6 +150,8 @@ bool CSSImageGeneratorValue::isFixedSize() const
return toCSSCrossfadeValue(this)->isFixedSize();
case LinearGradientClass:
return toCSSLinearGradientValue(this)->isFixedSize();
+ case PaintClass:
+ return toCSSPaintValue(this)->isFixedSize();
case RadialGradientClass:
return toCSSRadialGradientValue(this)->isFixedSize();
default:
@@ -162,6 +167,8 @@ IntSize CSSImageGeneratorValue::fixedSize(const LayoutObject* layoutObject, cons
return toCSSCrossfadeValue(this)->fixedSize(layoutObject, defaultObjectSize);
case LinearGradientClass:
return toCSSLinearGradientValue(this)->fixedSize(layoutObject);
+ case PaintClass:
+ return toCSSPaintValue(this)->fixedSize(layoutObject);
case RadialGradientClass:
return toCSSRadialGradientValue(this)->fixedSize(layoutObject);
default:
@@ -177,6 +184,8 @@ bool CSSImageGeneratorValue::isPending() const
return toCSSCrossfadeValue(this)->isPending();
case LinearGradientClass:
return toCSSLinearGradientValue(this)->isPending();
+ case PaintClass:
+ return toCSSPaintValue(this)->isPending();
case RadialGradientClass:
return toCSSRadialGradientValue(this)->isPending();
default:
@@ -192,6 +201,8 @@ bool CSSImageGeneratorValue::knownToBeOpaque(const LayoutObject* layoutObject) c
return toCSSCrossfadeValue(this)->knownToBeOpaque(layoutObject);
case LinearGradientClass:
return toCSSLinearGradientValue(this)->knownToBeOpaque(layoutObject);
+ case PaintClass:
+ return toCSSPaintValue(this)->knownToBeOpaque(layoutObject);
case RadialGradientClass:
return toCSSRadialGradientValue(this)->knownToBeOpaque(layoutObject);
default:
@@ -209,6 +220,9 @@ void CSSImageGeneratorValue::loadSubimages(Document* document)
case LinearGradientClass:
toCSSLinearGradientValue(this)->loadSubimages(document);
break;
+ case PaintClass:
+ toCSSPaintValue(this)->loadSubimages(document);
+ break;
case RadialGradientClass:
toCSSRadialGradientValue(this)->loadSubimages(document);
break;
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/CSSPaintValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698