Crash when encountering <object style="resize:both;">
[WebKit-https.git] / Source / WebCore / rendering / RenderWidget.cpp
index 09d5441fcea3633e3095bdab9e24d1e85000dc0b..e08017e0858aacaa72ec97d78d5f078665286c90 100644 (file)
@@ -312,7 +312,7 @@ void RenderWidget::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
         paintInfo.context->fillRect(pixelSnappedIntRect(selectionRect()), selectionBackgroundColor(), style()->colorSpace());
     }
 
-    if (style()->resize() != RESIZE_NONE)
+    if (hasLayer() && layer()->canResize())
         layer()->paintResizer(paintInfo.context, roundedIntPoint(adjustedPaintOffset), paintInfo.rect);
 }