// - Skia specific changes
bool ScrollbarThemeMacNonOverlayAPI::paint(ScrollbarThemeClient* scrollbar, GraphicsContext* context, const IntRect& damageRect)
{
+ if (context->paintingDisabled())
+ return true;
// Get the tickmarks for the frameview.
Vector<IntRect> tickmarks;
scrollbar->getTickmarks(tickmarks);
scrollbarInfo);
}
- if (!canDrawDirectly)
- context->drawImageBuffer(imageBuffer.get(), scrollbar->frameRect().location());
+ if (!canDrawDirectly) {
+ ASSERT(imageBuffer);
+ context->drawImageBuffer(imageBuffer.get(),
+ FloatRect(scrollbar->frameRect().location(), imageBuffer->size()));
+ }
return true;
}