#if ENABLE(TIZEN_CANVAS_CAIRO_GLES_RENDERING)
static const int MaxCairoGlSizeWidth = 4096;
static const int MaxCairoGlSizeHeight = 4096;
+static const int MinCairoGlSizeWidth = 32;
+static const int MinCairoGlSizeHeight = 32;
#endif
// Firefox limits width/height to 32767 pixels, but slows down dramatically before it
// reaches that limit. We limit by area instead, giving us larger maximum dimensions,
return true;
#elif ENABLE(TIZEN_ACCELERATED_2D_CANVAS_EFL)
#if ENABLE(TIZEN_CANVAS_CAIRO_GLES_RENDERING)
- if (size.width() > MaxCairoGlSizeWidth || size.height() > MaxCairoGlSizeHeight) {
+ if (size.width() > MaxCairoGlSizeWidth || size.height() > MaxCairoGlSizeHeight || size.width() < MinCairoGlSizeWidth || size.height() < MinCairoGlSizeHeight) {
if (renderBox() && renderBox()->hasLayer())
renderBox()->layer()->clearBacking();
return false;