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

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

Issue 1416793004: Remove support for -webkit-canvas and Document.getCSSCanvasContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/CSSImageGeneratorValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
index ef417445444b20857a8cb602096eb5e0ed343dde..1a08049f582c0ec5ca6aa8b631944fced2041030 100644
--- a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
@@ -26,7 +26,6 @@
#include "config.h"
#include "core/css/CSSImageGeneratorValue.h"
-#include "core/css/CSSCanvasValue.h"
#include "core/css/CSSCrossfadeValue.h"
#include "core/css/CSSGradientValue.h"
#include "platform/graphics/Image.h"
@@ -130,8 +129,6 @@ void CSSImageGeneratorValue::putImage(const IntSize& size, PassRefPtr<Image> ima
PassRefPtr<Image> CSSImageGeneratorValue::image(const LayoutObject* layoutObject, const IntSize& size)
{
switch (classType()) {
- case CanvasClass:
- return toCSSCanvasValue(this)->image(layoutObject, size);
case CrossfadeClass:
return toCSSCrossfadeValue(this)->image(layoutObject, size);
case LinearGradientClass:
@@ -147,8 +144,6 @@ PassRefPtr<Image> CSSImageGeneratorValue::image(const LayoutObject* layoutObject
bool CSSImageGeneratorValue::isFixedSize() const
{
switch (classType()) {
- case CanvasClass:
- return toCSSCanvasValue(this)->isFixedSize();
case CrossfadeClass:
return toCSSCrossfadeValue(this)->isFixedSize();
case LinearGradientClass:
@@ -164,8 +159,6 @@ bool CSSImageGeneratorValue::isFixedSize() const
IntSize CSSImageGeneratorValue::fixedSize(const LayoutObject* layoutObject)
{
switch (classType()) {
- case CanvasClass:
- return toCSSCanvasValue(this)->fixedSize(layoutObject);
case CrossfadeClass:
return toCSSCrossfadeValue(this)->fixedSize(layoutObject);
case LinearGradientClass:
@@ -183,8 +176,6 @@ bool CSSImageGeneratorValue::isPending() const
switch (classType()) {
case CrossfadeClass:
return toCSSCrossfadeValue(this)->isPending();
- case CanvasClass:
- return toCSSCanvasValue(this)->isPending();
case LinearGradientClass:
return toCSSLinearGradientValue(this)->isPending();
case RadialGradientClass:
@@ -200,8 +191,6 @@ bool CSSImageGeneratorValue::knownToBeOpaque(const LayoutObject* layoutObject) c
switch (classType()) {
case CrossfadeClass:
return toCSSCrossfadeValue(this)->knownToBeOpaque(layoutObject);
- case CanvasClass:
- return false;
case LinearGradientClass:
return toCSSLinearGradientValue(this)->knownToBeOpaque(layoutObject);
case RadialGradientClass:
@@ -218,9 +207,6 @@ void CSSImageGeneratorValue::loadSubimages(Document* document)
case CrossfadeClass:
toCSSCrossfadeValue(this)->loadSubimages(document);
break;
- case CanvasClass:
- toCSSCanvasValue(this)->loadSubimages(document);
- break;
case LinearGradientClass:
toCSSLinearGradientValue(this)->loadSubimages(document);
break;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCanvasValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698